esoui-publish 2.2.0 → 2.3.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 CHANGED
@@ -13,7 +13,7 @@ A simple node utility that will publish addons to [ESOUI](https://www.esoui.com/
13
13
 
14
14
  ## Run
15
15
  ### Command Line
16
- `esoui-publish --id=2272 --description='esoui-description.txt' --changelog='esoui-changelog.txt' --compatibility='5.2.5' --updateFile=esoui-publish-1514.zip --testDeploy=true`
16
+ `esoui-publish --id=2272 --version 1.0.0 --description='esoui-description.txt' --changelog='esoui-changelog.txt' --compatibility='5.2.5' --updatefile=esoui-publish-1514.zip --testdeploy`
17
17
 
18
18
  ### JavaScript
19
19
  ```javascript
package/dist/bin.js CHANGED
@@ -9,19 +9,16 @@ var yargs_1 = __importDefault(require("yargs"));
9
9
  var argv = yargs_1.default.options({
10
10
  token: { type: 'string', description: "Recommend setting `ESOUI_TOKEN` environment variable to avoid exposing token via logs. Otherwise this parameter is required." },
11
11
  id: { type: 'number', demandOption: true, description: "ID of the addon to update" },
12
- version: { type: 'string', description: "Version of the new version" },
12
+ publishversion: { type: 'string', demandOption: true, description: "Version of the new version" },
13
13
  description: { type: 'string', description: "Name of the file that contains the addon description. (aka what is shown on the main page of your addon)" },
14
14
  changelog: { type: 'string', description: "Name of the file that contains the changelog" },
15
15
  compatibility: { type: 'string', description: "Game version your addon supports. (i.e. `5.2.5`)" },
16
16
  updatefile: { type: 'string', description: "Name of the file that contains the zip package to upload to esoui" },
17
- testDeploy: { type: 'boolean', description: "Set to true to validate upload parameters without updating the actual add on" }
17
+ testdeploy: { type: 'boolean', description: "Set to true to validate upload parameters without updating the actual add on" }
18
18
  }).argv;
19
19
  var token = argv.token || process.env.ESOUI_TOKEN;
20
- if (!argv.version) {
21
- throw new Error('Version is required. Please provide via `--version=<version>`');
22
- }
23
20
  if (token) {
24
- index_1.EsouiPublish.publish(token, argv.id, argv.version, argv.description, argv.changelog, argv.compatibility, argv.updatefile, argv.testDeploy)
21
+ index_1.EsouiPublish.publish(token, argv.id, argv.publishversion, argv.description, argv.changelog, argv.compatibility, argv.updatefile, argv.testdeploy)
25
22
  .then(function (response) { return console.log(JSON.stringify(response, null, 2)); })
26
23
  .catch(console.error);
27
24
  }
package/dist/bin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";;;;;;AACA,iCAAuC;AAEvC,gDAA0B;AAC1B,IAAM,IAAI,GAAG,eAAK,CAAC,OAAO,CAAC;IACzB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8HAA8H,EAAE;IACtK,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,2BAA2B,EAAE;IACpF,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4BAA4B,EAAE;IACtE,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0GAA0G,EAAE;IACxJ,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8CAA8C,EAAE;IAC1F,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kDAAkD,EAAE;IAClG,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mEAAmE,EAAE;IAChH,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,8EAA8E,EAAE;CAC7H,CAAC,CAAC,IAAI,CAAC;AAER,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;AACpD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAC;IAChB,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;CAClF;AAED,IAAI,KAAK,EAAE;IACT,oB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AAI,EAAE,SAAS,EAAE,WAAW,EAAE,8EAA8E,EAAE;CAC7H,CAAC,CAAC,IAAI,CAAC;AAER,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;AAEpD,IAAI,KAAK,EAAE;IACT,oBAAY,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;SAC9I,IAAI,CAAC,UAAA,QAAQ,IAAI,OAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAA9C,CAA8C,CAAC;SAChE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;CACzB;KAAM;IACL,MAAM,IAAI,KAAK,CAAC,0GAA0G,CAAC,CAAC;CAC7H"}
package/dist/bin2.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=bin2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin2.d.ts","sourceRoot":"","sources":["../src/bin2.ts"],"names":[],"mappings":""}
package/dist/bin2.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var yargs_1 = __importDefault(require("yargs"));
8
+ var argv = yargs_1.default(process.argv.slice(2)).options({
9
+ a: { type: 'boolean', default: false },
10
+ b: { type: 'string', demandOption: true },
11
+ c: { type: 'number', alias: 'chill' },
12
+ d: { type: 'array' },
13
+ e: { type: 'count' },
14
+ f: { choices: ['1', '2', '3'] }
15
+ }).parse();
16
+ //# sourceMappingURL=bin2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin2.js","sourceRoot":"","sources":["../src/bin2.ts"],"names":[],"mappings":";;;;;;AACA,gDAA0B;AAC1B,IAAM,IAAI,GAAG,eAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAChD,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE;IACtC,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE;IACzC,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE;IACrC,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACpB,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACpB,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE;CAChC,CAAC,CAAC,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoui-publish",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist"