ssh-config 5.0.4 → 5.1.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/Readme.md +24 -0
- package/dist/glob.d.ts +2 -2
- package/dist/glob.js +2 -2
- package/dist/ssh-config.d.ts +97 -5
- package/dist/ssh-config.js +55 -28
- package/dist/ssh-config.js.map +1 -1
- package/lib/glob.d.ts +9 -0
- package/lib/glob.js +38 -0
- package/lib/glob.js.map +1 -0
- package/lib/ssh-config.d.ts +199 -0
- package/lib/ssh-config.js +602 -0
- package/lib/ssh-config.js.map +1 -0
- package/package.json +17 -11
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -23
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,42 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ssh-config",
|
|
3
3
|
"description": "SSH config parser and stringifier",
|
|
4
|
-
"version": "5.0
|
|
4
|
+
"version": "5.1.0",
|
|
5
5
|
"author": "Chen Yangjian (https://www.cyj.me)",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git@github.com:cyjake/ssh-config.git"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"dist/**"
|
|
11
|
+
"dist/**",
|
|
12
|
+
"lib/**"
|
|
12
13
|
],
|
|
13
14
|
"devDependencies": {
|
|
14
15
|
"@types/mocha": "^9.1.0",
|
|
15
16
|
"@types/node": "^17.0.45",
|
|
16
|
-
"@types/sinon": "^
|
|
17
|
+
"@types/sinon": "^21.0.0",
|
|
17
18
|
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
|
18
19
|
"@typescript-eslint/parser": "^5.48.0",
|
|
19
20
|
"eslint": "^8.31.0",
|
|
20
21
|
"heredoc": "^1.3.1",
|
|
21
|
-
"mocha": "^
|
|
22
|
+
"mocha": "^11.7.5",
|
|
22
23
|
"nyc": "^15.1.0",
|
|
23
|
-
"sinon": "^
|
|
24
|
+
"sinon": "^21.0.0",
|
|
24
25
|
"ts-node": "^10.9.2",
|
|
25
26
|
"typescript": "^5.4.4"
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
29
|
"lint": "eslint --ext ts .",
|
|
29
30
|
"lint:fix": "eslint --ext ts --fix .",
|
|
30
|
-
"build": "tsc",
|
|
31
|
+
"build": "tsc && tsc -p tsconfig.cjs.json",
|
|
31
32
|
"prepack": "npm run build",
|
|
32
33
|
"pretest": "npm run build",
|
|
33
|
-
"test": "mocha",
|
|
34
|
-
"test:coverage": "nyc mocha && nyc report --reporter=lcov"
|
|
34
|
+
"test": "mocha --spec test/unit/**/*.test.ts --node-option=experimental-transform-types",
|
|
35
|
+
"test:coverage": "nyc mocha --spec test/unit/**/*.test.ts --node-option=experimental-transform-types && nyc report --reporter=lcov",
|
|
36
|
+
"test:legacy": "TS_NODE_PROJECT=./tsconfig.cjs.json mocha --spec test/legacy/**/*.test.ts",
|
|
37
|
+
"test:legacy:coverage": "TS_NODE_PROJECT=./tsconfig.cjs.json nyc mocha --spec test/legacy/**/*.test.ts && nyc report --reporter=lcov"
|
|
38
|
+
},
|
|
39
|
+
"main": "dist/ssh-config.js",
|
|
40
|
+
"exports": {
|
|
41
|
+
"import": "./lib/ssh-config.js",
|
|
42
|
+
"require": "./dist/ssh-config.js"
|
|
35
43
|
},
|
|
36
|
-
"main": "dist/index.js",
|
|
37
|
-
"types": "dist/index.d.ts",
|
|
38
44
|
"engine": {
|
|
39
|
-
"node": ">= 14.
|
|
45
|
+
"node": ">= 14.13.1"
|
|
40
46
|
},
|
|
41
47
|
"license": "MIT"
|
|
42
48
|
}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
const ssh_config_1 = __importDefault(require("./ssh-config"));
|
|
21
|
-
__exportStar(require("./ssh-config"), exports);
|
|
22
|
-
exports.default = ssh_config_1.default;
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,8DAAoC;AACpC,+CAA4B;AAC5B,kBAAe,oBAAS,CAAA"}
|