endpoints-sdk-cli 2.3.0 → 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 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.0 darwin-arm64 node-v18.3.0
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.0/src/commands/add.ts)_
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.0/src/commands/install.ts)_
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.0/src/commands/update.ts)_
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
 
@@ -25,7 +25,7 @@ class Update extends command_1.Command {
25
25
  config.push({
26
26
  name: repository.name,
27
27
  path: repository.path,
28
- version: version || repository.hash,
28
+ version: repository.hash,
29
29
  workspace,
30
30
  });
31
31
  repositories.push(repository);
@@ -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 +1 @@
1
- {"version":"2.3.0","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"}]}}}
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"}]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "endpoints-sdk-cli",
3
3
  "description": "endpoints sdk cli",
4
- "version": "2.3.0",
4
+ "version": "2.3.3",
5
5
  "author": "hrdtbs",
6
6
  "bin": {
7
7
  "mes": "./bin/run"