endpoints-sdk-cli 2.3.2 → 2.3.3
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 +4 -4
- package/lib/classes/Config.js +3 -3
- package/lib/classes/Repository.js +3 -3
- package/lib/makeFiles.js +3 -3
- package/lib/templates/files/endpoints.js +1 -1
- package/lib/templates/files/index.js +1 -1
- package/lib/templates/functions/endpoint.js +1 -1
- package/lib/templates/functions/index.js +2 -2
- package/lib/templates/index.js +2 -2
- package/lib/utils/format.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install -g endpoints-sdk-cli
|
|
|
17
17
|
$ mes COMMAND
|
|
18
18
|
running command...
|
|
19
19
|
$ mes (-v|--version|version)
|
|
20
|
-
endpoints-sdk-cli/2.3.
|
|
20
|
+
endpoints-sdk-cli/2.3.3 darwin-x64 node-v16.16.0
|
|
21
21
|
$ mes --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ mes COMMAND
|
|
@@ -74,7 +74,7 @@ EXAMPLES
|
|
|
74
74
|
$ mes add https://github.com/[username/repository].git
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
_See code: [src/commands/add.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.
|
|
77
|
+
_See code: [src/commands/add.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.3/src/commands/add.ts)_
|
|
78
78
|
|
|
79
79
|
## `mes help [COMMAND]`
|
|
80
80
|
|
|
@@ -102,7 +102,7 @@ USAGE
|
|
|
102
102
|
$ mes install
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
_See code: [src/commands/install.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.
|
|
105
|
+
_See code: [src/commands/install.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.3/src/commands/install.ts)_
|
|
106
106
|
|
|
107
107
|
## `mes update [SERVICE]`
|
|
108
108
|
|
|
@@ -113,7 +113,7 @@ USAGE
|
|
|
113
113
|
$ mes update [SERVICE]
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
_See code: [src/commands/update.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.
|
|
116
|
+
_See code: [src/commands/update.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.3/src/commands/update.ts)_
|
|
117
117
|
<!-- commandsstop -->
|
|
118
118
|
|
|
119
119
|
|
package/lib/classes/Config.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Config = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const fs =
|
|
6
|
-
const path =
|
|
7
|
-
const prettier =
|
|
5
|
+
const fs = tslib_1.__importStar(require("node:fs"));
|
|
6
|
+
const path = tslib_1.__importStar(require("node:path"));
|
|
7
|
+
const prettier = tslib_1.__importStar(require("prettier"));
|
|
8
8
|
const unique_1 = require("../utils/unique");
|
|
9
9
|
class Config {
|
|
10
10
|
constructor() {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Repository = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const path =
|
|
5
|
+
const path = tslib_1.__importStar(require("node:path"));
|
|
6
6
|
const node_child_process_1 = require("node:child_process");
|
|
7
|
-
const fs =
|
|
8
|
-
const rimraf_1 =
|
|
7
|
+
const fs = tslib_1.__importStar(require("node:fs"));
|
|
8
|
+
const rimraf_1 = tslib_1.__importDefault(require("rimraf"));
|
|
9
9
|
class Repository {
|
|
10
10
|
constructor(str) {
|
|
11
11
|
this.hash = 'latest';
|
package/lib/makeFiles.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeFiles = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const path =
|
|
6
|
-
const templates =
|
|
7
|
-
const fs =
|
|
5
|
+
const path = tslib_1.__importStar(require("node:path"));
|
|
6
|
+
const templates = tslib_1.__importStar(require("./templates"));
|
|
7
|
+
const fs = tslib_1.__importStar(require("node:fs"));
|
|
8
8
|
const format_1 = require("./utils/format");
|
|
9
9
|
const makeName = (...args) => {
|
|
10
10
|
return args.filter(e => Boolean(e)).join('.');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.endpoints = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const templates =
|
|
5
|
+
const templates = tslib_1.__importStar(require("../functions"));
|
|
6
6
|
const camelCase_1 = require("../../utils/camelCase");
|
|
7
7
|
const endpoints = ({ repository, version, period, config, }) => {
|
|
8
8
|
const names = [];
|
|
@@ -4,4 +4,4 @@ exports.index = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var indexFile_1 = require("./indexFile");
|
|
6
6
|
Object.defineProperty(exports, "index", { enumerable: true, get: function () { return indexFile_1.indexFile; } });
|
|
7
|
-
|
|
7
|
+
tslib_1.__exportStar(require("./endpoints"), exports);
|
|
@@ -86,6 +86,6 @@ const endpoint = (name, e) => {
|
|
|
86
86
|
return __queries ? \`\${__path}?\${__queries}\` : __path;
|
|
87
87
|
};
|
|
88
88
|
`,
|
|
89
|
-
e.method ? `${name}.method='${e.method}';` : null].filter(Boolean).join('\n');
|
|
89
|
+
e.method ? `${name}.method='${e.method}' as const;` : null].filter(Boolean).join('\n');
|
|
90
90
|
};
|
|
91
91
|
exports.endpoint = endpoint;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./root"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./endpoint"), exports);
|
package/lib/templates/index.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.functions = exports.files = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
exports.files =
|
|
6
|
-
exports.functions =
|
|
5
|
+
exports.files = tslib_1.__importStar(require("./files"));
|
|
6
|
+
exports.functions = tslib_1.__importStar(require("./functions"));
|
package/lib/utils/format.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.format = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const prettier =
|
|
5
|
+
const prettier = tslib_1.__importStar(require("prettier"));
|
|
6
6
|
const format = (content) => {
|
|
7
7
|
return prettier.format(content, { parser: 'typescript' });
|
|
8
8
|
};
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.3.
|
|
1
|
+
{"version":"2.3.3","commands":{"add":{"id":"add","description":"\nadd service to dependencies & make endpoints files.\n\n1. make endpoints.config.json for version control.\n\n{\n \"dependencies\": {\n \"service-name\": {\n \"version\": \"26177ed7e673daf0cc5a69e9793dd863424d272f\",\n \"repository\": \"git@github.com:[username/repository].git\"\n }\n }\n}\n\n> service name is inferred from Repository name.\n\n2. make src/endpoints/[service-name].ts\n","pluginName":"endpoints-sdk-cli","pluginType":"core","aliases":[],"examples":["$ mes add [username/repository]","$ mes add [username/repository] --version [commmit hash]","$ mes add [username/repository] -v [commmit hash]","$ mes add [username/repository] -v latest","$ mes add [username/repository] --workspace [workspace directory]","$ mes add [username/repository] -w [workspace directory]","$ mes add /Users/.../local-repository/","$ mes add ./local-repository","$ mes add git@github.com:[username/repository].git","$ mes add https://github.com/[username/repository].git"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"latest or commit hash"},"workspace":{"name":"workspace","type":"option","char":"w","description":"a path to workspace containing .endpoints.json"}},"args":[{"name":"repository"}]},"install":{"id":"install","description":"generate endpoints files based on endpoints.config.json","pluginName":"endpoints-sdk-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"update":{"id":"update","description":"update service version & regenerate endpoints files","pluginName":"endpoints-sdk-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"service"}]}}}
|