@jr2804/livesync-cli 1.0.0-cli → 1.0.16-cli.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.
Files changed (33) hide show
  1. package/README.md +44 -3
  2. package/dist/AwsRestJsonProtocol-BPmCQzXa.cjs +391 -0
  3. package/dist/CredentialsProviderError-DQ_v7TCm.cjs +45 -0
  4. package/dist/XmlShapeDeserializer-B1_gcW92.cjs +2097 -0
  5. package/dist/chain-D9g13I5f.cjs +21 -0
  6. package/dist/common-B3KclSP_.cjs +375 -0
  7. package/dist/configLoader-Cur07c2S.cjs +149 -0
  8. package/dist/date-utils-Dr5LXq4_.cjs +338 -0
  9. package/dist/dist-es-BU2b9jKG.cjs +274 -0
  10. package/dist/dist-es-CaaxKLO9.cjs +52 -0
  11. package/dist/dist-es-D7nIauPC.cjs +60 -0
  12. package/dist/dist-es-DhxfSNMj.cjs +128 -0
  13. package/dist/dist-es-FcX9AtZC.cjs +433 -0
  14. package/dist/dist-es-vq3O1QUl.cjs +331 -0
  15. package/dist/{index.browser-DZqJcWQp.cjs → event-streams-DmrxQXpO.cjs} +3 -3
  16. package/dist/extensions-DkDzTVCO.cjs +4823 -0
  17. package/dist/externalDataInterceptor-D7DaIG7M.cjs +24 -0
  18. package/dist/getSSOTokenFromFile-D0KPH2qZ.cjs +36 -0
  19. package/dist/httpRequest-C7Ex2WeE.cjs +59 -0
  20. package/dist/index.cjs +5949 -1556
  21. package/dist/loadSharedConfigFiles-CqEQHuLW.cjs +117 -0
  22. package/dist/loadSso-Dn78jIWR.cjs +639 -0
  23. package/dist/package-BC7A0_n0.cjs +158 -0
  24. package/dist/parseKnownFiles-DLeTaAhg.cjs +21 -0
  25. package/dist/readFile-B3ey_wDD.cjs +46 -0
  26. package/dist/sdk-stream-mixin-YBLWtp6l.cjs +146 -0
  27. package/dist/{index.browser-DbH0tIYi.cjs → serde-DtADB-gG.cjs} +178 -310
  28. package/dist/setCredentialFeature-qcUbSyqa.cjs +13 -0
  29. package/dist/signin-DHnd2WFx.cjs +715 -0
  30. package/dist/sso-oidc-B4fkm2gn.cjs +901 -0
  31. package/dist/stream-collector-jwXXBEUn.cjs +584 -0
  32. package/dist/sts-C9aqjeec.cjs +1531 -0
  33. package/package.json +8 -5
@@ -0,0 +1,24 @@
1
+ const require_readFile = require("./readFile-B3ey_wDD.cjs");
2
+ const require_getSSOTokenFromFile = require("./getSSOTokenFromFile-D0KPH2qZ.cjs");
3
+ //#region ../../../node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js
4
+ var externalDataInterceptor = {
5
+ getFileRecord() {
6
+ return require_readFile.fileIntercept;
7
+ },
8
+ interceptFile(path, contents) {
9
+ require_readFile.fileIntercept[path] = Promise.resolve(contents);
10
+ },
11
+ getTokenRecord() {
12
+ return require_getSSOTokenFromFile.tokenIntercept;
13
+ },
14
+ interceptToken(id, contents) {
15
+ require_getSSOTokenFromFile.tokenIntercept[id] = contents;
16
+ }
17
+ };
18
+ //#endregion
19
+ Object.defineProperty(exports, "externalDataInterceptor", {
20
+ enumerable: true,
21
+ get: function() {
22
+ return externalDataInterceptor;
23
+ }
24
+ });
@@ -0,0 +1,36 @@
1
+ const require_readFile = require("./readFile-B3ey_wDD.cjs");
2
+ let path = require("path");
3
+ let crypto = require("crypto");
4
+ let fs_promises = require("fs/promises");
5
+ //#region ../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
6
+ var getSSOTokenFilepath = (id) => {
7
+ const cacheName = (0, crypto.createHash)("sha1").update(id).digest("hex");
8
+ return (0, path.join)(require_readFile.getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
9
+ };
10
+ //#endregion
11
+ //#region ../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
12
+ var tokenIntercept = {};
13
+ var getSSOTokenFromFile = async (id) => {
14
+ if (tokenIntercept[id]) return tokenIntercept[id];
15
+ const ssoTokenText = await (0, fs_promises.readFile)(getSSOTokenFilepath(id), "utf8");
16
+ return JSON.parse(ssoTokenText);
17
+ };
18
+ //#endregion
19
+ Object.defineProperty(exports, "getSSOTokenFilepath", {
20
+ enumerable: true,
21
+ get: function() {
22
+ return getSSOTokenFilepath;
23
+ }
24
+ });
25
+ Object.defineProperty(exports, "getSSOTokenFromFile", {
26
+ enumerable: true,
27
+ get: function() {
28
+ return getSSOTokenFromFile;
29
+ }
30
+ });
31
+ Object.defineProperty(exports, "tokenIntercept", {
32
+ enumerable: true,
33
+ get: function() {
34
+ return tokenIntercept;
35
+ }
36
+ });
@@ -0,0 +1,59 @@
1
+ //#region ../../../node_modules/@smithy/protocol-http/dist-es/httpRequest.js
2
+ var HttpRequest = class HttpRequest {
3
+ method;
4
+ protocol;
5
+ hostname;
6
+ port;
7
+ path;
8
+ query;
9
+ headers;
10
+ username;
11
+ password;
12
+ fragment;
13
+ body;
14
+ constructor(options) {
15
+ this.method = options.method || "GET";
16
+ this.hostname = options.hostname || "localhost";
17
+ this.port = options.port;
18
+ this.query = options.query || {};
19
+ this.headers = options.headers || {};
20
+ this.body = options.body;
21
+ this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
22
+ this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
23
+ this.username = options.username;
24
+ this.password = options.password;
25
+ this.fragment = options.fragment;
26
+ }
27
+ static clone(request) {
28
+ const cloned = new HttpRequest({
29
+ ...request,
30
+ headers: { ...request.headers }
31
+ });
32
+ if (cloned.query) cloned.query = cloneQuery(cloned.query);
33
+ return cloned;
34
+ }
35
+ static isInstance(request) {
36
+ if (!request) return false;
37
+ const req = request;
38
+ return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
39
+ }
40
+ clone() {
41
+ return HttpRequest.clone(this);
42
+ }
43
+ };
44
+ function cloneQuery(query) {
45
+ return Object.keys(query).reduce((carry, paramName) => {
46
+ const param = query[paramName];
47
+ return {
48
+ ...carry,
49
+ [paramName]: Array.isArray(param) ? [...param] : param
50
+ };
51
+ }, {});
52
+ }
53
+ //#endregion
54
+ Object.defineProperty(exports, "HttpRequest", {
55
+ enumerable: true,
56
+ get: function() {
57
+ return HttpRequest;
58
+ }
59
+ });