@benji-money/connect-sdk 1.0.8 → 1.0.9

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 CHANGED
@@ -40,13 +40,14 @@ const sdk = new ConnectSDK({
40
40
 
41
41
  // type: BenjiConnectEventType, metadata: BenjiConnectMetadata
42
42
  onEvent: (type, metadata) => {
43
- console.log("📨 Benji Connect onEvent \(type)");
43
+ console.log("📨 Benji Connect onEvent (type)");
44
44
  },
45
45
  });
46
46
 
47
47
  // Open the authentication flow UI
48
48
  sdk.open();
49
49
  ```
50
+
50
51
  Demo example [here](https://github.com/Benji-money/benji-connect-examples/tree/main/web/esm).
51
52
 
52
53
  ### UMD (Script Tag)
@@ -99,6 +100,21 @@ npm install
99
100
  npm run build
100
101
  ```
101
102
 
103
+ ### Testing locally
104
+
105
+ To test the SDK in another app without publishing to npm:
106
+
107
+ 1. In this repo, run: `npm run local:publish`
108
+ This builds and runs `npm pack`, producing a `.tgz` file (e.g. `benji-money-connect-sdk-1.0.8.tgz`).
109
+
110
+ 2. In your app, install the tarball:
111
+ ```bash
112
+ npm install /path/to/benji-connect-sdk/benji-money-connect-sdk-1.0.8.tgz
113
+ ```
114
+ Or add to your app’s `package.json`: `"@benji-money/connect-sdk": "file:../path/to/benji-money-connect-sdk-1.0.8.tgz"` then run `npm install`.
115
+
116
+ After SDK changes, run `npm run local:publish` again and reinstall the new `.tgz` in your app (use `--force` if npm uses a cached copy).
117
+
102
118
  ## License
103
119
 
104
120
  License
@@ -75,7 +75,7 @@ var ConnectSDK = (() => {
75
75
  // src/utils/config.ts
76
76
  var buildContext = () => ({
77
77
  namespace: "benji-connect-sdk" ? "benji-connect-sdk" : "benji-connect-sdk",
78
- version: "1.0.8" ? String("1.0.8") : "0.0.0"
78
+ version: "1.0.9" ? String("1.0.9") : "0.0.0"
79
79
  });
80
80
  function isBenjiConnectEnvironment(environment) {
81
81
  return environment === "development" /* DEVELOPMENT */ || environment === "sandbox" /* SANDBOX */ || environment === "production" /* PRODUCTION */;
package/dist/index.cjs CHANGED
@@ -113,7 +113,7 @@ function getEnvironment() {
113
113
  // src/utils/config.ts
114
114
  var buildContext = () => ({
115
115
  namespace: "benji-connect-sdk" ? "benji-connect-sdk" : "benji-connect-sdk",
116
- version: "1.0.8" ? String("1.0.8") : "0.0.0"
116
+ version: "1.0.9" ? String("1.0.9") : "0.0.0"
117
117
  });
118
118
  function isBenjiConnectEnvironment(environment) {
119
119
  return environment === "development" /* DEVELOPMENT */ || environment === "sandbox" /* SANDBOX */ || environment === "production" /* PRODUCTION */;
package/dist/index.js CHANGED
@@ -87,7 +87,7 @@ function getEnvironment() {
87
87
  // src/utils/config.ts
88
88
  var buildContext = () => ({
89
89
  namespace: "benji-connect-sdk" ? "benji-connect-sdk" : "benji-connect-sdk",
90
- version: "1.0.8" ? String("1.0.8") : "0.0.0"
90
+ version: "1.0.9" ? String("1.0.9") : "0.0.0"
91
91
  });
92
92
  function isBenjiConnectEnvironment(environment) {
93
93
  return environment === "development" /* DEVELOPMENT */ || environment === "sandbox" /* SANDBOX */ || environment === "production" /* PRODUCTION */;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benji-money/connect-sdk",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Benji Connect SDK for authentication and verification",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -25,11 +25,7 @@
25
25
  "build": "tsup --dts",
26
26
  "dev": "tsup --watch",
27
27
  "prepack": "npm run build",
28
- "yalc:publish": "npm run build && yalc publish",
29
- "yalc:push": "npm run build && yalc push --changed",
30
- "yalc:watch": "run-p watch:build watch:push",
31
- "watch:build": "tsup --watch",
32
- "watch:push": "yalc push --changed"
28
+ "local:publish": "npm run build && npm pack"
33
29
  },
34
30
  "publishConfig": {
35
31
  "access": "public"
@@ -50,12 +46,11 @@
50
46
  "@changesets/cli": "^2.29.7",
51
47
  "rimraf": "^6.1.3",
52
48
  "tsup": "^8.5.0",
53
- "typescript": "^5.9.3",
54
- "yalc": "^1.0.0-pre.53"
49
+ "typescript": "^5.9.3"
55
50
  },
56
- "// 1) rimraf → glob → minimatch": "CVE-2026-26996 (ReDos): Scoped override forces minimatch ^10.2.1 for rimraf->glob only (dev). Blanket override breaks yalc/npm-packlist (minimatch v3 API vs v10 named exports). Dev-deps only; production bundle does not use minimatch.",
51
+ "// 1) rimraf → glob → minimatch": "CVE-2026-26996 (ReDos): Scoped override forces minimatch ^10.2.1 for rimraf->glob only (dev). Blanket override breaks npm-packlist (minimatch v3 API vs v10).",
57
52
  "// 2) tsup → rollup": "CVE-2026-27606 (GHSA-mw96-cpmx-2vgc): Arbitrary file write via path traversal. >=4.59.0 fixes. Transitive via tsup.",
58
- "// 3) tsup → sucrase → glob": "CVE-2025-64756 (GHSA-5j98-mcp5-4vw2): glob CLI command injection via -c/--cmd. >=10.5.0 fixes. Scoped to sucrase only; blanket would break yalc/npm-packlist (glob 7.x).",
53
+ "// 3) tsup → sucrase → glob": "CVE-2025-64756 (GHSA-5j98-mcp5-4vw2): glob CLI command injection via -c/--cmd. >=10.5.0 fixes. Scoped to sucrase only; blanket would break npm-packlist (glob 7.x).",
59
54
  "overrides": {
60
55
  "rimraf": {
61
56
  "glob": {
@@ -75,10 +70,5 @@
75
70
  "homepage": "https://github.com/benji-money/benji-connect-sdk#readme",
76
71
  "benji": {
77
72
  "namespace": "benji-connect-sdk"
78
- },
79
- "dependencies": {
80
- "@bugsnag/browser-performance": "^3.0.0",
81
- "@bugsnag/js": "^8.6.0",
82
- "mixpanel-browser": "^2.71.1"
83
73
  }
84
74
  }