@equinor/fusion-framework-module-http 6.0.0 → 6.0.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.
- package/CHANGELOG.md +80 -0
- package/README.md +759 -36
- package/dist/esm/configurator.js +10 -1
- package/dist/esm/configurator.js.map +1 -1
- package/dist/esm/errors.js +18 -0
- package/dist/esm/errors.js.map +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/client/client-msal.js +35 -0
- package/dist/esm/lib/client/client-msal.js.map +1 -1
- package/dist/esm/lib/client/client.js +150 -4
- package/dist/esm/lib/client/client.js.map +1 -1
- package/dist/esm/lib/operators/http-request-handler.js +16 -0
- package/dist/esm/lib/operators/http-request-handler.js.map +1 -1
- package/dist/esm/lib/operators/http-response-handler.js +6 -0
- package/dist/esm/lib/operators/http-response-handler.js.map +1 -1
- package/dist/esm/lib/operators/process-operators.js +49 -1
- package/dist/esm/lib/operators/process-operators.js.map +1 -1
- package/dist/esm/lib/operators/request-operator-header.js +7 -0
- package/dist/esm/lib/operators/request-operator-header.js.map +1 -1
- package/dist/esm/lib/selectors/blob-selector.js +12 -0
- package/dist/esm/lib/selectors/blob-selector.js.map +1 -1
- package/dist/esm/lib/selectors/json-selector.js +21 -0
- package/dist/esm/lib/selectors/json-selector.js.map +1 -1
- package/dist/esm/module.js +40 -0
- package/dist/esm/module.js.map +1 -1
- package/dist/esm/provider.js +65 -6
- package/dist/esm/provider.js.map +1 -1
- package/dist/esm/version.js +2 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/configurator.d.ts +76 -0
- package/dist/types/errors.d.ts +18 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/lib/client/client-msal.d.ts +43 -0
- package/dist/types/lib/client/client.d.ts +144 -0
- package/dist/types/lib/client/types.d.ts +150 -3
- package/dist/types/lib/operators/http-request-handler.d.ts +16 -0
- package/dist/types/lib/operators/http-response-handler.d.ts +6 -0
- package/dist/types/lib/operators/process-operators.d.ts +44 -0
- package/dist/types/lib/operators/request-operator-header.d.ts +7 -0
- package/dist/types/lib/operators/types.d.ts +57 -0
- package/dist/types/lib/selectors/blob-selector.d.ts +9 -2
- package/dist/types/lib/selectors/index.d.ts +1 -0
- package/dist/types/lib/selectors/json-selector.d.ts +16 -1
- package/dist/types/module.d.ts +35 -0
- package/dist/types/provider.d.ts +77 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
- package/src/configurator.ts +38 -1
- package/src/errors.ts +11 -1
- package/src/lib/client/client-msal.ts +50 -5
- package/src/lib/client/client.ts +130 -5
- package/src/lib/client/types.ts +124 -67
- package/src/lib/operators/http-request-handler.ts +12 -4
- package/src/lib/operators/http-response-handler.ts +6 -0
- package/src/lib/operators/process-operators.ts +6 -1
- package/src/lib/operators/request-operator-header.ts +7 -0
- package/src/lib/operators/types.ts +22 -4
- package/src/lib/selectors/blob-selector.ts +2 -2
- package/src/lib/selectors/index.ts +2 -0
- package/src/lib/selectors/json-selector.ts +5 -1
- package/src/module.ts +55 -2
- package/src/provider.ts +76 -2
- package/src/version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-selector.js","sourceRoot":"","sources":["../../../../src/lib/selectors/json-selector.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"json-selector.js","sourceRoot":"","sources":["../../../../src/lib/selectors/json-selector.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAErD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,YAAY,GAAqB,CAI1C,QAAmB,EACL,EAAE;IAChB,2DAA2D;IAC3D,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC1B,OAAO,OAAO,CAAC,OAAO,EAAoB,CAAC;IAC/C,CAAC;IAED,IAAI,CAAC;QACD,+BAA+B;QAC/B,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEnC,uCAAuC;QACvC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACf,2CAA2C;YAC3C,MAAM,IAAI,qBAAqB,CAAC,6BAA6B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACvF,CAAC;QAED,yBAAyB;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,uDAAuD;QACvD,IAAI,KAAK,YAAY,qBAAqB,EAAE,CAAC;YACzC,MAAM,KAAK,CAAC;QAChB,CAAC;QAED,sEAAsE;QACtE,MAAM,IAAI,qBAAqB,CAAC,0BAA0B,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACrF,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/esm/module.js
CHANGED
|
@@ -7,12 +7,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
10
11
|
import { HttpClientMsal } from './lib/client';
|
|
11
12
|
import { HttpClientConfigurator } from './configurator';
|
|
12
13
|
import { HttpClientProvider } from './provider';
|
|
14
|
+
/**
|
|
15
|
+
* HTTP module with MSAL authentication.
|
|
16
|
+
*/
|
|
13
17
|
export const module = {
|
|
14
18
|
name: 'http',
|
|
19
|
+
/**
|
|
20
|
+
* Configures the HTTP module with MSAL authentication.
|
|
21
|
+
*
|
|
22
|
+
* This function creates a new `HttpClientConfigurator` instance using the `HttpClientMsal` class.
|
|
23
|
+
* The `HttpClientConfigurator` is responsible for configuring the HTTP client with the necessary options,
|
|
24
|
+
* such as the base URL, request headers, and other settings.
|
|
25
|
+
*
|
|
26
|
+
* @returns A new `HttpClientConfigurator` instance configured for MSAL authentication.
|
|
27
|
+
*/
|
|
15
28
|
configure: () => new HttpClientConfigurator(HttpClientMsal),
|
|
29
|
+
/**
|
|
30
|
+
* Initializes the HTTP client provider with MSAL authentication.
|
|
31
|
+
*
|
|
32
|
+
* This function is responsible for setting up the default HTTP request handler
|
|
33
|
+
* to acquire an access token from MSAL and attach it to the request headers
|
|
34
|
+
* when the request includes scopes.
|
|
35
|
+
*
|
|
36
|
+
* @param config - The module configuration.
|
|
37
|
+
* @param hasModule - A function to check if a module is available.
|
|
38
|
+
* @param requireInstance - A function to get an instance of a module.
|
|
39
|
+
* @returns A promise that resolves to the HTTP client provider.
|
|
40
|
+
*/
|
|
16
41
|
initialize: (_a) => __awaiter(void 0, [_a], void 0, function* ({ config, hasModule, requireInstance, }) {
|
|
17
42
|
const httpProvider = new HttpClientProvider(config);
|
|
18
43
|
if (hasModule('auth')) {
|
|
@@ -20,6 +45,7 @@ export const module = {
|
|
|
20
45
|
httpProvider.defaultHttpRequestHandler.set('MSAL', (request) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
46
|
const { scopes = [] } = request;
|
|
22
47
|
if (scopes.length) {
|
|
48
|
+
/** TODO should be try catch, check caller for handling */
|
|
23
49
|
const token = yield authProvider.acquireToken({
|
|
24
50
|
scopes,
|
|
25
51
|
});
|
|
@@ -34,10 +60,24 @@ export const module = {
|
|
|
34
60
|
return httpProvider;
|
|
35
61
|
}),
|
|
36
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* Configures the HTTP module with MSAL authentication.
|
|
65
|
+
*/
|
|
37
66
|
export const configureHttp = (configure) => ({
|
|
38
67
|
module,
|
|
39
68
|
configure,
|
|
40
69
|
});
|
|
70
|
+
/**
|
|
71
|
+
* Configures the HTTP client with MSAL authentication.
|
|
72
|
+
*
|
|
73
|
+
* This function creates a module configurator that can be used to configure the HTTP module
|
|
74
|
+
* with MSAL authentication. The configurator takes a name and a set of HTTP client options,
|
|
75
|
+
* and returns a module configurator that can be used to configure the HTTP module.
|
|
76
|
+
*
|
|
77
|
+
* @param name - The name of the HTTP client configuration.
|
|
78
|
+
* @param args - The HTTP client options, including the MSAL configuration.
|
|
79
|
+
* @returns A module configurator that can be used to configure the HTTP module.
|
|
80
|
+
*/
|
|
41
81
|
export const configureHttpClient = (name, args) => ({
|
|
42
82
|
module,
|
|
43
83
|
configure: (config) => {
|
package/dist/esm/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uDAAuD;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAA2B,sBAAsB,EAAqB,MAAM,gBAAgB,CAAC;AACpG,OAAO,EAAuB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAkCrE;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAmB;IAClC,IAAI,EAAE,MAAM;IACZ;;;;;;;;OAQG;IACH,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,sBAAsB,CAAC,cAAc,CAAC;IAE3D;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,KAIoC,EAAE,4CAJ/B,EACf,MAAM,EACN,SAAS,EACT,eAAe,GAClB;QACG,MAAM,YAAY,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;YACpB,MAAM,YAAY,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;YACnD,YAAY,CAAC,yBAAyB,CAAC,GAAG,CAAC,MAAM,EAAE,CAAO,OAAO,EAAE,EAAE;gBACjE,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;gBAChC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;oBAChB,0DAA0D;oBAC1D,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,YAAY,CAAC;wBAC1C,MAAM;qBACT,CAAC,CAAC;oBACH,IAAI,KAAK,EAAE,CAAC;wBACR,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;wBAC7C,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;wBAC5D,uCAAY,OAAO,KAAE,OAAO,IAAG;oBACnC,CAAC;gBACL,CAAC;YACL,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;QACD,OAAO,YAAY,CAAC;IACxB,CAAC,CAAA;CACJ,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CACzB,SAAyE,EAChC,EAAE,CAAC,CAAC;IAC7C,MAAM;IACN,SAAS;CACZ,CAAC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAC/B,IAAY,EACZ,IAAuC,EACE,EAAE,CAAC,CAAC;IAC7C,MAAM;IACN,SAAS,EAAE,CAAC,MAAwC,EAAE,EAAE;QACpD,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ,CAAC,CAAC;AAWH,eAAe,MAAM,CAAC"}
|
package/dist/esm/provider.js
CHANGED
|
@@ -3,25 +3,63 @@ export class ClientNotFoundException extends Error {
|
|
|
3
3
|
super(message);
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Checks if a given string is a valid URL.
|
|
8
|
+
* @param url - The string to check for a valid URL.
|
|
9
|
+
* @returns `true` if the input string is a valid URL, `false` otherwise.
|
|
10
|
+
*/
|
|
6
11
|
const isURL = (url) => {
|
|
7
|
-
const pattern = new RegExp('^(https?:\\/\\/)?' +
|
|
8
|
-
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' +
|
|
9
|
-
'((\\d{1,3}\\.){3}\\d{1,3}))' +
|
|
10
|
-
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' +
|
|
11
|
-
'(\\?[;&a-z\\d%_.~+=-]*)?' +
|
|
12
|
-
'(\\#[-a-z\\d_]*)?$', 'i');
|
|
12
|
+
const pattern = new RegExp('^(https?:\\/\\/)?' + // protocol
|
|
13
|
+
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' + // domain name
|
|
14
|
+
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address
|
|
15
|
+
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
|
|
16
|
+
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
|
|
17
|
+
'(\\#[-a-z\\d_]*)?$', 'i'); // fragment locator
|
|
13
18
|
return pattern.test(url);
|
|
14
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* The `HttpClientProvider` class is responsible for managing HTTP client instances and their configuration.
|
|
22
|
+
* It provides methods to check if a client is configured, create new client instances, and create custom client instances.
|
|
23
|
+
*/
|
|
15
24
|
export class HttpClientProvider {
|
|
25
|
+
/**
|
|
26
|
+
* Gets the default HTTP request handler for the HTTP client provider.
|
|
27
|
+
* @returns The default HTTP request handler.
|
|
28
|
+
*/
|
|
16
29
|
get defaultHttpRequestHandler() {
|
|
17
30
|
return this.config.defaultHttpRequestHandler;
|
|
18
31
|
}
|
|
19
32
|
constructor(config) {
|
|
20
33
|
this.config = config;
|
|
21
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Checks if a client with the given key is configured in the `HttpClientProvider`.
|
|
37
|
+
* @param key - The key of the HTTP client to check.
|
|
38
|
+
* @returns `true` if a client with the given key is configured, `false` otherwise.
|
|
39
|
+
*/
|
|
22
40
|
hasClient(key) {
|
|
23
41
|
return Object.keys(this.config.clients).includes(key);
|
|
24
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new HTTP client instance with the specified configuration.
|
|
45
|
+
*
|
|
46
|
+
* @param keyOrConfig - The key or configuration object for the HTTP client.
|
|
47
|
+
* @returns The created HTTP client instance.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* This method resolves the configuration for the HTTP client based on the provided `keyOrConfig` parameter.
|
|
51
|
+
* If a string is provided, it is treated as the key for a pre-configured client in the `HttpClientProvider`.
|
|
52
|
+
* If an `HttpClientOptions` object is provided, it is used as the configuration for the new client instance.
|
|
53
|
+
*
|
|
54
|
+
* The method sets up the HTTP client with the following options:
|
|
55
|
+
* - `baseUri`: The base URI for the HTTP client.
|
|
56
|
+
* - `defaultScopes`: The default scopes to be used for authentication.
|
|
57
|
+
* - `onCreate`: An optional callback function that is called when the client instance is created.
|
|
58
|
+
* - `ctor`: The constructor function for the HTTP client, defaulting to the configured `defaultHttpClientCtor`.
|
|
59
|
+
* - `requestHandler`: The HTTP request handler to be used by the client, defaulting to the `defaultHttpRequestHandler`.
|
|
60
|
+
*
|
|
61
|
+
* The created HTTP client instance is returned.
|
|
62
|
+
*/
|
|
25
63
|
createClient(keyOrConfig) {
|
|
26
64
|
const config = this._resolveConfig(keyOrConfig);
|
|
27
65
|
const { baseUri, defaultScopes = [], onCreate, ctor = this.config.defaultHttpClientCtor, requestHandler = this.defaultHttpRequestHandler, } = config;
|
|
@@ -31,9 +69,30 @@ export class HttpClientProvider {
|
|
|
31
69
|
onCreate && onCreate(instance);
|
|
32
70
|
return instance;
|
|
33
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Creates a new HTTP client instance with the specified configuration.
|
|
74
|
+
*
|
|
75
|
+
* @param key - The key of the pre-configured HTTP client to create.
|
|
76
|
+
* @returns The created HTTP client instance, cast to the specified type `T`.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* This method delegates to the `createClient` method, but casts the returned
|
|
80
|
+
* instance to the specified type `T`. This can be useful when you need to
|
|
81
|
+
* work with a specific HTTP client implementation, but the `HttpClientProvider`
|
|
82
|
+
* is configured to use a different implementation.
|
|
83
|
+
*/
|
|
34
84
|
createCustomClient(key) {
|
|
35
85
|
return this.createClient(key);
|
|
36
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Resolves the configuration for an HTTP client based on the provided `keyOrConfig` parameter.
|
|
89
|
+
*
|
|
90
|
+
* If a string is provided, it is treated as the key for a pre-configured client in the `HttpClientProvider`.
|
|
91
|
+
* If an `HttpClientOptions` object is provided, it is used as the configuration for the new client instance.
|
|
92
|
+
*
|
|
93
|
+
* @param keyOrConfig - The key or configuration object for the HTTP client.
|
|
94
|
+
* @returns The resolved HTTP client configuration.
|
|
95
|
+
*/
|
|
37
96
|
_resolveConfig(keyOrConfig) {
|
|
38
97
|
if (typeof keyOrConfig === 'string') {
|
|
39
98
|
const config = this.config.clients[keyOrConfig];
|
package/dist/esm/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/provider.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAC9C,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/provider.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAC9C,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CACJ;AAoCD;;;;GAIG;AACH,MAAM,KAAK,GAAG,CAAC,GAAW,EAAE,EAAE;IAC1B,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,mBAAmB,GAAG,WAAW;QAC7B,mDAAmD,GAAG,cAAc;QACpE,6BAA6B,GAAG,qBAAqB;QACrD,iCAAiC,GAAG,gBAAgB;QACpD,0BAA0B,GAAG,eAAe;QAC5C,oBAAoB,EACxB,GAAG,CACN,CAAC,CAAC,mBAAmB;IACtB,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAG3B;;;OAGG;IACH,IAAI,yBAAyB;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC;IACjD,CAAC;IAED,YAAsB,MAAwC;QAAxC,WAAM,GAAN,MAAM,CAAkC;IAAG,CAAC;IAElE;;;;OAIG;IACI,SAAS,CAAC,GAAW;QACxB,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACI,YAAY,CAAC,WAAgD;QAChE,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,EACF,OAAO,EACP,aAAa,GAAG,EAAE,EAClB,QAAQ,EACR,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,qBAAqB,EACxC,cAAc,GAAG,IAAI,CAAC,yBAAyB,GAClD,GAAG,MAAoC,CAAC;QACzC,MAAM,OAAO,GAAG,EAAE,cAAc,EAAE,CAAC;QACnC,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,OAAO,CAAY,CAAC;QAC7D,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;QAC3C,QAAQ,IAAI,QAAQ,CAAC,QAAmB,CAAC,CAAC;QAC1C,OAAO,QAAmB,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;;OAWG;IACI,kBAAkB,CAAuB,GAAW;QACvD,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAiB,CAAC;IAClD,CAAC;IAED;;;;;;;;OAQG;IACO,cAAc,CACpB,WAAgD;QAEhD,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YAClC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAChD,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC;gBAChC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;YACpC,CAAC;iBAAM,IAAI,CAAC,MAAM,EAAE,CAAC;gBACjB,MAAM,IAAI,uBAAuB,CAC7B,sCAAsC,WAAW,GAAG,CACvD,CAAC;YACN,CAAC;YACD,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,OAAO,WAAyC,CAAC;IACrD,CAAC;CACJ"}
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
|