piral-core 0.14.3-beta.3299 → 0.14.3-beta.3303
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/package.json +13 -13
- package/src/actions/app.ts +1 -1
- package/src/helpers.test.tsx +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-core",
|
|
3
|
-
"version": "0.14.3-beta.
|
|
3
|
+
"version": "0.14.3-beta.3303",
|
|
4
4
|
"description": "The core library for creating a Piral instance.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"portal",
|
|
@@ -48,6 +48,17 @@
|
|
|
48
48
|
"typedoc": "typedoc --json ../../../docs/types/piral-core.json src --exclude \"src/**/*.test.*\"",
|
|
49
49
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
50
50
|
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@dbeining/react-atom": "^4.0.0",
|
|
53
|
+
"piral-base": "0.14.3-beta.3303",
|
|
54
|
+
"piral-debug-utils": "0.14.3-beta.3303"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"react": ">=16.8.0",
|
|
58
|
+
"react-dom": ">=16.8.0",
|
|
59
|
+
"react-router": ">=5.0.0",
|
|
60
|
+
"react-router-dom": ">=5.0.0"
|
|
61
|
+
},
|
|
51
62
|
"devDependencies": {
|
|
52
63
|
"@types/history": "^4.7.8",
|
|
53
64
|
"@types/react": "^17.0.0",
|
|
@@ -56,12 +67,6 @@
|
|
|
56
67
|
"react": "^17.0.1",
|
|
57
68
|
"react-dom": "^17.0.1"
|
|
58
69
|
},
|
|
59
|
-
"peerDependencies": {
|
|
60
|
-
"react": ">=16.8.0",
|
|
61
|
-
"react-dom": ">=16.8.0",
|
|
62
|
-
"react-router": ">=5.0.0",
|
|
63
|
-
"react-router-dom": ">=5.0.0"
|
|
64
|
-
},
|
|
65
70
|
"sharedDependencies": [
|
|
66
71
|
"react",
|
|
67
72
|
"react-dom",
|
|
@@ -73,10 +78,5 @@
|
|
|
73
78
|
"@libre/atom",
|
|
74
79
|
"@dbeining/react-atom"
|
|
75
80
|
],
|
|
76
|
-
"
|
|
77
|
-
"@dbeining/react-atom": "^4.0.0",
|
|
78
|
-
"piral-base": "0.14.3-beta.3299",
|
|
79
|
-
"piral-debug-utils": "0.14.3-beta.3299"
|
|
80
|
-
},
|
|
81
|
-
"gitHead": "2329c97cbca23e133c1b432ead68964f6ea411f3"
|
|
81
|
+
"gitHead": "da89ec453fdcf613a0c68ff75d53d47a052ce356"
|
|
82
82
|
}
|
package/src/actions/app.ts
CHANGED
|
@@ -36,7 +36,7 @@ export function injectPilet(ctx: GlobalStateContext, pilet: Pilet) {
|
|
|
36
36
|
modules: replaceOrAddItem(state.modules, pilet, (m) => m.name === pilet.name),
|
|
37
37
|
registry: removeNested<RegistryState, BaseRegistration>(state.registry, (m) => m.pilet === pilet.name),
|
|
38
38
|
}));
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
ctx.emit('unload-pilet', {
|
|
41
41
|
name: pilet.name,
|
|
42
42
|
});
|
package/src/helpers.test.tsx
CHANGED
|
@@ -74,7 +74,7 @@ describe('Piral-Core helpers module', () => {
|
|
|
74
74
|
const optionsConfig: PiletOptionsConfig = {
|
|
75
75
|
createApi: createMockApi,
|
|
76
76
|
availablePilets: providedPilets,
|
|
77
|
-
shareDependencies: jest.fn(deps => deps),
|
|
77
|
+
shareDependencies: jest.fn((deps) => deps),
|
|
78
78
|
context: globalContext,
|
|
79
79
|
loadPilet: jest.fn(),
|
|
80
80
|
requestPilets: jest.fn(() => Promise.resolve(providedPilets)),
|
|
@@ -114,7 +114,7 @@ describe('Piral-Core helpers module', () => {
|
|
|
114
114
|
createApi: createMockApi,
|
|
115
115
|
availablePilets: providedPilets,
|
|
116
116
|
context: globalContext,
|
|
117
|
-
shareDependencies: jest.fn(deps => deps),
|
|
117
|
+
shareDependencies: jest.fn((deps) => deps),
|
|
118
118
|
loadPilet: jest.fn(),
|
|
119
119
|
requestPilets: jest.fn(() => Promise.resolve(providedPilets)),
|
|
120
120
|
strategy: jest.fn(),
|
|
@@ -153,7 +153,7 @@ describe('Piral-Core helpers module', () => {
|
|
|
153
153
|
createApi: createMockApi,
|
|
154
154
|
availablePilets: providedPilets,
|
|
155
155
|
context: globalContext,
|
|
156
|
-
shareDependencies: jest.fn(deps => deps),
|
|
156
|
+
shareDependencies: jest.fn((deps) => deps),
|
|
157
157
|
loadPilet: jest.fn(),
|
|
158
158
|
requestPilets: requestPilets,
|
|
159
159
|
strategy: jest.fn(),
|
|
@@ -207,7 +207,7 @@ describe('Piral-Core helpers module', () => {
|
|
|
207
207
|
createApi: createMockApi,
|
|
208
208
|
availablePilets: providedPilets,
|
|
209
209
|
context: globalContext,
|
|
210
|
-
shareDependencies: jest.fn(deps => deps),
|
|
210
|
+
shareDependencies: jest.fn((deps) => deps),
|
|
211
211
|
loadPilet: jest.fn(),
|
|
212
212
|
requestPilets: requestPilets,
|
|
213
213
|
strategy: jest.fn(),
|