@looker/sdk-codegen-utils 21.0.19 → 21.0.21
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/CHANGELOG.md +23 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/mocks.js +9 -0
- package/lib/esm/mocks.js.map +1 -0
- package/lib/esm/utils.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -1
- package/lib/mocks.d.ts +5 -0
- package/lib/mocks.js +16 -0
- package/lib/mocks.js.map +1 -0
- package/lib/utils.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -42,6 +42,29 @@
|
|
|
42
42
|
* @looker/sdk bumped from 25.0.0 to 25.0.1
|
|
43
43
|
* @looker/sdk-node bumped from 25.0.0 to 25.0.1
|
|
44
44
|
|
|
45
|
+
### Dependencies
|
|
46
|
+
|
|
47
|
+
* The following workspace dependencies were updated
|
|
48
|
+
* devDependencies
|
|
49
|
+
* @looker/sdk bumped from 25.0.1 to 25.2.0
|
|
50
|
+
* @looker/sdk-node bumped from 25.0.1 to 25.2.0
|
|
51
|
+
|
|
52
|
+
## [21.0.21](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-utils-v21.0.20...sdk-codegen-utils-v21.0.21) (2025-03-11)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* add new generators for the TypeScript SDK ([#1563](https://github.com/looker-open-source/sdk-codegen/issues/1563)) ([86ab782](https://github.com/looker-open-source/sdk-codegen/commit/86ab7820c4ca095be20e219c5bd19ef3bfc3f030))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Dependencies
|
|
61
|
+
|
|
62
|
+
* The following workspace dependencies were updated
|
|
63
|
+
* devDependencies
|
|
64
|
+
* @looker/sdk-rtl bumped from 21.6.3 to 21.6.4
|
|
65
|
+
* @looker/sdk bumped from 25.2.0 to 25.4.0
|
|
66
|
+
* @looker/sdk-node bumped from 25.2.0 to 25.4.0
|
|
67
|
+
|
|
45
68
|
## [21.0.13](https://github.com/looker-open-source/sdk-codegen/compare/sdk-codegen-utils-v21.0.12...sdk-codegen-utils-v21.0.13) (2024-09-14)
|
|
46
69
|
|
|
47
70
|
|
package/lib/esm/index.js
CHANGED
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './utils';\nexport * from './testUtils';\n"],"mappings":"AA0BA,cAAc,SAAS;AACvB,cAAc,aAAa"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './utils';\nexport * from './mocks';\nexport * from './testUtils';\n"],"mappings":"AA0BA,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,aAAa"}
|
package/lib/esm/mocks.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocks.js","names":["MockCrypto","secureRandom","_byteCount","sha256Hash","_message","Promise","resolve"],"sources":["../../src/mocks.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { ICryptoHash } from '@looker/sdk-rtl';\n\nexport class MockCrypto implements ICryptoHash {\n secureRandom(_byteCount: number): string {\n return 'feedface';\n }\n\n sha256Hash(_message: string): Promise<string> {\n return Promise.resolve('baadf00d');\n }\n}\n"],"mappings":"AA4BA,OAAO,MAAMA,UAAU,CAAwB;EAC7CC,YAAYA,CAACC,UAAkB,EAAU;IACvC,OAAO,UAAU;EACnB;EAEAC,UAAUA,CAACC,QAAgB,EAAmB;IAC5C,OAAOC,OAAO,CAACC,OAAO,CAAC,UAAU,CAAC;EACpC;AACF"}
|
package/lib/esm/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["Reset","FgRed","FgGreen","FgYellow","FgCyan","log","message","console","reset","concat","info","warn","danger","success","debug","value","undefined","JSON","stringify","dump"],"sources":["../../src/utils.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nconst Reset = '\\x1b[0m';\n// const Bright = \"\\x1b[1m\"\n// const Dim = \"\\x1b[2m\"\n// const Underscore = \"\\x1b[4m\"\n// const Blink = \"\\x1b[5m\"\n// const Reverse = \"\\x1b[7m\"\n// const Hidden = \"\\x1b[8m\"\n//\n// const FgBlack = \"\\x1b[30m\"\nconst FgRed = '\\x1b[31m';\nconst FgGreen = '\\x1b[32m';\nconst FgYellow = '\\x1b[33m';\n// const FgBlue = \"\\x1b[34m\"\n// const FgMagenta = \"\\x1b[35m\"\nconst FgCyan = '\\x1b[36m';\n// const FgWhite = \"\\x1b[37m\"\n//\n// const BgBlack = \"\\x1b[40m\"\n// const BgRed = \"\\x1b[41m\"\n// const BgGreen = \"\\x1b[42m\"\n// const BgYellow = \"\\x1b[43m\"\n// const BgBlue = \"\\x1b[44m\"\n// const BgMagenta = \"\\x1b[45m\"\n// const BgCyan = \"\\x1b[46m\"\n// const BgWhite = \"\\x1b[47m\"\n\n// Abstraction of log so it can be skipped when quiet mode is enabled\nexport const log = (message?: any) => {\n console.log(message);\n return message;\n};\n\nconst reset = (message: any) => `${message}${Reset}`;\n\nexport const info = (message: any) => log(reset(`${FgCyan}${message}`));\n\nexport const warn = (message: any) => log(reset(`${FgYellow}${message}`));\n\nexport const danger = (message: any) => {\n return log(reset(`${FgRed}${message}`));\n};\n\nexport const success = (message: any) => {\n return log(reset(`${FgGreen}${message}`));\n};\n\nexport const debug = (message: any, value?: any) => {\n if (value !== undefined)\n console.log(message, '=>', JSON.stringify(value, null, 2));\n else return log(message);\n};\n\nexport const dump = (value: any) => log(JSON.stringify(value, null, 2));\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","names":["Reset","FgRed","FgGreen","FgYellow","FgCyan","log","message","console","reset","concat","info","warn","danger","success","debug","value","undefined","JSON","stringify","dump"],"sources":["../../src/utils.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\n/* eslint no-console: 0 */\nconst Reset = '\\x1b[0m';\n// const Bright = \"\\x1b[1m\"\n// const Dim = \"\\x1b[2m\"\n// const Underscore = \"\\x1b[4m\"\n// const Blink = \"\\x1b[5m\"\n// const Reverse = \"\\x1b[7m\"\n// const Hidden = \"\\x1b[8m\"\n//\n// const FgBlack = \"\\x1b[30m\"\nconst FgRed = '\\x1b[31m';\nconst FgGreen = '\\x1b[32m';\nconst FgYellow = '\\x1b[33m';\n// const FgBlue = \"\\x1b[34m\"\n// const FgMagenta = \"\\x1b[35m\"\nconst FgCyan = '\\x1b[36m';\n// const FgWhite = \"\\x1b[37m\"\n//\n// const BgBlack = \"\\x1b[40m\"\n// const BgRed = \"\\x1b[41m\"\n// const BgGreen = \"\\x1b[42m\"\n// const BgYellow = \"\\x1b[43m\"\n// const BgBlue = \"\\x1b[44m\"\n// const BgMagenta = \"\\x1b[45m\"\n// const BgCyan = \"\\x1b[46m\"\n// const BgWhite = \"\\x1b[47m\"\n\n// Abstraction of log so it can be skipped when quiet mode is enabled\nexport const log = (message?: any) => {\n console.log(message);\n return message;\n};\n\nconst reset = (message: any) => `${message}${Reset}`;\n\nexport const info = (message: any) => log(reset(`${FgCyan}${message}`));\n\nexport const warn = (message: any) => log(reset(`${FgYellow}${message}`));\n\nexport const danger = (message: any) => {\n return log(reset(`${FgRed}${message}`));\n};\n\nexport const success = (message: any) => {\n return log(reset(`${FgGreen}${message}`));\n};\n\nexport const debug = (message: any, value?: any) => {\n if (value !== undefined)\n console.log(message, '=>', JSON.stringify(value, null, 2));\n else return log(message);\n};\n\nexport const dump = (value: any) => log(JSON.stringify(value, null, 2));\n"],"mappings":"AA2BA,IAAMA,KAAK,GAAG,SAAS;AASvB,IAAMC,KAAK,GAAG,UAAU;AACxB,IAAMC,OAAO,GAAG,UAAU;AAC1B,IAAMC,QAAQ,GAAG,UAAU;AAG3B,IAAMC,MAAM,GAAG,UAAU;AAazB,OAAO,IAAMC,GAAG,GAAIC,OAAa,IAAK;EACpCC,OAAO,CAACF,GAAG,CAACC,OAAO,CAAC;EACpB,OAAOA,OAAO;AAChB,CAAC;AAED,IAAME,KAAK,GAAIF,OAAY,OAAAG,MAAA,CAAQH,OAAO,EAAAG,MAAA,CAAGT,KAAK,CAAE;AAEpD,OAAO,IAAMU,IAAI,GAAIJ,OAAY,IAAKD,GAAG,CAACG,KAAK,IAAAC,MAAA,CAAIL,MAAM,EAAAK,MAAA,CAAGH,OAAO,CAAE,CAAC,CAAC;AAEvE,OAAO,IAAMK,IAAI,GAAIL,OAAY,IAAKD,GAAG,CAACG,KAAK,IAAAC,MAAA,CAAIN,QAAQ,EAAAM,MAAA,CAAGH,OAAO,CAAE,CAAC,CAAC;AAEzE,OAAO,IAAMM,MAAM,GAAIN,OAAY,IAAK;EACtC,OAAOD,GAAG,CAACG,KAAK,IAAAC,MAAA,CAAIR,KAAK,EAAAQ,MAAA,CAAGH,OAAO,CAAE,CAAC,CAAC;AACzC,CAAC;AAED,OAAO,IAAMO,OAAO,GAAIP,OAAY,IAAK;EACvC,OAAOD,GAAG,CAACG,KAAK,IAAAC,MAAA,CAAIP,OAAO,EAAAO,MAAA,CAAGH,OAAO,CAAE,CAAC,CAAC;AAC3C,CAAC;AAED,OAAO,IAAMQ,KAAK,GAAGA,CAACR,OAAY,EAAES,KAAW,KAAK;EAClD,IAAIA,KAAK,KAAKC,SAAS,EACrBT,OAAO,CAACF,GAAG,CAACC,OAAO,EAAE,IAAI,EAAEW,IAAI,CAACC,SAAS,CAACH,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,KACxD,OAAOV,GAAG,CAACC,OAAO,CAAC;AAC1B,CAAC;AAED,OAAO,IAAMa,IAAI,GAAIJ,KAAU,IAAKV,GAAG,CAACY,IAAI,CAACC,SAAS,CAACH,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -14,6 +14,17 @@ Object.keys(_utils).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
+
var _mocks = require("./mocks");
|
|
18
|
+
Object.keys(_mocks).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _mocks[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _mocks[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
17
28
|
var _testUtils = require("./testUtils");
|
|
18
29
|
Object.keys(_testUtils).forEach(function (key) {
|
|
19
30
|
if (key === "default" || key === "__esModule") return;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_utils","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_testUtils"],"sources":["../src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './utils';\nexport * from './testUtils';\n"],"mappings":";;;;;AA0BA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_utils","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_mocks","_testUtils"],"sources":["../src/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nexport * from './utils';\nexport * from './mocks';\nexport * from './testUtils';\n"],"mappings":";;;;;AA0BA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,MAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,MAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,UAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,UAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,UAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,UAAA,CAAAN,GAAA;IAAA;EAAA;AAAA"}
|
package/lib/mocks.d.ts
ADDED
package/lib/mocks.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MockCrypto = void 0;
|
|
7
|
+
class MockCrypto {
|
|
8
|
+
secureRandom(_byteCount) {
|
|
9
|
+
return 'feedface';
|
|
10
|
+
}
|
|
11
|
+
sha256Hash(_message) {
|
|
12
|
+
return Promise.resolve('baadf00d');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.MockCrypto = MockCrypto;
|
|
16
|
+
//# sourceMappingURL=mocks.js.map
|
package/lib/mocks.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocks.js","names":["MockCrypto","secureRandom","_byteCount","sha256Hash","_message","Promise","resolve","exports"],"sources":["../src/mocks.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { ICryptoHash } from '@looker/sdk-rtl';\n\nexport class MockCrypto implements ICryptoHash {\n secureRandom(_byteCount: number): string {\n return 'feedface';\n }\n\n sha256Hash(_message: string): Promise<string> {\n return Promise.resolve('baadf00d');\n }\n}\n"],"mappings":";;;;;;AA4BO,MAAMA,UAAU,CAAwB;EAC7CC,YAAYA,CAACC,UAAkB,EAAU;IACvC,OAAO,UAAU;EACnB;EAEAC,UAAUA,CAACC,QAAgB,EAAmB;IAC5C,OAAOC,OAAO,CAACC,OAAO,CAAC,UAAU,CAAC;EACpC;AACF;AAACC,OAAA,CAAAP,UAAA,GAAAA,UAAA"}
|
package/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["Reset","FgRed","FgGreen","FgYellow","FgCyan","log","message","console","exports","reset","concat","info","warn","danger","success","debug","value","undefined","JSON","stringify","dump"],"sources":["../src/utils.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nconst Reset = '\\x1b[0m';\n// const Bright = \"\\x1b[1m\"\n// const Dim = \"\\x1b[2m\"\n// const Underscore = \"\\x1b[4m\"\n// const Blink = \"\\x1b[5m\"\n// const Reverse = \"\\x1b[7m\"\n// const Hidden = \"\\x1b[8m\"\n//\n// const FgBlack = \"\\x1b[30m\"\nconst FgRed = '\\x1b[31m';\nconst FgGreen = '\\x1b[32m';\nconst FgYellow = '\\x1b[33m';\n// const FgBlue = \"\\x1b[34m\"\n// const FgMagenta = \"\\x1b[35m\"\nconst FgCyan = '\\x1b[36m';\n// const FgWhite = \"\\x1b[37m\"\n//\n// const BgBlack = \"\\x1b[40m\"\n// const BgRed = \"\\x1b[41m\"\n// const BgGreen = \"\\x1b[42m\"\n// const BgYellow = \"\\x1b[43m\"\n// const BgBlue = \"\\x1b[44m\"\n// const BgMagenta = \"\\x1b[45m\"\n// const BgCyan = \"\\x1b[46m\"\n// const BgWhite = \"\\x1b[47m\"\n\n// Abstraction of log so it can be skipped when quiet mode is enabled\nexport const log = (message?: any) => {\n console.log(message);\n return message;\n};\n\nconst reset = (message: any) => `${message}${Reset}`;\n\nexport const info = (message: any) => log(reset(`${FgCyan}${message}`));\n\nexport const warn = (message: any) => log(reset(`${FgYellow}${message}`));\n\nexport const danger = (message: any) => {\n return log(reset(`${FgRed}${message}`));\n};\n\nexport const success = (message: any) => {\n return log(reset(`${FgGreen}${message}`));\n};\n\nexport const debug = (message: any, value?: any) => {\n if (value !== undefined)\n console.log(message, '=>', JSON.stringify(value, null, 2));\n else return log(message);\n};\n\nexport const dump = (value: any) => log(JSON.stringify(value, null, 2));\n"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"utils.js","names":["Reset","FgRed","FgGreen","FgYellow","FgCyan","log","message","console","exports","reset","concat","info","warn","danger","success","debug","value","undefined","JSON","stringify","dump"],"sources":["../src/utils.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2023 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\n/* eslint no-console: 0 */\nconst Reset = '\\x1b[0m';\n// const Bright = \"\\x1b[1m\"\n// const Dim = \"\\x1b[2m\"\n// const Underscore = \"\\x1b[4m\"\n// const Blink = \"\\x1b[5m\"\n// const Reverse = \"\\x1b[7m\"\n// const Hidden = \"\\x1b[8m\"\n//\n// const FgBlack = \"\\x1b[30m\"\nconst FgRed = '\\x1b[31m';\nconst FgGreen = '\\x1b[32m';\nconst FgYellow = '\\x1b[33m';\n// const FgBlue = \"\\x1b[34m\"\n// const FgMagenta = \"\\x1b[35m\"\nconst FgCyan = '\\x1b[36m';\n// const FgWhite = \"\\x1b[37m\"\n//\n// const BgBlack = \"\\x1b[40m\"\n// const BgRed = \"\\x1b[41m\"\n// const BgGreen = \"\\x1b[42m\"\n// const BgYellow = \"\\x1b[43m\"\n// const BgBlue = \"\\x1b[44m\"\n// const BgMagenta = \"\\x1b[45m\"\n// const BgCyan = \"\\x1b[46m\"\n// const BgWhite = \"\\x1b[47m\"\n\n// Abstraction of log so it can be skipped when quiet mode is enabled\nexport const log = (message?: any) => {\n console.log(message);\n return message;\n};\n\nconst reset = (message: any) => `${message}${Reset}`;\n\nexport const info = (message: any) => log(reset(`${FgCyan}${message}`));\n\nexport const warn = (message: any) => log(reset(`${FgYellow}${message}`));\n\nexport const danger = (message: any) => {\n return log(reset(`${FgRed}${message}`));\n};\n\nexport const success = (message: any) => {\n return log(reset(`${FgGreen}${message}`));\n};\n\nexport const debug = (message: any, value?: any) => {\n if (value !== undefined)\n console.log(message, '=>', JSON.stringify(value, null, 2));\n else return log(message);\n};\n\nexport const dump = (value: any) => log(JSON.stringify(value, null, 2));\n"],"mappings":";;;;;;AA2BA,IAAMA,KAAK,GAAG,SAAS;AASvB,IAAMC,KAAK,GAAG,UAAU;AACxB,IAAMC,OAAO,GAAG,UAAU;AAC1B,IAAMC,QAAQ,GAAG,UAAU;AAG3B,IAAMC,MAAM,GAAG,UAAU;AAalB,IAAMC,GAAG,GAAIC,OAAa,IAAK;EACpCC,OAAO,CAACF,GAAG,CAACC,OAAO,CAAC;EACpB,OAAOA,OAAO;AAChB,CAAC;AAACE,OAAA,CAAAH,GAAA,GAAAA,GAAA;AAEF,IAAMI,KAAK,GAAIH,OAAY,OAAAI,MAAA,CAAQJ,OAAO,EAAAI,MAAA,CAAGV,KAAK,CAAE;AAE7C,IAAMW,IAAI,GAAIL,OAAY,IAAKD,GAAG,CAACI,KAAK,IAAAC,MAAA,CAAIN,MAAM,EAAAM,MAAA,CAAGJ,OAAO,CAAE,CAAC,CAAC;AAACE,OAAA,CAAAG,IAAA,GAAAA,IAAA;AAEjE,IAAMC,IAAI,GAAIN,OAAY,IAAKD,GAAG,CAACI,KAAK,IAAAC,MAAA,CAAIP,QAAQ,EAAAO,MAAA,CAAGJ,OAAO,CAAE,CAAC,CAAC;AAACE,OAAA,CAAAI,IAAA,GAAAA,IAAA;AAEnE,IAAMC,MAAM,GAAIP,OAAY,IAAK;EACtC,OAAOD,GAAG,CAACI,KAAK,IAAAC,MAAA,CAAIT,KAAK,EAAAS,MAAA,CAAGJ,OAAO,CAAE,CAAC,CAAC;AACzC,CAAC;AAACE,OAAA,CAAAK,MAAA,GAAAA,MAAA;AAEK,IAAMC,OAAO,GAAIR,OAAY,IAAK;EACvC,OAAOD,GAAG,CAACI,KAAK,IAAAC,MAAA,CAAIR,OAAO,EAAAQ,MAAA,CAAGJ,OAAO,CAAE,CAAC,CAAC;AAC3C,CAAC;AAACE,OAAA,CAAAM,OAAA,GAAAA,OAAA;AAEK,IAAMC,KAAK,GAAGA,CAACT,OAAY,EAAEU,KAAW,KAAK;EAClD,IAAIA,KAAK,KAAKC,SAAS,EACrBV,OAAO,CAACF,GAAG,CAACC,OAAO,EAAE,IAAI,EAAEY,IAAI,CAACC,SAAS,CAACH,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,KACxD,OAAOX,GAAG,CAACC,OAAO,CAAC;AAC1B,CAAC;AAACE,OAAA,CAAAO,KAAA,GAAAA,KAAA;AAEK,IAAMK,IAAI,GAAIJ,KAAU,IAAKX,GAAG,CAACa,IAAI,CAACC,SAAS,CAACH,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAACR,OAAA,CAAAY,IAAA,GAAAA,IAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@looker/sdk-codegen-utils",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.21",
|
|
4
4
|
"description": "Looker SDK Codegen utils",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"watch:cjs": "yarn lerna exec --scope @looker/sdk-codegen-utils --stream 'BABEL_ENV=build_cjs babel src --root-mode upward --out-dir lib --source-maps --extensions .ts,.tsx --no-comments --watch'"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@looker/sdk": "25.0
|
|
35
|
-
"@looker/sdk-node": "25.0
|
|
36
|
-
"@looker/sdk-rtl": "21.6.
|
|
34
|
+
"@looker/sdk": "25.4.0",
|
|
35
|
+
"@looker/sdk-node": "25.4.0",
|
|
36
|
+
"@looker/sdk-rtl": "21.6.4",
|
|
37
37
|
"@manypkg/find-root": "2.2.1",
|
|
38
38
|
"@types/js-yaml": "4.0.9",
|
|
39
39
|
"js-yaml": "4.1.0",
|
|
40
40
|
"lodash": "4.17.21"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "4f7632b94e4b0e53380ba95aaebbe7ed789ac9ca"
|
|
43
43
|
}
|