pake-cli 0.0.1-beta.1 → 0.0.1-beta.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.
Files changed (45) hide show
  1. package/dist/cli.js +78073 -17
  2. package/package.json +8 -2
  3. package/dist/builders/BuilderFactory.js +0 -11
  4. package/dist/builders/BuilderFactory.js.map +0 -1
  5. package/dist/builders/LinuxBuilder.js +0 -2
  6. package/dist/builders/LinuxBuilder.js.map +0 -1
  7. package/dist/builders/MacBuilder.js +0 -74
  8. package/dist/builders/MacBuilder.js.map +0 -1
  9. package/dist/builders/WinBulider.js +0 -2
  10. package/dist/builders/WinBulider.js.map +0 -1
  11. package/dist/builders/base.js +0 -2
  12. package/dist/builders/base.js.map +0 -1
  13. package/dist/builders/common.js +0 -38
  14. package/dist/builders/common.js.map +0 -1
  15. package/dist/cli.js.map +0 -1
  16. package/dist/defaults.js +0 -10
  17. package/dist/defaults.js.map +0 -1
  18. package/dist/helpers/dir.js +0 -9
  19. package/dist/helpers/dir.js.map +0 -1
  20. package/dist/helpers/path.js +0 -2
  21. package/dist/helpers/path.js.map +0 -1
  22. package/dist/helpers/prepareCheck.js +0 -53
  23. package/dist/helpers/prepareCheck.js.map +0 -1
  24. package/dist/helpers/rust.js +0 -31
  25. package/dist/helpers/rust.js.map +0 -1
  26. package/dist/helpers/tauriConfig.js +0 -8
  27. package/dist/helpers/tauriConfig.js.map +0 -1
  28. package/dist/options/icon.js +0 -111
  29. package/dist/options/icon.js.map +0 -1
  30. package/dist/options/index.js +0 -27
  31. package/dist/options/index.js.map +0 -1
  32. package/dist/options/title.js +0 -25
  33. package/dist/options/title.js.map +0 -1
  34. package/dist/pake.js +0 -43
  35. package/dist/pake.js.map +0 -1
  36. package/dist/types.js +0 -2
  37. package/dist/types.js.map +0 -1
  38. package/dist/utils/platform.js +0 -4
  39. package/dist/utils/platform.js.map +0 -1
  40. package/dist/utils/shell.js +0 -14
  41. package/dist/utils/shell.js.map +0 -1
  42. package/dist/utils/url.js +0 -20
  43. package/dist/utils/url.js.map +0 -1
  44. package/dist/utils/validate.js +0 -18
  45. package/dist/utils/validate.js.map +0 -1
package/dist/utils/url.js DELETED
@@ -1,20 +0,0 @@
1
- import url from 'url';
2
- import isurl from 'is-url';
3
- function appendProtocol(inputUrl) {
4
- const parsed = url.parse(inputUrl);
5
- if (!parsed.protocol) {
6
- const urlWithProtocol = `https://${inputUrl}`;
7
- return urlWithProtocol;
8
- }
9
- return inputUrl;
10
- }
11
- export function normalizeUrl(urlToNormalize) {
12
- const urlWithProtocol = appendProtocol(urlToNormalize);
13
- if (isurl(urlWithProtocol)) {
14
- return urlWithProtocol;
15
- }
16
- else {
17
- throw new Error(`Your url "${urlWithProtocol}" is invalid`);
18
- }
19
- }
20
- //# sourceMappingURL=url.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url.js","sourceRoot":"","sources":["../../bin/utils/url.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,MAAM,QAAQ,CAAC;AAE3B,SAAS,cAAc,CAAC,QAAgB;IACtC,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACnC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpB,MAAM,eAAe,GAAG,WAAW,QAAQ,EAAE,CAAC;QAC9C,OAAO,eAAe,CAAC;KACxB;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,cAAsB;IACjD,MAAM,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;IAEvD,IAAI,KAAK,CAAC,eAAe,CAAC,EAAE;QAC1B,OAAO,eAAe,CAAC;KACxB;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,aAAa,eAAe,cAAc,CAAC,CAAC;KAC7D;AACH,CAAC"}
@@ -1,18 +0,0 @@
1
- import * as Commander from 'commander';
2
- import { normalizeUrl } from './url.js';
3
- export function validateNumberInput(value) {
4
- const parsedValue = Number(value);
5
- if (isNaN(parsedValue)) {
6
- throw new Commander.InvalidArgumentError('Not a number.');
7
- }
8
- return parsedValue;
9
- }
10
- export function validateUrlInput(url) {
11
- try {
12
- return normalizeUrl(url);
13
- }
14
- catch (error) {
15
- throw new Commander.InvalidArgumentError(error.message);
16
- }
17
- }
18
- //# sourceMappingURL=validate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate.js","sourceRoot":"","sources":["../../bin/utils/validate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAClC,IAAI,KAAK,CAAC,WAAW,CAAC,EAAE;QACtB,MAAM,IAAI,SAAS,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC;KAC3D;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAW;IAC1C,IAAI;QACF,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;KAC1B;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,IAAI,SAAS,CAAC,oBAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;KACzD;AACH,CAAC"}