@squide/env-vars 1.1.0 → 1.1.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.
- package/CHANGELOG.md +9 -0
- package/dist/EnvironmentVariablesPlugin.d.ts +2 -1
- package/dist/EnvironmentVariablesPlugin.js +1 -1
- package/dist/{chunk-GXG5GJE4.js → chunk-QLZVF7AB.js} +1 -1
- package/dist/{chunk-JVCFWL5Q.js → chunk-T435A5DU.js} +5 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/useEnvironmentVariable.js +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @squide/env-vars
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#221](https://github.com/gsoft-inc/wl-squide/pull/221) [`8411080`](https://github.com/gsoft-inc/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fix deferred registrations.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`8411080`](https://github.com/gsoft-inc/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925)]:
|
|
10
|
+
- @squide/core@5.4.1
|
|
11
|
+
|
|
3
12
|
## 1.1.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Plugin, Runtime } from '@squide/core';
|
|
2
2
|
import { EnvironmentVariablesRegistryKey, EnvironmentVariablesRegistryValue, EnvironmentVariables } from './EnvironmentVariablesRegistry.js';
|
|
3
3
|
|
|
4
|
+
declare const EnvironmentVariablesPluginName = "env-vars-plugin";
|
|
4
5
|
declare class EnvironmentVariablesPlugin extends Plugin {
|
|
5
6
|
#private;
|
|
6
7
|
constructor(runtime: Runtime);
|
|
@@ -11,4 +12,4 @@ declare class EnvironmentVariablesPlugin extends Plugin {
|
|
|
11
12
|
}
|
|
12
13
|
declare function getEnvironmentVariablesPlugin(runtime: Runtime): EnvironmentVariablesPlugin;
|
|
13
14
|
|
|
14
|
-
export { EnvironmentVariablesPlugin, getEnvironmentVariablesPlugin };
|
|
15
|
+
export { EnvironmentVariablesPlugin, EnvironmentVariablesPluginName, getEnvironmentVariablesPlugin };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EnvironmentVariablesPlugin, getEnvironmentVariablesPlugin } from './chunk-
|
|
1
|
+
export { EnvironmentVariablesPlugin, EnvironmentVariablesPluginName, getEnvironmentVariablesPlugin } from './chunk-T435A5DU.js';
|
|
2
2
|
import './chunk-IXP4YDYO.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { EnvironmentVariablesRegistry } from './chunk-IXP4YDYO.js';
|
|
2
2
|
import { Plugin, isNil } from '@squide/core';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var EnvironmentVariablesPluginName = "env-vars-plugin";
|
|
5
|
+
var EnvironmentVariablesPlugin = class extends Plugin {
|
|
5
6
|
#environmentVariablesRegistry = new EnvironmentVariablesRegistry();
|
|
6
7
|
constructor(runtime) {
|
|
7
|
-
super(
|
|
8
|
+
super(EnvironmentVariablesPluginName, runtime);
|
|
8
9
|
}
|
|
9
10
|
registerVariable(key, value) {
|
|
10
11
|
this.#environmentVariablesRegistry.add(key, value);
|
|
@@ -22,11 +23,11 @@ var EnvironmentVariablesPlugin = class _EnvironmentVariablesPlugin extends Plugi
|
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
25
|
function getEnvironmentVariablesPlugin(runtime) {
|
|
25
|
-
const plugin = runtime.getPlugin(
|
|
26
|
+
const plugin = runtime.getPlugin(EnvironmentVariablesPluginName);
|
|
26
27
|
if (isNil(plugin)) {
|
|
27
28
|
throw new Error("[squide] The getEnvironmentVariablesPlugin function is called but no EnvironmentVariablesPlugin instance has been registered with the runtime.");
|
|
28
29
|
}
|
|
29
30
|
return plugin;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
export { EnvironmentVariablesPlugin, getEnvironmentVariablesPlugin };
|
|
33
|
+
export { EnvironmentVariablesPlugin, EnvironmentVariablesPluginName, getEnvironmentVariablesPlugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { EnvironmentVariablesPlugin, getEnvironmentVariablesPlugin } from './EnvironmentVariablesPlugin.js';
|
|
1
|
+
export { EnvironmentVariablesPlugin, EnvironmentVariablesPluginName, getEnvironmentVariablesPlugin } from './EnvironmentVariablesPlugin.js';
|
|
2
2
|
export { EnvironmentVariables, EnvironmentVariablesRegistryKey, EnvironmentVariablesRegistryValue } from './EnvironmentVariablesRegistry.js';
|
|
3
3
|
export { useEnvironmentVariable, useEnvironmentVariables } from './useEnvironmentVariable.js';
|
|
4
4
|
import '@squide/core';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useEnvironmentVariable, useEnvironmentVariables } from './chunk-
|
|
2
|
-
export { EnvironmentVariablesPlugin, getEnvironmentVariablesPlugin } from './chunk-
|
|
1
|
+
export { useEnvironmentVariable, useEnvironmentVariables } from './chunk-QLZVF7AB.js';
|
|
2
|
+
export { EnvironmentVariablesPlugin, EnvironmentVariablesPluginName, getEnvironmentVariablesPlugin } from './chunk-T435A5DU.js';
|
|
3
3
|
import './chunk-IXP4YDYO.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useEnvironmentVariable, useEnvironmentVariables } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { useEnvironmentVariable, useEnvironmentVariables } from './chunk-QLZVF7AB.js';
|
|
2
|
+
import './chunk-T435A5DU.js';
|
|
3
3
|
import './chunk-IXP4YDYO.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squide/env-vars",
|
|
3
3
|
"author": "Workleap",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"description": "Add support for environment variables to @squide application shell.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@swc/core": "1.
|
|
31
|
-
"@swc/jest": "0.2.
|
|
32
|
-
"@types/jest": "29.5.
|
|
33
|
-
"@types/react": "18.3.
|
|
34
|
-
"@types/react-dom": "18.3.
|
|
35
|
-
"@workleap/eslint-plugin": "3.2.
|
|
30
|
+
"@swc/core": "1.8.0",
|
|
31
|
+
"@swc/jest": "0.2.37",
|
|
32
|
+
"@types/jest": "29.5.14",
|
|
33
|
+
"@types/react": "18.3.12",
|
|
34
|
+
"@types/react-dom": "18.3.1",
|
|
35
|
+
"@workleap/eslint-plugin": "3.2.3",
|
|
36
36
|
"@workleap/swc-configs": "2.2.3",
|
|
37
37
|
"@workleap/tsup-configs": "3.0.6",
|
|
38
38
|
"@workleap/typescript-configs": "3.0.2",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"jest": "29.7.0",
|
|
41
41
|
"jest-environment-jsdom": "29.7.0",
|
|
42
42
|
"ts-jest": "29.2.5",
|
|
43
|
-
"tsup": "8.3.
|
|
43
|
+
"tsup": "8.3.5",
|
|
44
44
|
"typescript": "5.5.4"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"memoize": "10.0.0",
|
|
48
|
-
"@squide/core": "5.4.
|
|
48
|
+
"@squide/core": "5.4.1"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"engines": {
|