endpoints-sdk-cli 2.3.0 → 2.3.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/README.md +4 -4
- package/lib/endpoints/lab.hoge.d.ts +4 -0
- package/lib/endpoints/lab.hoge.js +7 -0
- package/lib/endpoints/lab.hoge.v1.d.ts +123 -0
- package/lib/endpoints/lab.hoge.v1.js +219 -0
- package/lib/endpoints/lab.poyo.d.ts +4 -0
- package/lib/endpoints/lab.poyo.js +7 -0
- package/lib/endpoints/lab.poyo.v1.d.ts +123 -0
- package/lib/endpoints/lab.poyo.v1.js +219 -0
- package/lib/endpoints/m2m-core.d.ts +4 -0
- package/lib/endpoints/m2m-core.js +7 -0
- package/lib/endpoints/m2m-core.v1.d.ts +646 -0
- package/lib/endpoints/m2m-core.v1.js +920 -0
- package/lib/templates/functions/endpoint.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -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}'
|
|
89
|
+
e.method ? `${name}.method='${e.method}';` : null].filter(Boolean).join('\n');
|
|
90
90
|
};
|
|
91
91
|
exports.endpoint = endpoint;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.3.
|
|
1
|
+
{"version":"2.3.1","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"}]}}}
|