react-hooks-global-states 7.0.16 → 7.0.17
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/bundle.js +1 -1
- package/package.json +1 -1
- package/webpack.config.js +27 -28
package/bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("./GlobalStore.js"),require("./GlobalStoreAbstract.js"),require("./createContext.js"),require("./createCustomGlobalState.js"),require("./createGlobalState.js"),require("./
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("./GlobalStore.js"),require("./GlobalStoreAbstract.js"),require("./createContext.js"),require("./createCustomGlobalState.js"),require("./createGlobalState.js"),require("./debounce.js"),require("./generateStackHash.js"),require("./isRecord.js"),require("./shallowCompare.js"),require("./throwWrongKeyOnActionCollectionConfig.js"),require("./uniqueId.js"),require("./uniqueSymbol.js"),require("./useStableState.js")):"function"==typeof define&&define.amd?define(["./GlobalStore.js","./GlobalStoreAbstract.js","./createContext.js","./createCustomGlobalState.js","./createGlobalState.js","./debounce.js","./generateStackHash.js","./isRecord.js","./shallowCompare.js","./throwWrongKeyOnActionCollectionConfig.js","./uniqueId.js","./uniqueSymbol.js","./useStableState.js"],t):"object"==typeof exports?exports["react-hooks-global-states"]=t(require("./GlobalStore.js"),require("./GlobalStoreAbstract.js"),require("./createContext.js"),require("./createCustomGlobalState.js"),require("./createGlobalState.js"),require("./debounce.js"),require("./generateStackHash.js"),require("./isRecord.js"),require("./shallowCompare.js"),require("./throwWrongKeyOnActionCollectionConfig.js"),require("./uniqueId.js"),require("./uniqueSymbol.js"),require("./useStableState.js")):e["react-hooks-global-states"]=t(e["./GlobalStore.js"],e["./GlobalStoreAbstract.js"],e["./createContext.js"],e["./createCustomGlobalState.js"],e["./createGlobalState.js"],e["./debounce.js"],e["./generateStackHash.js"],e["./isRecord.js"],e["./shallowCompare.js"],e["./throwWrongKeyOnActionCollectionConfig.js"],e["./uniqueId.js"],e["./uniqueSymbol.js"],e["./useStableState.js"])}(this,((e,t,r,o,a,n,s,u,l,i,c,b,j)=>(()=>{"use strict";var S={352:t=>{t.exports=e},674:e=>{e.exports=t},104:e=>{e.exports=r},842:e=>{e.exports=o},963:e=>{e.exports=a},433:e=>{e.exports=n},109:e=>{e.exports=s},664:e=>{e.exports=u},682:e=>{e.exports=l},286:e=>{e.exports=i},865:e=>{e.exports=c},69:e=>{e.exports=b},503:e=>{e.exports=j}},p={};function f(e){var t=p[e];if(void 0!==t)return t.exports;var r=p[e]={exports:{}};return S[e](r,r.exports,f),r.exports}var d={};return(()=>{var e=d;Object.defineProperty(e,"__esModule",{value:!0}),e.generateStackHash=e.createContext=e.useStableState=e.uniqueSymbol=e.isRecord=e.throwWrongKeyOnActionCollectionConfig=e.uniqueId=e.debounce=e.shallowCompare=e.createCustomGlobalState=e.createGlobalState=e.GlobalStoreAbstract=e.GlobalStore=void 0;var t=f(352);Object.defineProperty(e,"GlobalStore",{enumerable:!0,get:function(){return t.GlobalStore}});var r=f(674);Object.defineProperty(e,"GlobalStoreAbstract",{enumerable:!0,get:function(){return r.GlobalStoreAbstract}});var o=f(963);Object.defineProperty(e,"createGlobalState",{enumerable:!0,get:function(){return o.createGlobalState}});var a=f(842);Object.defineProperty(e,"createCustomGlobalState",{enumerable:!0,get:function(){return a.createCustomGlobalState}});var n=f(682);Object.defineProperty(e,"shallowCompare",{enumerable:!0,get:function(){return n.shallowCompare}});var s=f(433);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return s.debounce}});var u=f(865);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return u.uniqueId}});var l=f(286);Object.defineProperty(e,"throwWrongKeyOnActionCollectionConfig",{enumerable:!0,get:function(){return l.throwWrongKeyOnActionCollectionConfig}});var i=f(664);Object.defineProperty(e,"isRecord",{enumerable:!0,get:function(){return i.isRecord}});var c=f(69);Object.defineProperty(e,"uniqueSymbol",{enumerable:!0,get:function(){return c.uniqueSymbol}});var b=f(503);Object.defineProperty(e,"useStableState",{enumerable:!0,get:function(){return b.useStableState}});var j=f(104);Object.defineProperty(e,"createContext",{enumerable:!0,get:function(){return j.createContext}});var S=f(109);Object.defineProperty(e,"generateStackHash",{enumerable:!0,get:function(){return S.generateStackHash}})})(),d})()));
|
package/package.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -1,27 +1,39 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
3
3
|
|
|
4
|
+
const individualEntries = {
|
|
5
|
+
createContext: './src/createContext.ts',
|
|
6
|
+
GlobalStore: './src/GlobalStore.ts',
|
|
7
|
+
GlobalStoreAbstract: './src/GlobalStoreAbstract.ts',
|
|
8
|
+
createCustomGlobalState: './src/createCustomGlobalState.ts',
|
|
9
|
+
createGlobalState: './src/createGlobalState.ts',
|
|
10
|
+
types: './src/types.ts',
|
|
11
|
+
debounce: './src/debounce.ts',
|
|
12
|
+
isRecord: './src/isRecord.ts',
|
|
13
|
+
shallowCompare: './src/shallowCompare.ts',
|
|
14
|
+
throwWrongKeyOnActionCollectionConfig: './src/throwWrongKeyOnActionCollectionConfig.ts',
|
|
15
|
+
uniqueId: './src/uniqueId.ts',
|
|
16
|
+
uniqueSymbol: './src/uniqueSymbol.ts',
|
|
17
|
+
useStableState: './src/useStableState.ts',
|
|
18
|
+
generateStackHash: './src/generateStackHash.ts',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const getExternalsForEntries = () => {
|
|
22
|
+
return Object.keys(individualEntries).reduce((acc, key) => {
|
|
23
|
+
acc[`./${key}`] = `./${key}.js`;
|
|
24
|
+
return acc;
|
|
25
|
+
}, {});
|
|
26
|
+
};
|
|
27
|
+
|
|
4
28
|
module.exports = {
|
|
5
29
|
mode: 'production',
|
|
6
30
|
entry: {
|
|
7
31
|
bundle: './src/index.ts',
|
|
8
|
-
|
|
9
|
-
GlobalStore: './src/GlobalStore.ts',
|
|
10
|
-
GlobalStoreAbstract: './src/GlobalStoreAbstract.ts',
|
|
11
|
-
createCustomGlobalState: './src/createCustomGlobalState.ts',
|
|
12
|
-
createGlobalState: './src/createGlobalState.ts',
|
|
13
|
-
types: './src/types.ts',
|
|
14
|
-
debounce: './src/debounce.ts',
|
|
15
|
-
isRecord: './src/isRecord.ts',
|
|
16
|
-
shallowCompare: './src/shallowCompare.ts',
|
|
17
|
-
throwWrongKeyOnActionCollectionConfig: './src/throwWrongKeyOnActionCollectionConfig.ts',
|
|
18
|
-
uniqueId: './src/uniqueId.ts',
|
|
19
|
-
uniqueSymbol: './src/uniqueSymbol.ts',
|
|
20
|
-
useStableState: './src/useStableState.ts',
|
|
21
|
-
generateStackHash: './src/generateStackHash.ts',
|
|
32
|
+
...individualEntries,
|
|
22
33
|
},
|
|
23
34
|
externals: {
|
|
24
35
|
react: 'react',
|
|
36
|
+
|
|
25
37
|
'json-storage-formatter': 'json-storage-formatter',
|
|
26
38
|
'json-storage-formatter/clone': 'json-storage-formatter/clone',
|
|
27
39
|
'json-storage-formatter/isNil': 'json-storage-formatter/isNil',
|
|
@@ -36,20 +48,7 @@ module.exports = {
|
|
|
36
48
|
'json-storage-formatter/formatFromStore': 'json-storage-formatter/formatFromStore',
|
|
37
49
|
'json-storage-formatter/formatToStore': 'json-storage-formatter/formatToStore',
|
|
38
50
|
|
|
39
|
-
|
|
40
|
-
'./GlobalStore': './GlobalStore.js',
|
|
41
|
-
'./GlobalStoreAbstract': './GlobalStoreAbstract.js',
|
|
42
|
-
'./createCustomGlobalState': './createCustomGlobalState.js',
|
|
43
|
-
'./createGlobalState': './createGlobalState.js',
|
|
44
|
-
'./types': './types.js',
|
|
45
|
-
'./debounce': './src/debounce.ts',
|
|
46
|
-
'./isRecord': './isRecord.js',
|
|
47
|
-
'./shallowCompare': './shallowCompare.js',
|
|
48
|
-
'./throwWrongKeyOnActionCollectionConfig': './throwWrongKeyOnActionCollectionConfig.js',
|
|
49
|
-
'./uniqueId': './uniqueId.js',
|
|
50
|
-
'./uniqueSymbol': './uniqueSymbol.js',
|
|
51
|
-
'./useStableState': './useStableState.js',
|
|
52
|
-
'./generateStackHash': './generateStackHash.js',
|
|
51
|
+
...getExternalsForEntries(),
|
|
53
52
|
},
|
|
54
53
|
output: {
|
|
55
54
|
path: path.resolve(__dirname),
|