spawn-rx 3.0.0 → 4.0.0-beta.1
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/.prettierrc +4 -0
- package/eslint.config.mjs +88 -0
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +82 -52
- package/lib/src/index.js.map +1 -1
- package/package.json +26 -20
- package/src/ambient.d.ts +1 -1
- package/src/index.ts +200 -129
- package/test/asserttest.ts +5 -4
- package/test/spawn.ts +86 -49
- package/test/support.ts +4 -3
- package/tsconfig.json +2 -6
- package/.travis.yml +0 -24
- package/appveyor.yml +0 -21
- package/tslint.json +0 -40
package/test/support.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
import * as
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
2
|
+
import * as chai from "chai";
|
3
|
+
import * as chaiAsPromised from "chai-as-promised";
|
3
4
|
|
4
5
|
declare const global: any;
|
5
6
|
|
@@ -11,4 +12,4 @@ global.chaiAsPromised = chaiAsPromised;
|
|
11
12
|
global.expect = chai.expect;
|
12
13
|
global.AssertionError = chai.AssertionError;
|
13
14
|
global.assert = chai.assert;
|
14
|
-
global.Assertion = (chai as any).Assertion; //'Assertion' is not existing?
|
15
|
+
global.Assertion = (chai as any).Assertion; // 'Assertion' is not existing?
|
package/tsconfig.json
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
"declaration": true,
|
7
7
|
"noImplicitAny": true,
|
8
8
|
"noImplicitReturns": true,
|
9
|
-
"suppressImplicitAnyIndexErrors": true,
|
10
9
|
"strictNullChecks": true,
|
11
10
|
"noUnusedLocals": true,
|
12
11
|
"noImplicitThis": true,
|
@@ -22,8 +21,5 @@
|
|
22
21
|
"indentSize": 2,
|
23
22
|
"tabSize": 2
|
24
23
|
},
|
25
|
-
"exclude": [
|
26
|
-
|
27
|
-
"lib"
|
28
|
-
]
|
29
|
-
}
|
24
|
+
"exclude": ["node_modules", "lib"]
|
25
|
+
}
|
package/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
sudo: required
|
2
|
-
dist: trusty
|
3
|
-
os:
|
4
|
-
- linux
|
5
|
-
- osx
|
6
|
-
cache:
|
7
|
-
directories:
|
8
|
-
- node_modules
|
9
|
-
notifications:
|
10
|
-
email: false
|
11
|
-
language: node_js
|
12
|
-
node_js:
|
13
|
-
- 7
|
14
|
-
- 6
|
15
|
-
- 4
|
16
|
-
install:
|
17
|
-
- npm install
|
18
|
-
branches:
|
19
|
-
only:
|
20
|
-
- master
|
21
|
-
before_script:
|
22
|
-
- npm prune
|
23
|
-
script:
|
24
|
-
- npm run build
|
package/appveyor.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
platform:
|
3
|
-
- x64
|
4
|
-
|
5
|
-
cache:
|
6
|
-
- node_modules
|
7
|
-
|
8
|
-
environment:
|
9
|
-
matrix:
|
10
|
-
- nodejs_version: "7"
|
11
|
-
- nodejs_version: "6"
|
12
|
-
- nodejs_version: "4"
|
13
|
-
|
14
|
-
install:
|
15
|
-
- ps: Install-Product node $env:nodejs_version $env:platform
|
16
|
-
- npm install
|
17
|
-
|
18
|
-
test_script:
|
19
|
-
- npm run build
|
20
|
-
|
21
|
-
build: off
|
package/tslint.json
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"rules": {
|
3
|
-
"curly": true,
|
4
|
-
"eofline": false,
|
5
|
-
"align": [true, "parameters"],
|
6
|
-
"class-name": true,
|
7
|
-
"indent": [true, "spaces"],
|
8
|
-
"max-line-length": [true, 150],
|
9
|
-
"no-consecutive-blank-lines": [true],
|
10
|
-
"no-trailing-whitespace": true,
|
11
|
-
"no-duplicate-variable": true,
|
12
|
-
"no-var-keyword": true,
|
13
|
-
"no-empty": true,
|
14
|
-
"no-unused-expression-chai": true,
|
15
|
-
"no-use-before-declare": true,
|
16
|
-
"no-var-requires": true,
|
17
|
-
"one-line": [true,
|
18
|
-
"check-else",
|
19
|
-
"check-whitespace",
|
20
|
-
"check-open-brace"],
|
21
|
-
"quotemark": [true,
|
22
|
-
"single",
|
23
|
-
"avoid-escape"],
|
24
|
-
"semicolon": [true, "always"],
|
25
|
-
"typedef-whitespace": [true, {
|
26
|
-
"call-signature": "nospace",
|
27
|
-
"index-signature": "nospace",
|
28
|
-
"parameter": "nospace",
|
29
|
-
"property-declaration": "nospace",
|
30
|
-
"variable-declaration": "nospace"
|
31
|
-
}],
|
32
|
-
"whitespace": [true,
|
33
|
-
"check-branch",
|
34
|
-
"check-decl",
|
35
|
-
"check-operator",
|
36
|
-
"check-type"]
|
37
|
-
}, "rulesDirectory": [
|
38
|
-
"tslint-no-unused-expression-chai"
|
39
|
-
]
|
40
|
-
}
|