@ms-cloudpack/remote-cache 0.5.1-beta.2 → 0.5.2

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 (78) hide show
  1. package/lib/AzureRemoteCacheClient.d.ts.map +1 -0
  2. package/lib/AzureRemoteCacheClient.js +51 -0
  3. package/lib/AzureRemoteCacheClient.js.map +1 -0
  4. package/lib/Task.d.ts.map +1 -0
  5. package/lib/Task.js +2 -0
  6. package/lib/Task.js.map +1 -0
  7. package/lib/authentication/getAuthenticationRecord.d.ts.map +1 -0
  8. package/lib/authentication/getAuthenticationRecord.js +17 -0
  9. package/lib/authentication/getAuthenticationRecord.js.map +1 -0
  10. package/lib/authentication/getAuthenticationRecordPath.d.ts.map +1 -0
  11. package/lib/authentication/getAuthenticationRecordPath.js +10 -0
  12. package/lib/authentication/getAuthenticationRecordPath.js.map +1 -0
  13. package/lib/authentication/getCredential.d.ts.map +1 -0
  14. package/lib/authentication/getCredential.js +61 -0
  15. package/lib/authentication/getCredential.js.map +1 -0
  16. package/lib/authentication/saveAuthenticationRecord.d.ts.map +1 -0
  17. package/lib/authentication/saveAuthenticationRecord.js +17 -0
  18. package/lib/authentication/saveAuthenticationRecord.js.map +1 -0
  19. package/lib/cache-persistance/cachePersistencePlugin.d.ts.map +1 -0
  20. package/lib/cache-persistance/cachePersistencePlugin.js +35 -0
  21. package/lib/cache-persistance/cachePersistencePlugin.js.map +1 -0
  22. package/lib/cache-persistance/platforms.d.ts.map +1 -0
  23. package/lib/cache-persistance/platforms.js +109 -0
  24. package/lib/cache-persistance/platforms.js.map +1 -0
  25. package/lib/cache-persistance/provider.d.ts.map +1 -0
  26. package/lib/cache-persistance/provider.js +26 -0
  27. package/lib/cache-persistance/provider.js.map +1 -0
  28. package/lib/createBlobStorageUrl.d.ts.map +1 -0
  29. package/lib/createBlobStorageUrl.js +4 -0
  30. package/lib/createBlobStorageUrl.js.map +1 -0
  31. package/lib/createRemoteCacheClient.d.ts.map +1 -0
  32. package/lib/createRemoteCacheClient.js +27 -0
  33. package/lib/createRemoteCacheClient.js.map +1 -0
  34. package/lib/decorators/InMemoryDecorator.d.ts.map +1 -0
  35. package/lib/decorators/InMemoryDecorator.js +29 -0
  36. package/lib/decorators/InMemoryDecorator.js.map +1 -0
  37. package/lib/decorators/ReporterDecorator.d.ts +1 -1
  38. package/lib/decorators/ReporterDecorator.d.ts.map +1 -0
  39. package/lib/decorators/ReporterDecorator.js +126 -0
  40. package/lib/decorators/ReporterDecorator.js.map +1 -0
  41. package/lib/decorators/RetryDecorator.d.ts.map +1 -0
  42. package/lib/decorators/RetryDecorator.js +27 -0
  43. package/lib/decorators/RetryDecorator.js.map +1 -0
  44. package/lib/getListOfBlobs.d.ts.map +1 -0
  45. package/lib/getListOfBlobs.js +15 -0
  46. package/lib/getListOfBlobs.js.map +1 -0
  47. package/lib/index.d.ts.map +1 -0
  48. package/lib/index.js +2 -0
  49. package/lib/index.js.map +1 -0
  50. package/lib/retry/blockListIsInvalidRetryPolicy.d.ts.map +1 -0
  51. package/lib/retry/blockListIsInvalidRetryPolicy.js +8 -0
  52. package/lib/retry/blockListIsInvalidRetryPolicy.js.map +1 -0
  53. package/lib/tsdoc-metadata.json +11 -0
  54. package/lib/types/LoginMethod.d.ts.map +1 -0
  55. package/lib/types/LoginMethod.js +2 -0
  56. package/lib/types/LoginMethod.js.map +1 -0
  57. package/lib/types/RemoteCacheClient.d.ts.map +1 -0
  58. package/lib/types/RemoteCacheClient.js +2 -0
  59. package/lib/types/RemoteCacheClient.js.map +1 -0
  60. package/lib/types/RemoteCacheClientOptions.d.ts.map +1 -0
  61. package/lib/types/RemoteCacheClientOptions.js +2 -0
  62. package/lib/types/RemoteCacheClientOptions.js.map +1 -0
  63. package/lib/types/RetryPolicy.d.ts.map +1 -0
  64. package/lib/types/RetryPolicy.js +2 -0
  65. package/lib/types/RetryPolicy.js.map +1 -0
  66. package/package.json +13 -14
  67. package/dist/AzureRemoteCacheClient-AE2VSZ7M.js +0 -52517
  68. package/dist/ReporterDecorator-IPB43LAC.js +0 -127
  69. package/dist/chunk-7DWZ2KJB.js +0 -49702
  70. package/dist/chunk-IG2LEA6S.js +0 -185
  71. package/dist/chunk-N2VHZU53.js +0 -63
  72. package/dist/chunk-X5NZ4TUB.js +0 -1075
  73. package/dist/chunk-YE3TMZ3A.js +0 -13
  74. package/dist/getCredential-63JEO57N.js +0 -24180
  75. package/dist/getListOfBlobs-BZCK6WJA.js +0 -27
  76. package/dist/index.js +0 -103
  77. package/lib/decorators/InMemoryDecorator.test.d.ts +0 -2
  78. package/lib/decorators/RetryDecorator.test.d.ts +0 -2
