-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
195 lines (195 loc) · 7.06 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
"name": "@configcat/sdk",
"version": "0.1.1",
"description": "ConfigCat is a configuration as a service that lets you manage your features and configurations without actually deploying new code.",
"main": "lib/cjs/node/index.root.js",
"types": "lib/cjs/node/index.root.d.ts",
"browser": "lib/cjs/browser/index.root.js",
"exports": {
".": {
"types": {
"bun": "./lib/esm/bun/index.d.ts",
"deno": "./lib/esm/deno/index.d.ts",
"workerd": "./lib/esm/cloudflare-worker/index.d.ts",
"browser": "./lib/esm/browser/index.root.d.ts",
"import": "./lib/esm/node/index.root.d.ts",
"require": "./lib/cjs/node/index.root.d.ts"
},
"bun": "./lib/esm/bun/index.js",
"deno": "./lib/esm/deno/index.js",
"workerd": "./lib/esm/cloudflare-worker/index.js",
"browser": "./lib/esm/browser/index.root.js",
"import": "./lib/esm/node/index.root.js",
"require": "./lib/cjs/node/index.root.js"
},
"./browser": {
"types": "./lib/esm/browser/index.d.ts",
"import": "./lib/esm/browser/index.js"
},
"./bun": {
"types": "./lib/esm/bun/index.d.ts",
"import": "./lib/esm/bun/index.js"
},
"./chromium-extension": {
"types": "./lib/esm/chromium-extension/index.d.ts",
"import": "./lib/esm/chromium-extension/index.js"
},
"./cloudflare-worker": {
"types": "./lib/esm/cloudflare-worker/index.d.ts",
"import": "./lib/esm/cloudflare-worker/index.js"
},
"./deno": {
"types": "./lib/esm/deno/index.d.ts",
"deno": "./lib/esm/deno/index.js"
},
"./node": {
"types": {
"import": "./lib/esm/node/index.d.ts",
"require": "./lib/cjs/node/index.d.ts"
},
"import": "./lib/esm/node/index.js",
"require": "./lib/cjs/node/index.js"
},
"./lib/*": "./lib/*",
"./package.json": "./package.json"
},
"imports": {
"#lib/browser": {
"import": "./lib/esm/browser/index.js"
},
"#lib/bun": {
"import": "./lib/esm/bun/index.js"
},
"#lib/chromium-extension": {
"import": "./lib/esm/chromium-extension/index.js"
},
"#lib/cloudflare-worker": {
"import": "./lib/esm/cloudflare-worker/index.js"
},
"#lib/node": {
"require": "./lib/cjs/node/index.js"
},
"#lib": {
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js"
},
"#lib/*": {
"import": "./lib/esm/*.js",
"require": "./lib/cjs/*.js"
}
},
"scripts": {
"build": "gulp",
"check:ts-compat": "npm --prefix extra-checks/ts-compat-check run check",
"coverage:browser": "cross-env TEST_BROWSER_COVERAGE=true npm run test:browser:chrome",
"coverage:chromium-extension": "cross-env TEST_CHROMIUM_EXTENSION_COVERAGE=true npm run test:chromium-extension:chrome",
"coverage:node": "nyc --include 'src/**' --include 'lib/cjs/**' --exclude 'lib/cjs/**/*.d.ts' --source-map --relative=true --report-dir coverage/node npm run test:node",
"coverage": "npm run coverage:node && npm run coverage:browser && npm run coverage:chromium-extension && lcov-result-merger './coverage/*/**/lcov.info' './coverage/lcov.info'",
"lint:fix": "eslint . --fix",
"lint": "eslint .",
"prepare": "npm run build",
"pretest": "npm run build",
"test:browser:chrome": "karma start karma.browser.chrome.conf.js",
"test:browser:chromium": "karma start karma.browser.chromium.conf.js",
"test:browser:firefox": "karma start karma.browser.firefox.conf.js",
"test:bun": "bun --tsconfig-override ./tsconfig.mocha.bun.json ./node_modules/mocha/bin/mocha.js test/bun/index.ts --timeout 30000",
"test:chromium-extension:chrome": "karma start karma.chromium-extension.chrome.conf.js",
"test:chromium-extension:chromium": "karma start karma.chromium-extension.chromium.conf.js",
"test:cloudflare-worker": "webpack -c webpack.workerd.cloudflare-worker.config.js && concurrently --raw --success command-1 --kill-others \"node test/cloudflare-worker/test-run-helper/server.mjs\" \"workerd test workerd.config.capnp\"",
"test:deno": "node deno.import-map.generator.js && node deno.set-env.js deno run $DENO_NODE_MODULES_DIR -A test/deno/index.ts --timeout 30000",
"test:node": "cross-env NODE_EXTRA_CA_CERTS=./test/node/cert/testCA.pem TS_NODE_PROJECT=./tsconfig.mocha.node.json node --expose-gc --require ts-node/register node_modules/mocha/bin/_mocha 'test/node/index.ts' --exit --timeout 30000",
"test": "npm run check:ts-compat && npm run test:browser:chrome && npm run test:chromium-extension:chrome && npm run test:cloudflare-worker && npm run test:bun && npm run test:deno && npm run test:node"
},
"keywords": [
"configcat",
"config",
"configuration",
"remote configuration",
"configcat client",
"feature flags",
"feature toggle",
"feature switch",
"canary release",
"soft launch",
"release strategy"
],
"author": "ConfigCat",
"license": "MIT",
"homepage": "https://configcat.com",
"dependencies": {
"tunnel": "^0.0.6"
},
"devDependencies": {
"@babel/preset-env": "^7.20.2",
"@cloudflare/workers-types": "^4.20241106.0",
"@stylistic/eslint-plugin-js": "^2.12.1",
"@stylistic/eslint-plugin-ts": "^2.12.1",
"@types/bun": "^1.1.13",
"@types/chai": "~4.3.4",
"@types/chrome": "~0.0.270",
"@types/deno": "^2.0.0",
"@types/mocha": "~10.0.1",
"@types/node": "~18.19.7",
"@types/tunnel": "~0.0.7",
"@typescript-eslint/parser": "^8.20.0",
"babel-loader": "^9.1.0",
"chai": "^4.3.7",
"concurrently": "^9.1.0",
"core-js": "^3.38.1",
"coverage-istanbul-loader": "^3.0.5",
"cross-env": "^7.0.3",
"eslint": "^8.34.0",
"eslint-plugin-import": "^2.31.0",
"fetch-mock": "^11.1.5",
"glob": "^10.4.5",
"globals": "^15.14.0",
"gulp": "^5.0.0",
"karma": "^6.4.4",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.1",
"karma-cli": "^2.0.0",
"karma-coverage": "^2.2.0",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-sourcemap-loader": "^0.3.8",
"karma-webpack": "5.0.0",
"lcov-result-merger": "^5.0.1",
"mocha": "^10.2.0",
"mock-xmlhttprequest": "^8.1.0",
"mockttp": "^3.15.3",
"moq.ts": "^7.4.1",
"nyc": "^15.0.0",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"tslib": "^2.7.0",
"typescript": "^5.5.4",
"typescript-eslint": "^8.19.1",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4",
"workerd": "^1.20241112.0"
},
"overrides": {
"cookie": "0.7.2"
},
"repository": {
"type": "git",
"url": "https://github.com/configcat/js-unified-sdk"
},
"nyc": {
"extension": [
".ts"
],
"reporter": [
"text-summary",
"json",
"lcov"
],
"all": true,
"include": [
"src"
]
},
"sideEffects": false
}