Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6d4e176
Add type definitions file
stonegray Nov 29, 2021
3cee928
Import EventEmitter in `index.d.ts`
quantumsheep Dec 6, 2021
900fe35
Add `node-gyp` and package scripts
quantumsheep Dec 6, 2021
77b599f
Update package's name and description
quantumsheep Dec 6, 2021
7f4a1f2
Add ESLint and Prettier
quantumsheep Dec 6, 2021
091b924
Disable some ESLint rules
quantumsheep Dec 6, 2021
415962a
Prettify sources and examples
quantumsheep Dec 6, 2021
3b04242
Fix lint script
quantumsheep Dec 6, 2021
306f791
Disable ESLint type-check for `beforeCallback` and `afterCallback` ca…
quantumsheep Dec 6, 2021
e4d6cc0
Bump package version to 2.0.0
quantumsheep Dec 6, 2021
be98874
Update .gitignore
quantumsheep Dec 6, 2021
2689fa9
Add package-lock.json
quantumsheep Dec 6, 2021
7c0e862
Update README.md
quantumsheep Dec 6, 2021
83662ba
Update README.md
quantumsheep Dec 6, 2021
6e30907
Remove changelog from README.md
quantumsheep Dec 6, 2021
a1d8333
Update README.md
quantumsheep Dec 6, 2021
4863009
Bump package version to 2.0.1
quantumsheep Dec 6, 2021
65095ea
Don't require `afterCallback` in send function
quantumsheep Dec 6, 2021
bad91e3
Bump package version to 2.0.2
quantumsheep Dec 6, 2021
eccc36d
Add `message` socket event
quantumsheep Dec 6, 2021
6b68c2d
Add listener argument to `close` socket event
quantumsheep Dec 6, 2021
a30000b
Bump package version to 2.1.0
quantumsheep Dec 6, 2021
43e6281
Update `send` function prototype
quantumsheep Dec 7, 2021
b0c42c5
Bump package version to 2.2.0
quantumsheep Dec 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
env: {
node: true,
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: '12',
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-this-alias': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
};
116 changes: 112 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,113 @@
syntax: glob
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Config file
/config.json

# macOS metadata directory
.DS_Store

# Build directory
build
node_modules
npm-debug.log
package-lock.json
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
Loading