@insure-os/client 0.0.3
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/CDN_SETUP.md +332 -0
- package/DEPLOYMENT.md +192 -0
- package/NPM_PUBLISHING.md +379 -0
- package/README.md +299 -0
- package/dist/bundle-sizes.json +26 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1099 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +137 -0
package/package.json
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@insure-os/client",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "InsureOS JavaScript client library for quote flow integration",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public",
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"main": "dist/index.cjs",
|
|
11
|
+
"module": "dist/index.esm.js",
|
|
12
|
+
"browser": "dist/index.umd.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"DEPLOYMENT.md",
|
|
19
|
+
"CDN_SETUP.md",
|
|
20
|
+
"NPM_PUBLISHING.md"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.esm.js",
|
|
26
|
+
"require": "./dist/index.cjs",
|
|
27
|
+
"browser": "./dist/index.umd.js",
|
|
28
|
+
"default": "./dist/index.esm.js"
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"insurance",
|
|
34
|
+
"quote",
|
|
35
|
+
"client",
|
|
36
|
+
"javascript",
|
|
37
|
+
"typescript",
|
|
38
|
+
"insure-os",
|
|
39
|
+
"embedded",
|
|
40
|
+
"widget",
|
|
41
|
+
"integration"
|
|
42
|
+
],
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"author": "InsureOS Team",
|
|
45
|
+
"homepage": "https://github.com/insure-os/insureos#readme",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://github.com/insure-os/insureos.git",
|
|
49
|
+
"directory": "packages/client"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/insure-os/insureos/issues"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "rollup -c",
|
|
56
|
+
"build:prod": "NODE_ENV=production rollup -c",
|
|
57
|
+
"build:analyze": "NODE_ENV=production ANALYZE=true rollup -c",
|
|
58
|
+
"dev": "rollup -c -w",
|
|
59
|
+
"clean": "rm -rf dist",
|
|
60
|
+
"prebuild": "npm run clean",
|
|
61
|
+
"lint": "eslint src --max-warnings 0",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"test:run": "vitest run",
|
|
64
|
+
"test:watch": "vitest",
|
|
65
|
+
"test:performance": "vitest run --reporter=verbose src/__tests__/performance.test.ts",
|
|
66
|
+
"test:http": "vitest run src/__tests__/http.test.ts",
|
|
67
|
+
"test:storage": "vitest run src/__tests__/storage.test.ts",
|
|
68
|
+
"test:polyfills": "vitest run src/__tests__/polyfills.test.ts",
|
|
69
|
+
"benchmark": "vitest bench",
|
|
70
|
+
"benchmark:detailed": "vitest bench --reporter=verbose",
|
|
71
|
+
"typecheck": "tsc --noEmit",
|
|
72
|
+
"size": "ls -lah dist/ | grep -E '\\.(js|cjs)$' && echo 'Bundle sizes (requirement: <50KB each)'",
|
|
73
|
+
"size:detailed": "npm run build:prod && npm run size && echo '\\nGzipped sizes:' && gzip -c dist/index.esm.js | wc -c | awk '{print \"ESM: \" $1 \" bytes\"}' && gzip -c dist/index.umd.js | wc -c | awk '{print \"UMD: \" $1 \" bytes\"}' && gzip -c dist/index.cjs | wc -c | awk '{print \"CJS: \" $1 \" bytes\"}'",
|
|
74
|
+
"size:check": "npm run build:prod && npm run size:validate",
|
|
75
|
+
"size:validate": "node -e \"const fs=require('fs'); const maxSize=50*1024; ['dist/index.esm.js','dist/index.umd.js','dist/index.cjs'].forEach(f=>{const size=fs.statSync(f).size; console.log(f+': '+size+' bytes'); if(size>maxSize) throw new Error(f+' exceeds 50KB limit')})\"",
|
|
76
|
+
"perf:monitor": "node -e \"const { PerformanceMonitor } = require('./dist/index.cjs'); PerformanceMonitor.startMeasurement('test'); setTimeout(() => console.log('Test measurement:', PerformanceMonitor.endMeasurement('test'), 'ms'), 100);\"",
|
|
77
|
+
"perf:memory": "node -e \"const { PerformanceMonitor } = require('./dist/index.cjs'); console.log('Memory usage:', PerformanceMonitor.measureMemoryUsage(), 'bytes');\"",
|
|
78
|
+
"perf:all": "npm run perf:monitor && npm run perf:memory && npm run benchmark",
|
|
79
|
+
"ci:performance": "node scripts/ci-performance-check.js",
|
|
80
|
+
"ci:bundle-check": "node scripts/ci-performance-check.js --bundle-only",
|
|
81
|
+
"ci:test-performance": "node scripts/ci-performance-check.js --test-only",
|
|
82
|
+
"ci:benchmark": "node scripts/ci-performance-check.js --bench-only",
|
|
83
|
+
"size:report": "npm run build:prod && cat dist/bundle-sizes.json",
|
|
84
|
+
"size:ci": "npm run build:prod && npm run ci:bundle-check",
|
|
85
|
+
"publish:cdn": "node scripts/publish-to-cdn.js",
|
|
86
|
+
"publish:npm": "npm publish",
|
|
87
|
+
"publish:npm:dry": "npm publish --dry-run",
|
|
88
|
+
"prepublishOnly": "npm run build:prod",
|
|
89
|
+
"release:cdn": "npm run build:prod && npm run publish:cdn",
|
|
90
|
+
"release:npm": "npm run build:prod && npm run publish:npm",
|
|
91
|
+
"release:all": "npm run build:prod && npm run publish:cdn && npm run publish:npm",
|
|
92
|
+
"release": "npm version patch && npm run release:all"
|
|
93
|
+
},
|
|
94
|
+
"devDependencies": {
|
|
95
|
+
"@aws-sdk/client-s3": "^3.901.0",
|
|
96
|
+
"@babel/core": "^7.28.0",
|
|
97
|
+
"@babel/plugin-transform-react-jsx": "^7.27.1",
|
|
98
|
+
"@babel/preset-env": "^7.28.0",
|
|
99
|
+
"@insure-os/conditions": "workspace:*",
|
|
100
|
+
"@insure-os/eslint-config": "workspace:*",
|
|
101
|
+
"@insure-os/tailwind-config": "workspace:*",
|
|
102
|
+
"@insure-os/types": "workspace:*",
|
|
103
|
+
"@insure-os/typescript-config": "workspace:*",
|
|
104
|
+
"@preact/compat": "^18.3.1",
|
|
105
|
+
"@preact/preset-vite": "^2.10.2",
|
|
106
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
107
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
108
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
109
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
110
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
111
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
112
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
113
|
+
"@tailwindcss/cli": "^4.1.5",
|
|
114
|
+
"@types/luxon": "^3.7.1",
|
|
115
|
+
"@types/node": "^22.13.5",
|
|
116
|
+
"@vitest/ui": "^2.1.8",
|
|
117
|
+
"concurrently": "^9.0.1",
|
|
118
|
+
"dotenv": "^17.2.3",
|
|
119
|
+
"eslint": "^9.30.0",
|
|
120
|
+
"jsdom": "^25.0.1",
|
|
121
|
+
"rollup": "^4.45.1",
|
|
122
|
+
"rollup-plugin-bundle-size": "^1.0.3",
|
|
123
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
124
|
+
"tsc-alias": "^1.8.16",
|
|
125
|
+
"typescript": "5.8.2",
|
|
126
|
+
"vite": "^7.0.6",
|
|
127
|
+
"vitest": "^2.1.8"
|
|
128
|
+
},
|
|
129
|
+
"dependencies": {
|
|
130
|
+
"@sentry/browser": "^10.17.0",
|
|
131
|
+
"classnames": "^2.5.1",
|
|
132
|
+
"csstype": "^3.1.3",
|
|
133
|
+
"luxon": "^3.7.1",
|
|
134
|
+
"preact": "^10.27.0",
|
|
135
|
+
"react-hook-form": "^7.61.1"
|
|
136
|
+
}
|
|
137
|
+
}
|