angelia.io 1.59.0 → 1.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/index.js +6 -6
- package/package.json +64 -2
- package/{@dev/@publish.bat → publish.bat} +0 -2
- package/.eslintrc +0 -44
- package/.prettierrc.js +0 -15
- package/@dev/@link.bat +0 -14
package/client/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
const ClientWebWorker = `class ClientWebWorker {
|
|
4
4
|
constructor() {
|
|
5
|
-
Blob.prototype.toJSON = function
|
|
5
|
+
Blob.prototype.toJSON = function(){
|
|
6
6
|
return {
|
|
7
|
-
b: new FileReaderSync().readAsDataURL(this)
|
|
7
|
+
b: new FileReaderSync().readAsDataURL(this)
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
ArrayBuffer.prototype.toJSON = function
|
|
10
|
+
ArrayBuffer.prototype.toJSON = function(){
|
|
11
11
|
return {
|
|
12
|
-
a: new FileReaderSync().readAsDataURL(this)
|
|
12
|
+
a: new FileReaderSync().readAsDataURL(this)
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -419,10 +419,10 @@ class Client {
|
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
decode(s)
|
|
422
|
+
decode(s){
|
|
423
423
|
if (s.b) {
|
|
424
424
|
return fetch(s.b).then(r => r.blob())
|
|
425
|
-
} else if
|
|
425
|
+
} else if(s.a) {
|
|
426
426
|
return fetch(s.a).then(r => r.arrayBuffer())
|
|
427
427
|
}
|
|
428
428
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angelia.io",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.0",
|
|
4
4
|
"description": "WebSockets Server and Client API for node.js and the browser, with rooms support.",
|
|
5
5
|
"homepage": "https://github.com/titoBouzout/angelia.io",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"ws"
|
|
26
26
|
],
|
|
27
27
|
"author": "@titoBouzout @boredofnames",
|
|
28
|
-
"license": "
|
|
28
|
+
"license": "GPL",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"bufferutil": "^4.0.3",
|
|
31
31
|
"is-class": "^0.0.9",
|
|
@@ -33,5 +33,67 @@
|
|
|
33
33
|
"to-fast-properties": "^3.0.1",
|
|
34
34
|
"utf-8-validate": "^5.0.4",
|
|
35
35
|
"ws": "^7.4.3"
|
|
36
|
+
},
|
|
37
|
+
"prettier": {
|
|
38
|
+
"printWidth": 100,
|
|
39
|
+
"useTabs": true,
|
|
40
|
+
"semi": false,
|
|
41
|
+
"singleQuote": true,
|
|
42
|
+
"jsxSingleQuote": false,
|
|
43
|
+
"trailingComma": "all",
|
|
44
|
+
"bracketSpacing": true,
|
|
45
|
+
"jsxBracketSameLine": false,
|
|
46
|
+
"arrowParens": "avoid",
|
|
47
|
+
"quoteProps": "preserve",
|
|
48
|
+
"proseWrap": "preserve"
|
|
49
|
+
},
|
|
50
|
+
"eslintConfig": {
|
|
51
|
+
"env": {
|
|
52
|
+
"browser": true,
|
|
53
|
+
"node": true,
|
|
54
|
+
"es6": true
|
|
55
|
+
},
|
|
56
|
+
"parser": "babel-eslint",
|
|
57
|
+
"extends": "eslint:recommended",
|
|
58
|
+
"parserOptions": {
|
|
59
|
+
"ecmaFeatures": {
|
|
60
|
+
"experimentalObjectRestSpread": true,
|
|
61
|
+
"jsx": true,
|
|
62
|
+
"impliedStrict": true,
|
|
63
|
+
"es6": true
|
|
64
|
+
},
|
|
65
|
+
"es6": true,
|
|
66
|
+
"ecmaVersion": 6,
|
|
67
|
+
"sourceType": "module",
|
|
68
|
+
"allowImportExportEverywhere": false,
|
|
69
|
+
"codeFrame": false
|
|
70
|
+
},
|
|
71
|
+
"plugins": [
|
|
72
|
+
"react"
|
|
73
|
+
],
|
|
74
|
+
"rules": {
|
|
75
|
+
"comma-dangle": "off",
|
|
76
|
+
"indent": "off",
|
|
77
|
+
"linebreak-style": [
|
|
78
|
+
"error",
|
|
79
|
+
"unix"
|
|
80
|
+
],
|
|
81
|
+
"no-cond-assign": "off",
|
|
82
|
+
"no-console": "off",
|
|
83
|
+
"no-empty": "off",
|
|
84
|
+
"no-extra-boolean-cast": "off",
|
|
85
|
+
"no-extra-semi": "off",
|
|
86
|
+
"no-fallthrough": "off",
|
|
87
|
+
"no-func-assign": "off",
|
|
88
|
+
"no-inner-declarations": "off",
|
|
89
|
+
"no-mixed-spaces-and-tabs": "off",
|
|
90
|
+
"no-redeclare": "off",
|
|
91
|
+
"no-tabs": "off",
|
|
92
|
+
"no-undef": "off",
|
|
93
|
+
"no-global-assign": "off",
|
|
94
|
+
"no-unreachable": "off",
|
|
95
|
+
"no-unused-vars": "off",
|
|
96
|
+
"strict": "off"
|
|
97
|
+
}
|
|
36
98
|
}
|
|
37
99
|
}
|
package/.eslintrc
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"node": true,
|
|
5
|
-
"es6": true
|
|
6
|
-
},
|
|
7
|
-
"parser": "babel-eslint",
|
|
8
|
-
"extends": "eslint:recommended",
|
|
9
|
-
"parserOptions": {
|
|
10
|
-
"ecmaFeatures": {
|
|
11
|
-
"experimentalObjectRestSpread": true,
|
|
12
|
-
"jsx": true,
|
|
13
|
-
"impliedStrict": true,
|
|
14
|
-
"es6": true
|
|
15
|
-
},
|
|
16
|
-
"es6": true,
|
|
17
|
-
"ecmaVersion": 6,
|
|
18
|
-
"sourceType": "module",
|
|
19
|
-
"allowImportExportEverywhere": false,
|
|
20
|
-
"codeFrame": false
|
|
21
|
-
},
|
|
22
|
-
"plugins": ["react"],
|
|
23
|
-
"rules": {
|
|
24
|
-
"comma-dangle": "off",
|
|
25
|
-
"indent": "off",
|
|
26
|
-
"linebreak-style": ["error", "unix"],
|
|
27
|
-
"no-cond-assign": "off",
|
|
28
|
-
"no-console": "off",
|
|
29
|
-
"no-empty": "off",
|
|
30
|
-
"no-extra-boolean-cast": "off",
|
|
31
|
-
"no-extra-semi": "off",
|
|
32
|
-
"no-fallthrough": "off",
|
|
33
|
-
"no-func-assign": "off",
|
|
34
|
-
"no-inner-declarations": "off",
|
|
35
|
-
"no-mixed-spaces-and-tabs": "off",
|
|
36
|
-
"no-prototype-builtins": "off",
|
|
37
|
-
"no-redeclare": "off",
|
|
38
|
-
"no-tabs": "off",
|
|
39
|
-
"no-undef": "off",
|
|
40
|
-
"no-unreachable": "off",
|
|
41
|
-
"no-unused-vars": "off",
|
|
42
|
-
"strict": "off"
|
|
43
|
-
}
|
|
44
|
-
}
|
package/.prettierrc.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
'printWidth': 80,
|
|
3
|
-
'useTabs': true,
|
|
4
|
-
'semi': false,
|
|
5
|
-
|
|
6
|
-
'singleQuote': true,
|
|
7
|
-
'jsxSingleQuote': false,
|
|
8
|
-
'trailingComma': 'all',
|
|
9
|
-
'bracketSpacing': true,
|
|
10
|
-
'jsxBracketSameLine': false,
|
|
11
|
-
'arrowParens': 'avoid',
|
|
12
|
-
'quoteProps': 'preserve',
|
|
13
|
-
|
|
14
|
-
'proseWrap': 'preserve',
|
|
15
|
-
}
|