@@ -1,185 +0,0 @@
1
- import {
2
- __commonJS,
3
- __require,
4
- init_esbuildCjsShims
5
- } from "./chunk-N2VHZU53.js";
6
-
7
- // ../../node_modules/has-flag/index.js
8
- var require_has_flag = __commonJS({
9
- "../../node_modules/has-flag/index.js"(exports, module) {
10
- "use strict";
11
- init_esbuildCjsShims();
12
- module.exports = (flag, argv = process.argv) => {
13
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
14
- const position = argv.indexOf(prefix + flag);
15
- const terminatorPosition = argv.indexOf("--");
16
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
17
- };
18
- }
19
- });
20
-
21
- // ../../node_modules/supports-color/index.js
22
- var require_supports_color = __commonJS({
23
- "../../node_modules/supports-color/index.js"(exports, module) {
24
- "use strict";
25
- init_esbuildCjsShims();
26
- var os = __require("os");
27
- var tty = __require("tty");
28
- var hasFlag = require_has_flag();
29
- var { env } = process;
30
- var forceColor;
31
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
32
- forceColor = 0;
33
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
34
- forceColor = 1;
35
- }
36
- if ("FORCE_COLOR" in env) {
37
- if (env.FORCE_COLOR === "true") {
38
- forceColor = 1;
39
- } else if (env.FORCE_COLOR === "false") {
40
- forceColor = 0;
41
- } else {
42
- forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
43
- }
44
- }
45
- function translateLevel(level) {
46
- if (level === 0) {
47
- return false;
48
- }
49
- return {
50
- level,
51
- hasBasic: true,
52
- has256: level >= 2,
53
- has16m: level >= 3
54
- };
55
- }
56
- function supportsColor(haveStream, streamIsTTY) {
57
- if (forceColor === 0) {
58
- return 0;
59
- }
60
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
61
- return 3;
62
- }
63
- if (hasFlag("color=256")) {
64
- return 2;
65
- }
66
- if (haveStream && !streamIsTTY && forceColor === void 0) {
67
- return 0;
68
- }
69
- const min = forceColor || 0;
70
- if (env.TERM === "dumb") {
71
- return min;
72
- }
73
- if (process.platform === "win32") {
74
- const osRelease = os.release().split(".");
75
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
76
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
77
- }
78
- return 1;
79
- }
80
- if ("CI" in env) {
81
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
82
- return 1;
83
- }
84
- return min;
85
- }
86
- if ("TEAMCITY_VERSION" in env) {
87
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
88
- }
89
- if (env.COLORTERM === "truecolor") {
90
- return 3;
91
- }
92
- if ("TERM_PROGRAM" in env) {
93
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
94
- switch (env.TERM_PROGRAM) {
95
- case "iTerm.app":
96
- return version >= 3 ? 3 : 2;
97
- case "Apple_Terminal":
98
- return 2;
99
- }
100
- }
101
- if (/-256(color)?$/i.test(env.TERM)) {
102
- return 2;
103
- }
104
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
105
- return 1;
106
- }
107
- if ("COLORTERM" in env) {
108
- return 1;
109
- }
110
- return min;
111
- }
112
- function getSupportLevel(stream) {
113
- const level = supportsColor(stream, stream && stream.isTTY);
114
- return translateLevel(level);
115
- }
116
- module.exports = {
117
- supportsColor: getSupportLevel,
118
- stdout: translateLevel(supportsColor(true, tty.isatty(1))),
119
- stderr: translateLevel(supportsColor(true, tty.isatty(2)))
120
- };
121
- }
122
- });
123
-
124
- // ../../node_modules/safe-buffer/index.js
125
- var require_safe_buffer = __commonJS({
126
- "../../node_modules/safe-buffer/index.js"(exports, module) {
127
- init_esbuildCjsShims();
128
- var buffer = __require("buffer");
129
- var Buffer = buffer.Buffer;
130
- function copyProps(src, dst) {
131
- for (var key in src) {
132
- dst[key] = src[key];
133
- }
134
- }
135
- if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
136
- module.exports = buffer;
137
- } else {
138
- copyProps(buffer, exports);
139
- exports.Buffer = SafeBuffer;
140
- }
141
- function SafeBuffer(arg, encodingOrOffset, length) {
142
- return Buffer(arg, encodingOrOffset, length);
143
- }
144
- copyProps(Buffer, SafeBuffer);
145
- SafeBuffer.from = function(arg, encodingOrOffset, length) {
146
- if (typeof arg === "number") {
147
- throw new TypeError("Argument must not be a number");
148
- }
149
- return Buffer(arg, encodingOrOffset, length);
150
- };
151
- SafeBuffer.alloc = function(size, fill, encoding) {
152
- if (typeof size !== "number") {
153
- throw new TypeError("Argument must be a number");
154
- }
155
- var buf = Buffer(size);
156
- if (fill !== void 0) {
157
- if (typeof encoding === "string") {
158
- buf.fill(fill, encoding);
159
- } else {
160
- buf.fill(fill);
161
- }
162
- } else {
163
- buf.fill(0);
164
- }
165
- return buf;
166
- };
167
- SafeBuffer.allocUnsafe = function(size) {
168
- if (typeof size !== "number") {
169
- throw new TypeError("Argument must be a number");
170
- }
171
- return Buffer(size);
172
- };
173
- SafeBuffer.allocUnsafeSlow = function(size) {
174
- if (typeof size !== "number") {
175
- throw new TypeError("Argument must be a number");
176
- }
177
- return buffer.SlowBuffer(size);
178
- };
179
- }
180
- });
181
-
182
- export {
183
- require_safe_buffer,
184
- require_supports_color
185
- };
@@ -1,63 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined")
11
- return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __esm = (fn, res) => function __init() {
15
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
- };
17
- var __commonJS = (cb, mod) => function __require2() {
18
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
- };
20
- var __export = (target, all) => {
21
- for (var name in all)
22
- __defProp(target, name, { get: all[name], enumerable: true });
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
- // If the importer is in node compatibility mode or this is not an ESM
34
- // file that has been converted to a CommonJS file using a Babel-
35
- // compatible transform (i.e. "__esModule" has not been set), then set
36
- // "default" to the CommonJS "module.exports" for node compatibility.
37
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
38
- mod
39
- ));
40
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
-
42
- // ../../scripts/esbuildCjsShims.js
43
- import { createRequire } from "node:module";
44
- import path from "node:path";
45
- import url from "node:url";
46
- var init_esbuildCjsShims = __esm({
47
- "../../scripts/esbuildCjsShims.js"() {
48
- "use strict";
49
- globalThis.require = createRequire(import.meta.url);
50
- globalThis.__filename = url.fileURLToPath(import.meta.url);
51
- globalThis.__dirname = path.dirname(__filename);
52
- }
53
- });
54
-
55
- export {
56
- __require,
57
- __esm,
58
- __commonJS,
59
- __export,
60
- __toESM,
61
- __toCommonJS,
62
- init_esbuildCjsShims
63
- };