@flagship.io/react-sdk 3.0.6-alpha.0 → 3.0.7
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/README.md +27 -25
- package/dist/Flag.js +32 -40
- package/dist/FlagshipContext.d.ts +2 -2
- package/dist/FlagshipContext.js +60 -73
- package/dist/FlagshipHooks.js +100 -180
- package/dist/constants.js +4 -4
- package/dist/index.browser.js +37 -10572
- package/dist/index.browser.js.map +1 -1
- package/dist/index.node.js +36 -39
- package/dist/index.node.js.map +1 -1
- package/dist/utils.js +18 -21
- package/package.json +100 -99
package/package.json
CHANGED
|
@@ -1,100 +1,101 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@flagship.io/react-sdk",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "Flagship REACT SDK",
|
|
5
|
-
"main": "dist/index.node.js",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"react
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"@babel/
|
|
36
|
-
"@babel/
|
|
37
|
-
"@babel/preset-
|
|
38
|
-
"@babel/preset-
|
|
39
|
-
"@
|
|
40
|
-
"@testing-library/
|
|
41
|
-
"@testing-library/react
|
|
42
|
-
"@testing-library/
|
|
43
|
-
"@
|
|
44
|
-
"@types/
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/react
|
|
47
|
-
"@
|
|
48
|
-
"@typescript-eslint/
|
|
49
|
-
"
|
|
50
|
-
"babel-
|
|
51
|
-
"
|
|
52
|
-
"eslint
|
|
53
|
-
"eslint-
|
|
54
|
-
"eslint-plugin-
|
|
55
|
-
"eslint-plugin-
|
|
56
|
-
"eslint-plugin-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"react
|
|
60
|
-
"react-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"ts-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"webpack
|
|
68
|
-
"webpack-
|
|
69
|
-
"webpack-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"build:
|
|
78
|
-
"build:
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"react-app
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
"not
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"last 1
|
|
97
|
-
"last 1
|
|
98
|
-
|
|
99
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@flagship.io/react-sdk",
|
|
3
|
+
"version": "3.0.7",
|
|
4
|
+
"description": "Flagship REACT SDK",
|
|
5
|
+
"main": "dist/index.node.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"react-native": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**/*",
|
|
11
|
+
"CONTRIBUTING.md",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@flagship.io/js-sdk": "^3.0.10",
|
|
16
|
+
"core-js": "^3.18.1",
|
|
17
|
+
"encoding": "^0.1.13"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"react": ">=16.8.0",
|
|
21
|
+
"react-dom": ">=16.8.0"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/flagship-io/flagship-react-sdk",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/flagship-io/flagship-react-sdk.git"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"flagship",
|
|
30
|
+
"abtasty",
|
|
31
|
+
"react",
|
|
32
|
+
"sdk"
|
|
33
|
+
],
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@babel/cli": "^7.14.6",
|
|
36
|
+
"@babel/core": "^7.14.6",
|
|
37
|
+
"@babel/preset-env": "^7.14.7",
|
|
38
|
+
"@babel/preset-react": "^7.14.5",
|
|
39
|
+
"@babel/preset-typescript": "^7.14.5",
|
|
40
|
+
"@testing-library/jest-dom": "^5.11.4",
|
|
41
|
+
"@testing-library/react": "^11.1.0",
|
|
42
|
+
"@testing-library/react-hooks": "^7.0.1",
|
|
43
|
+
"@testing-library/user-event": "^12.1.10",
|
|
44
|
+
"@types/jest": "^26.0.15",
|
|
45
|
+
"@types/node": "^12.0.0",
|
|
46
|
+
"@types/react": "^17.0.0",
|
|
47
|
+
"@types/react-dom": "^17.0.0",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^4.32.0",
|
|
49
|
+
"@typescript-eslint/parser": "^4.32.0",
|
|
50
|
+
"babel-loader": "^8.2.2",
|
|
51
|
+
"babel-plugin-add-module-exports": "^1.0.4",
|
|
52
|
+
"eslint": "^7.32.0",
|
|
53
|
+
"eslint-config-standard": "^16.0.3",
|
|
54
|
+
"eslint-plugin-import": "^2.24.2",
|
|
55
|
+
"eslint-plugin-node": "^11.1.0",
|
|
56
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
57
|
+
"eslint-plugin-react": "^7.26.0",
|
|
58
|
+
"jest": "^27.0.6",
|
|
59
|
+
"react": "^17.0.2",
|
|
60
|
+
"react-dom": "^17.0.2",
|
|
61
|
+
"react-test-renderer": "^17.0.2",
|
|
62
|
+
"regenerator-runtime": "^0.13.9",
|
|
63
|
+
"terser-webpack-plugin": "^5.2.4",
|
|
64
|
+
"ts-jest": "^27.0.3",
|
|
65
|
+
"ts-loader": "^9.2.3",
|
|
66
|
+
"typescript": "^4.4.3",
|
|
67
|
+
"webpack": "^5.44.0",
|
|
68
|
+
"webpack-cli": "^4.7.2",
|
|
69
|
+
"webpack-merge": "^5.8.0",
|
|
70
|
+
"webpack-node-externals": "^3.0.0"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"dev": "tsc --watch",
|
|
74
|
+
"test": "jest",
|
|
75
|
+
"lint": "eslint . --ext .tsx",
|
|
76
|
+
"clean": "rm -rf dist && mkdir dist",
|
|
77
|
+
"build:esm": "BABEL_ENV=esm babel src --extensions '.ts,.tsx' --out-dir dist/esm --copy-files",
|
|
78
|
+
"build:types": "tsc",
|
|
79
|
+
"build:prod": "NODE_ENV=production npm run build",
|
|
80
|
+
"prebuild": "npm run clean && tsc",
|
|
81
|
+
"build": "webpack"
|
|
82
|
+
},
|
|
83
|
+
"eslintConfig": {
|
|
84
|
+
"extends": [
|
|
85
|
+
"react-app",
|
|
86
|
+
"react-app/jest"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"browserslist": {
|
|
90
|
+
"production": [
|
|
91
|
+
">0.2%",
|
|
92
|
+
"not dead",
|
|
93
|
+
"not op_mini all"
|
|
94
|
+
],
|
|
95
|
+
"development": [
|
|
96
|
+
"last 1 chrome version",
|
|
97
|
+
"last 1 firefox version",
|
|
98
|
+
"last 1 safari version"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
100
101
|
}
|