cross-spawn-cb 0.5.1 → 0.5.4

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 CHANGED
@@ -20,3 +20,81 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
22
 
23
+ ---------------cross-spawn-----------------------
24
+ The MIT License (MIT)
25
+
26
+ Copyright (c) 2018 Made With MOXY Lda <hello@moxy.studio>
27
+
28
+ Permission is hereby granted, free of charge, to any person obtaining a copy
29
+ of this software and associated documentation files (the "Software"), to deal
30
+ in the Software without restriction, including without limitation the rights
31
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ copies of the Software, and to permit persons to whom the Software is
33
+ furnished to do so, subject to the following conditions:
34
+
35
+ The above copyright notice and this permission notice shall be included in
36
+ all copies or substantial portions of the Software.
37
+
38
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
44
+ THE SOFTWARE.
45
+
46
+ ---------------json-buffer-----------------------
47
+ Copyright (c) 2013 Dominic Tarr
48
+
49
+ Permission is hereby granted, free of charge,
50
+ to any person obtaining a copy of this software and
51
+ associated documentation files (the "Software"), to
52
+ deal in the Software without restriction, including
53
+ without limitation the rights to use, copy, modify,
54
+ merge, publish, distribute, sublicense, and/or sell
55
+ copies of the Software, and to permit persons to whom
56
+ the Software is furnished to do so,
57
+ subject to the following conditions:
58
+
59
+ The above copyright notice and this permission notice
60
+ shall be included in all copies or substantial portions of the Software.
61
+
62
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
63
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
64
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
65
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
66
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
67
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
68
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
69
+
70
+ ---------------path-key-----------------------
71
+ MIT License
72
+
73
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
74
+
75
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
76
+
77
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
78
+
79
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
80
+
81
+ ---------------spawn-sync-----------------------
82
+ Copyright (c) 2014 Forbes Lindesay
83
+
84
+ Permission is hereby granted, free of charge, to any person obtaining a copy
85
+ of this software and associated documentation files (the "Software"), to deal
86
+ in the Software without restriction, including without limitation the rights
87
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
+ copies of the Software, and to permit persons to whom the Software is
89
+ furnished to do so, subject to the following conditions:
90
+
91
+ The above copyright notice and this permission notice shall be included in
92
+ all copies or substantial portions of the Software.
93
+
94
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
95
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
96
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
97
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
98
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
99
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
100
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Made With MOXY Lda <hello@moxy.studio>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
File without changes
package/lib/index.js CHANGED
@@ -1,2 +1,4 @@
1
+ require('./polyfills');
1
2
  module.exports = require('./spawnCallback');
2
3
  module.exports.sync = require('./spawnSyncCallback');
4
+ module.exports.pathKey = require('./path-key');
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ });
6
+ var pathKey$1 = {
7
+ exports: {}
8
+ };
9
+
10
+ var pathKey = function pathKey() {
11
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
12
+ var environment = options.env || process.env;
13
+ var platform = options.platform || process.platform;
14
+
15
+ if (platform !== 'win32') {
16
+ return 'PATH';
17
+ }
18
+
19
+ return Object.keys(environment).reverse().find(function (key) {
20
+ return key.toUpperCase() === 'PATH';
21
+ }) || 'Path';
22
+ };
23
+
24
+ pathKey$1.exports = pathKey; // TODO: Remove this for the next major release
25
+
26
+ pathKey$1.exports["default"] = pathKey;
27
+ exports["default"] = pathKey$1.exports;
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/lib/polyfills.js CHANGED
@@ -15,3 +15,11 @@ if (!Array.prototype.find) {
15
15
  return null;
16
16
  };
17
17
  }
18
+
19
+ if (!Buffer.from) {
20
+ Buffer.from = function from(data) {
21
+ // eslint-disable-next-line n/no-deprecated-api
22
+ return new Buffer(data);
23
+ };
24
+ }
25
+ if (!Buffer.alloc) Buffer.alloc = Buffer.from;
@@ -5,8 +5,10 @@ var path = require('path');
5
5
  var fs = require('fs');
6
6
  var tmpdir = require('os').tmpdir || require('os-shim').tmpdir;
7
7
  var cp = require('child_process');
8
- var sleep = function () {};
9
8
  var JSON = require('../json-buffer');
9
+ var sleep = function () {
10
+ cp.exec('echo ""')
11
+ };
10
12
 
11
13
  var temp = path.normalize(path.join(tmpdir(), 'spawn-sync'));
12
14
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  require('../polyfills');
5
5
 
6
- var spawn = require('../cross-spawn.js').spawn;
6
+ var spawn = require('../cross-spawn').spawn;
7
7
  var fs = require('fs');
8
8
  var concat = require('concat-stream');
9
9
  var JSON = require('../json-buffer');
@@ -1,5 +1,3 @@
1
- require('./polyfills');
2
-
3
1
  var assign = require('just-extend');
4
2
  var once = require('once');
5
3
  var nextTick = require('next-tick');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cross-spawn-cb",
3
- "version": "0.5.1",
3
+ "version": "0.5.4",
4
4
  "description": "Cross spawn with a completion callback",
5
5
  "keywords": [
6
6
  "cross-spawn",
@@ -19,17 +19,19 @@
19
19
  "prepublishOnly": "dtd \"npm run lint\" \"depcheck\"",
20
20
  "test": "mocha-compat test/spec/**/*.test.js",
21
21
  "test:engines": "nvu engines npm test",
22
- "build": "rollup -c rollup.config.js"
22
+ "build": "rollup -c config/rollup.pk.config.js && rollup -c config/rollup.cs.config.js"
23
23
  },
24
24
  "files": [
25
25
  "lib"
26
26
  ],
27
27
  "dependencies": {
28
+ "concat-stream": "^1.6.2",
28
29
  "cross-spawn": "^7.0.3",
29
30
  "just-extend": "^6.0.1",
30
31
  "next-tick": "^1.1.0",
31
32
  "object-keys": "^1.1.1",
32
- "once": "^1.4.0"
33
+ "once": "^1.4.0",
34
+ "os-shim": "^0.1.3"
33
35
  },
34
36
  "devDependencies": {
35
37
  "@babel/preset-env": "^7.18.6",
@@ -38,16 +40,15 @@
38
40
  "@rollup/plugin-node-resolve": "^13.3.0",
39
41
  "@typescript-eslint/parser": "^5.30.0",
40
42
  "depcheck": "^1.4.3",
41
- "dis-dat": "^0.1.4",
43
+ "dis-dat": "^0.1.5",
42
44
  "eslint": "^8.18.0",
43
45
  "eslint-config-prettier": "^8.5.0",
44
46
  "eslint-config-standard": "^17.0.0",
45
47
  "eslint-plugin-import": "^2.26.0",
46
48
  "eslint-plugin-node": "^11.1.0",
47
49
  "eslint-plugin-promise": "^6.0.0",
48
- "eslint-plugin-standard": "^4.1.0",
49
50
  "mocha-compat": "^3.5.5",
50
- "node-version-use": "^0.2.2",
51
+ "node-version-use": "^0.2.3",
51
52
  "prettier": "^2.7.1",
52
53
  "rollup": "^2.75.7",
53
54
  "rollup-plugin-babel": "^4.4.0",