split-frames 2.4.3 → 2.4.5
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/LICENSE +1 -1
- package/lib/checkers/initData.js +5 -1
- package/lib/index.d.ts +3 -2
- package/lib/main.js +6 -2
- package/package.json +49 -20
- package/.coveralls.yml +0 -1
- package/.eslintrc.js +0 -296
- package/.travis.yml +0 -8
- package/test/0_compilation_typescript.js +0 -37
- package/test/0_parameters.js +0 -394
- package/test/1_withoutTags.js +0 -81
- package/test/2_endOnly.js +0 -297
- package/test/2_startOnly.js +0 -345
- package/test/3_startAndEnd.js +0 -325
- package/test/4_specifics.js +0 -283
- package/test/5_documentation.js +0 -363
- package/test/typescript/compilation.ts +0 -38
package/LICENSE
CHANGED
package/lib/checkers/initData.js
CHANGED
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
// deps
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// natives
|
|
10
|
+
const { join } = require("node:path");
|
|
11
|
+
|
|
12
|
+
// locals
|
|
13
|
+
const checkTagsValidity = require(join(__dirname, "checkTagsValidity.js"));
|
|
10
14
|
|
|
11
15
|
// consts
|
|
12
16
|
|
package/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
declare module "split-frames" {
|
|
4
4
|
|
|
5
|
+
import { Transform } from "node:stream";
|
|
6
|
+
|
|
5
7
|
type ControlBits = "none" | "end+1" | "end+2";
|
|
6
8
|
type Tag = number | Buffer | Array<number>;
|
|
7
9
|
|
|
@@ -20,7 +22,7 @@ declare module "split-frames" {
|
|
|
20
22
|
"controlBits"?: ControlBits;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
class Splitter extends
|
|
25
|
+
class Splitter extends Transform {
|
|
24
26
|
|
|
25
27
|
protected _frame: Buffer;
|
|
26
28
|
protected _digesting: boolean;
|
|
@@ -45,7 +47,6 @@ declare module "split-frames" {
|
|
|
45
47
|
protected _searchTags(tag: Tag, beginWith?: number): number;
|
|
46
48
|
protected _digest(): void;
|
|
47
49
|
protected _digester(): void;
|
|
48
|
-
protected _transform(chunk: Buffer, enc?: string, cb?: () => void): void;
|
|
49
50
|
|
|
50
51
|
}
|
|
51
52
|
|
package/lib/main.js
CHANGED
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
// deps
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// natives
|
|
10
|
+
const { join } = require("node:path");
|
|
11
|
+
const { Transform } = require("node:stream");
|
|
12
|
+
|
|
13
|
+
// locals
|
|
10
14
|
|
|
11
15
|
const _initData = require(join(__dirname, "checkers", "initData.js"));
|
|
12
16
|
|
|
@@ -72,7 +76,7 @@
|
|
|
72
76
|
|
|
73
77
|
// module
|
|
74
78
|
|
|
75
|
-
module.exports = class SplitFrames extends
|
|
79
|
+
module.exports = class SplitFrames extends Transform {
|
|
76
80
|
|
|
77
81
|
constructor (options) {
|
|
78
82
|
|
package/package.json
CHANGED
|
@@ -1,26 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
+
|
|
2
3
|
"name": "split-frames",
|
|
3
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.5",
|
|
4
5
|
"description": "Split Buffer frames from streams",
|
|
6
|
+
|
|
7
|
+
"type": "commonjs",
|
|
5
8
|
"main": "lib/main.js",
|
|
6
9
|
"typings": "lib/index.d.ts",
|
|
10
|
+
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"require": {
|
|
14
|
+
"types": "./lib/index.d.ts",
|
|
15
|
+
"default": "./lib/main.js"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
|
|
7
20
|
"scripts": {
|
|
21
|
+
|
|
22
|
+
"build": "npx tsc --project \"./tsconfig.json\"",
|
|
23
|
+
|
|
8
24
|
"lint": "npx eslint ./lib/**/*.js ./test/**/*.js",
|
|
25
|
+
"check-requires": "npx used-deps-analyzer \"./package.json\" \"./lib\" --no-dev --overkill \"fs-extra\" \"node-promfs\"",
|
|
9
26
|
"check-updates": "npx check-version-modules",
|
|
10
27
|
"unit-tests": "npx nyc --reporter=html --reporter=text mocha",
|
|
11
|
-
|
|
28
|
+
|
|
29
|
+
"tests": "npm run-script lint && npm run check-requires && npm run-script check-updates && npm run-script unit-tests",
|
|
12
30
|
"ci": "npm run-script tests && npx nyc report --reporter=text-lcov | coveralls"
|
|
31
|
+
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"files": [
|
|
35
|
+
"/lib"
|
|
36
|
+
],
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=16.0.0"
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
"dependencies": {},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "20.5.0",
|
|
44
|
+
"check-version-modules": "1.4.1",
|
|
45
|
+
"coveralls": "3.1.1",
|
|
46
|
+
"eslint": "8.47.0",
|
|
47
|
+
"husky": "8.0.3",
|
|
48
|
+
"mocha": "10.2.0",
|
|
49
|
+
"nyc": "15.1.0",
|
|
50
|
+
"used-deps-analyzer": "0.1.6"
|
|
13
51
|
},
|
|
52
|
+
"optionalDependencies": {},
|
|
53
|
+
|
|
14
54
|
"husky": {
|
|
15
55
|
"hooks": {
|
|
16
56
|
"pre-commit": "npm run-script lint",
|
|
17
57
|
"pre-push": "npm run-script tests"
|
|
18
58
|
}
|
|
19
59
|
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "git://github.com/Psychopoulet/split-frames"
|
|
23
|
-
},
|
|
24
60
|
"keywords": [
|
|
25
61
|
"frame",
|
|
26
62
|
"Buffer",
|
|
@@ -47,21 +83,14 @@
|
|
|
47
83
|
],
|
|
48
84
|
"author": "Sébastien VIDAL",
|
|
49
85
|
"license": "ISC",
|
|
86
|
+
|
|
87
|
+
"homepage": "https://github.com/Psychopoulet/split-frames#readme",
|
|
88
|
+
"repository": {
|
|
89
|
+
"type": "git",
|
|
90
|
+
"url": "git://github.com/Psychopoulet/split-frames"
|
|
91
|
+
},
|
|
50
92
|
"bugs": {
|
|
51
93
|
"url": "https://github.com/Psychopoulet/split-frames/issues"
|
|
52
|
-
},
|
|
53
|
-
"dependencies": {},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@types/node": "18.11.9",
|
|
56
|
-
"check-version-modules": "1.3.5",
|
|
57
|
-
"coveralls": "3.1.1",
|
|
58
|
-
"eslint": "8.26.0",
|
|
59
|
-
"husky": "8.0.1",
|
|
60
|
-
"mocha": "10.1.0",
|
|
61
|
-
"nyc": "15.1.0"
|
|
62
|
-
},
|
|
63
|
-
"homepage": "https://github.com/Psychopoulet/split-frames#readme",
|
|
64
|
-
"engines": {
|
|
65
|
-
"node": ">=16.0.0"
|
|
66
94
|
}
|
|
95
|
+
|
|
67
96
|
}
|
package/.coveralls.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
service_name: travis-ci
|
package/.eslintrc.js
DELETED
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"extends": "eslint:recommended",
|
|
3
|
-
"parserOptions": {
|
|
4
|
-
"ecmaVersion": 2018
|
|
5
|
-
},
|
|
6
|
-
"env": {
|
|
7
|
-
"es6": true,
|
|
8
|
-
"mocha": true,
|
|
9
|
-
"node": true
|
|
10
|
-
},
|
|
11
|
-
"globals": {
|
|
12
|
-
"after": true,
|
|
13
|
-
"afterEach": true,
|
|
14
|
-
"angular": true,
|
|
15
|
-
"before": true,
|
|
16
|
-
"beforeEach": true,
|
|
17
|
-
"Buffer": true,
|
|
18
|
-
"console": true,
|
|
19
|
-
"clearInterval": true,
|
|
20
|
-
"clearTimeout": true,
|
|
21
|
-
"describe": true,
|
|
22
|
-
"it": true,
|
|
23
|
-
"jQuery": true,
|
|
24
|
-
"Promise": true,
|
|
25
|
-
"Map": true,
|
|
26
|
-
"module": true,
|
|
27
|
-
"os": true,
|
|
28
|
-
"process": true,
|
|
29
|
-
"require": true,
|
|
30
|
-
"setImmediate": true,
|
|
31
|
-
"setInterval": true,
|
|
32
|
-
"setTimeout": true,
|
|
33
|
-
"__dirname": true,
|
|
34
|
-
"__filename": true
|
|
35
|
-
},
|
|
36
|
-
"rules": {
|
|
37
|
-
"for-direction": "error",
|
|
38
|
-
"getter-return": "error",
|
|
39
|
-
"no-await-in-loop": "error",
|
|
40
|
-
"no-compare-neg-zero": "error",
|
|
41
|
-
"no-cond-assign": "error",
|
|
42
|
-
"no-console": "error",
|
|
43
|
-
"no-constant-condition": "error",
|
|
44
|
-
"no-control-regex": "error",
|
|
45
|
-
"no-debugger": "error",
|
|
46
|
-
"no-dupe-args": "error",
|
|
47
|
-
"no-dupe-keys": "error",
|
|
48
|
-
"no-duplicate-case": "error",
|
|
49
|
-
"no-empty": "error",
|
|
50
|
-
"no-empty-character-class": "error",
|
|
51
|
-
"no-ex-assign": "error",
|
|
52
|
-
"no-extra-boolean-cast": "error",
|
|
53
|
-
"no-extra-parens": "error",
|
|
54
|
-
"no-extra-semi": "error",
|
|
55
|
-
"no-func-assign": "error",
|
|
56
|
-
"no-inner-declarations": "error",
|
|
57
|
-
"no-invalid-regexp": "error",
|
|
58
|
-
"no-irregular-whitespace": "error",
|
|
59
|
-
"no-obj-calls": "error",
|
|
60
|
-
"no-prototype-builtins": "error",
|
|
61
|
-
"no-regex-spaces": "error",
|
|
62
|
-
"no-sparse-arrays": "error",
|
|
63
|
-
"no-template-curly-in-string": "error",
|
|
64
|
-
"no-unexpected-multiline": "error",
|
|
65
|
-
"no-unreachable": "error",
|
|
66
|
-
"no-unsafe-finally": "error",
|
|
67
|
-
"no-unsafe-negation": "error",
|
|
68
|
-
"use-isnan": "error",
|
|
69
|
-
"valid-jsdoc": "error",
|
|
70
|
-
"valid-typeof": "error",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"accessor-pairs": "error",
|
|
74
|
-
"array-callback-return": "error",
|
|
75
|
-
"block-scoped-var": "error",
|
|
76
|
-
"class-methods-use-this": "error",
|
|
77
|
-
"complexity": "error",
|
|
78
|
-
"consistent-return": "error",
|
|
79
|
-
"curly": "error",
|
|
80
|
-
"default-case": "error",
|
|
81
|
-
"dot-location": [ "error", "property" ],
|
|
82
|
-
"dot-notation": "error",
|
|
83
|
-
"eqeqeq": "error",
|
|
84
|
-
"guard-for-in": "error",
|
|
85
|
-
"no-alert": "error",
|
|
86
|
-
"no-caller": "error",
|
|
87
|
-
"no-case-declarations": "error",
|
|
88
|
-
"no-div-regex": "error",
|
|
89
|
-
"no-else-return": 0,
|
|
90
|
-
"no-empty-function": "error",
|
|
91
|
-
"no-empty-pattern": "error",
|
|
92
|
-
"no-eq-null": "error",
|
|
93
|
-
"no-eval": "error",
|
|
94
|
-
"no-extend-native": "error",
|
|
95
|
-
"no-extra-bind": "error",
|
|
96
|
-
"no-extra-label": "error",
|
|
97
|
-
"no-fallthrough": "error",
|
|
98
|
-
"no-floating-decimal": "error",
|
|
99
|
-
"no-global-assign": "error",
|
|
100
|
-
"no-implicit-coercion": "error",
|
|
101
|
-
"no-implicit-globals": "error",
|
|
102
|
-
"no-implied-eval": "error",
|
|
103
|
-
"no-invalid-this": "error",
|
|
104
|
-
"no-iterator": "error",
|
|
105
|
-
"no-labels": "error",
|
|
106
|
-
"no-lone-blocks": "error",
|
|
107
|
-
"no-loop-func": "error",
|
|
108
|
-
"no-magic-numbers": 0,
|
|
109
|
-
"no-multi-spaces": "error",
|
|
110
|
-
"no-multi-str": "error",
|
|
111
|
-
"no-new": "error",
|
|
112
|
-
"no-new-func": "error",
|
|
113
|
-
"no-new-wrappers": "error",
|
|
114
|
-
"no-octal": "error",
|
|
115
|
-
"no-octal-escape": "error",
|
|
116
|
-
"no-param-reassign": "error",
|
|
117
|
-
"no-proto": "error",
|
|
118
|
-
"no-redeclare": "error",
|
|
119
|
-
"no-restricted-properties": "error",
|
|
120
|
-
"no-return-assign": "error",
|
|
121
|
-
"no-return-await": "error",
|
|
122
|
-
"no-script-url": "error",
|
|
123
|
-
"no-self-assign": "error",
|
|
124
|
-
"no-self-compare": "error",
|
|
125
|
-
"no-sequences": "error",
|
|
126
|
-
"no-throw-literal": "error",
|
|
127
|
-
"no-unmodified-loop-condition": "error",
|
|
128
|
-
"no-unused-expressions": "error",
|
|
129
|
-
"no-unused-labels": "error",
|
|
130
|
-
"no-useless-call": "error",
|
|
131
|
-
"no-useless-concat": "error",
|
|
132
|
-
"no-useless-escape": "error",
|
|
133
|
-
"no-useless-return": "error",
|
|
134
|
-
"no-void": "error",
|
|
135
|
-
"no-warning-comments": "error",
|
|
136
|
-
"no-with": "error",
|
|
137
|
-
"prefer-promise-reject-errors": "error",
|
|
138
|
-
"radix": "error",
|
|
139
|
-
"require-await": "error",
|
|
140
|
-
"vars-on-top": "error",
|
|
141
|
-
"wrap-iife": "error",
|
|
142
|
-
"yoda": [ "error", "always" ],
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"strict": [ "error", "global" ],
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"init-declarations": "error",
|
|
149
|
-
"no-catch-shadow": "error",
|
|
150
|
-
"no-delete-var": "error",
|
|
151
|
-
"no-label-var": "error",
|
|
152
|
-
"no-restricted-globals": "error",
|
|
153
|
-
"no-shadow": "error",
|
|
154
|
-
"no-shadow-restricted-names": "error",
|
|
155
|
-
"no-undef": "error",
|
|
156
|
-
"no-undef-init": "error",
|
|
157
|
-
"no-undefined": "error",
|
|
158
|
-
"no-unused-vars": "error",
|
|
159
|
-
"no-use-before-define": "error",
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"callback-return": "error",
|
|
163
|
-
"global-require": 0,
|
|
164
|
-
"handle-callback-err": "error",
|
|
165
|
-
"no-buffer-constructor": "error",
|
|
166
|
-
"no-mixed-requires": "error",
|
|
167
|
-
"no-new-require": "error",
|
|
168
|
-
"no-path-concat": "error",
|
|
169
|
-
"no-process-env": "error",
|
|
170
|
-
"no-process-exit": "error",
|
|
171
|
-
"no-restricted-modules": "error",
|
|
172
|
-
"no-sync": "error",
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
"array-bracket-newline": "error",
|
|
176
|
-
"array-bracket-spacing": [ "error", "always" ],
|
|
177
|
-
"array-element-newline": [ "error", "consistent" ],
|
|
178
|
-
"block-spacing": "error",
|
|
179
|
-
"brace-style": [ "error", "stroustrup" ],
|
|
180
|
-
"camelcase": "error",
|
|
181
|
-
"capitalized-comments": 0,
|
|
182
|
-
"comma-dangle": [ "error", "never" ],
|
|
183
|
-
"comma-spacing": [ "error", { "before": false, "after": true } ],
|
|
184
|
-
"comma-style": [ "error", "last" ],
|
|
185
|
-
"computed-property-spacing": [ "error", "never" ],
|
|
186
|
-
"consistent-this": "error",
|
|
187
|
-
"eol-last": "error",
|
|
188
|
-
"func-call-spacing": "error",
|
|
189
|
-
"func-name-matching": "error",
|
|
190
|
-
"func-names": "error",
|
|
191
|
-
"func-style": [ "error", "declaration" ],
|
|
192
|
-
"id-blacklist": 0,
|
|
193
|
-
"id-length": 0,
|
|
194
|
-
"id-match": 0,
|
|
195
|
-
"indent": 0,
|
|
196
|
-
"jsx-quotes": [ "error", "prefer-double" ],
|
|
197
|
-
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ],
|
|
198
|
-
"keyword-spacing": [ "error", { "after": true, "before": true } ],
|
|
199
|
-
"line-comment-position": [ "error", { "position": "above" } ],
|
|
200
|
-
"linebreak-style": 0,
|
|
201
|
-
"lines-around-comment": "error",
|
|
202
|
-
"max-depth": [ "error", 4 ],
|
|
203
|
-
"max-len": [ "error", 150 ],
|
|
204
|
-
"max-lines": [ "error", { "max": 500, "skipComments": true } ],
|
|
205
|
-
"max-nested-callbacks": [ "error", 5 ],
|
|
206
|
-
"max-params": [ "error", 4 ],
|
|
207
|
-
"max-statements": [ "error", 25 ],
|
|
208
|
-
"max-statements-per-line": [ "error", { "max": 2 } ],
|
|
209
|
-
"multiline-ternary": 0,
|
|
210
|
-
"new-cap": "error",
|
|
211
|
-
"new-parens": "error",
|
|
212
|
-
"newline-per-chained-call": 0,
|
|
213
|
-
"no-array-constructor": "error",
|
|
214
|
-
"no-bitwise": "error",
|
|
215
|
-
"no-continue": "error",
|
|
216
|
-
"no-inline-comments": "error",
|
|
217
|
-
"no-lonely-if": "error",
|
|
218
|
-
"no-mixed-operators": "error",
|
|
219
|
-
"no-mixed-spaces-and-tabs": "error",
|
|
220
|
-
"no-multi-assign": "error",
|
|
221
|
-
"no-multiple-empty-lines": "error",
|
|
222
|
-
"no-negated-condition": 0,
|
|
223
|
-
"no-nested-ternary": "error",
|
|
224
|
-
"no-new-object": "error",
|
|
225
|
-
"no-plusplus": 0,
|
|
226
|
-
"no-restricted-syntax": "error",
|
|
227
|
-
"no-tabs": [ "error", { "allowIndentationTabs": true } ],
|
|
228
|
-
"no-ternary": 0,
|
|
229
|
-
"no-trailing-spaces": "error",
|
|
230
|
-
"no-underscore-dangle": 0,
|
|
231
|
-
"no-unneeded-ternary": "error",
|
|
232
|
-
"no-whitespace-before-property": "error",
|
|
233
|
-
"nonblock-statement-body-position": [ "error", "below" ],
|
|
234
|
-
"object-curly-newline": [ "error", { "consistent": true } ],
|
|
235
|
-
"object-curly-spacing": [ "error", "always" ],
|
|
236
|
-
"object-property-newline": "error",
|
|
237
|
-
"one-var": [ "error", "never" ],
|
|
238
|
-
"one-var-declaration-per-line": "error",
|
|
239
|
-
"operator-assignment": [ "error", "always" ],
|
|
240
|
-
"operator-linebreak": [ "error", "after" ],
|
|
241
|
-
"padded-blocks": ["error", { "classes": "always", "switches": "always" } ],
|
|
242
|
-
"padding-line-between-statements": "error",
|
|
243
|
-
"quote-props": [ "error", "always" ],
|
|
244
|
-
"quotes": [ "error", "double" ],
|
|
245
|
-
"require-jsdoc": "error",
|
|
246
|
-
"semi": [ "error", "always" ],
|
|
247
|
-
"semi-spacing": [ "error", { "before": false, "after": true } ],
|
|
248
|
-
"semi-style": [ "error", "last" ],
|
|
249
|
-
"sort-keys": 0,
|
|
250
|
-
"sort-vars": "error",
|
|
251
|
-
"space-before-blocks": [ "error", "always" ],
|
|
252
|
-
"space-before-function-paren": [ "error", "always" ],
|
|
253
|
-
"space-in-parens": [ "error", "never" ],
|
|
254
|
-
"space-infix-ops": "error",
|
|
255
|
-
"space-unary-ops": "error",
|
|
256
|
-
"spaced-comment": [ "error", "always" ],
|
|
257
|
-
"switch-colon-spacing": [ "error", { "after": true, "before": false } ],
|
|
258
|
-
"template-tag-spacing": [ "error", "always" ],
|
|
259
|
-
"unicode-bom": 0,
|
|
260
|
-
"wrap-regex": "error",
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
"arrow-body-style": [ "error", "always" ],
|
|
264
|
-
"arrow-parens": [ "error", "always" ],
|
|
265
|
-
"arrow-spacing": ["error", { "before": true, "after": true } ],
|
|
266
|
-
"constructor-super": "error",
|
|
267
|
-
"generator-star-spacing": [ "error", { "before": true, "after": false } ],
|
|
268
|
-
"no-class-assign": "error",
|
|
269
|
-
"no-confusing-arrow": "error",
|
|
270
|
-
"no-const-assign": "error",
|
|
271
|
-
"no-dupe-class-members": "error",
|
|
272
|
-
"no-duplicate-imports": "error",
|
|
273
|
-
"no-new-symbol": "error",
|
|
274
|
-
"no-restricted-imports": 0,
|
|
275
|
-
"no-this-before-super": "error",
|
|
276
|
-
"no-useless-computed-key": "error",
|
|
277
|
-
"no-useless-constructor": "error",
|
|
278
|
-
"no-useless-rename": "error",
|
|
279
|
-
"no-var": "error",
|
|
280
|
-
"object-shorthand": "error",
|
|
281
|
-
"prefer-arrow-callback": "error",
|
|
282
|
-
"prefer-const": "error",
|
|
283
|
-
"prefer-destructuring": "error",
|
|
284
|
-
"prefer-numeric-literals": "error",
|
|
285
|
-
"prefer-rest-params": "error",
|
|
286
|
-
"prefer-spread": "error",
|
|
287
|
-
"prefer-template": 0,
|
|
288
|
-
"require-yield": "error",
|
|
289
|
-
"rest-spread-spacing": [ "error", "never" ],
|
|
290
|
-
"sort-imports": "error",
|
|
291
|
-
"symbol-description": "error",
|
|
292
|
-
"template-curly-spacing": "error",
|
|
293
|
-
"yield-star-spacing": [ "error", { "before": true, "after": false } ]
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
};
|
package/.travis.yml
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
// deps
|
|
5
|
-
|
|
6
|
-
const { exec } = require("child_process");
|
|
7
|
-
const { join } = require("path");
|
|
8
|
-
const { unlink } = require("fs");
|
|
9
|
-
|
|
10
|
-
// consts
|
|
11
|
-
|
|
12
|
-
const MAX_TIMEOUT = 10000;
|
|
13
|
-
|
|
14
|
-
// tests
|
|
15
|
-
|
|
16
|
-
describe("compilation typescript", () => {
|
|
17
|
-
|
|
18
|
-
after((done) => {
|
|
19
|
-
|
|
20
|
-
unlink(join(__dirname, "typescript", "compilation.js"), (err) => {
|
|
21
|
-
return err ? done(err) : done();
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it("should compile typescript file", (done) => {
|
|
27
|
-
|
|
28
|
-
exec("tsc " + join(__dirname, "typescript", "compilation.ts"), {
|
|
29
|
-
"cwd": join(__dirname, ".."),
|
|
30
|
-
"windowsHide": true
|
|
31
|
-
}, (err) => {
|
|
32
|
-
return err ? done(err) : done();
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
}).timeout(MAX_TIMEOUT);
|
|
36
|
-
|
|
37
|
-
});
|