@superwall/paywalls-react 0.2.8 → 0.3.0

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.
Files changed (2) hide show
  1. package/dist/provider.js +6 -1
  2. package/package.json +3 -3
package/dist/provider.js CHANGED
@@ -31,7 +31,12 @@ const acquire = (apiKey, opts) => {
31
31
  const existing = registry.get(apiKey);
32
32
  if (existing)
33
33
  return existing;
34
- const sw = createSuperwall(opts);
34
+ // Identify the wrapper in `X-Platform-Wrapper`; an explicit caller value
35
+ // still wins.
36
+ const sw = createSuperwall({
37
+ ...opts,
38
+ options: { platformWrapper: "React", ...opts.options },
39
+ });
35
40
  registry.set(apiKey, sw);
36
41
  return sw;
37
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superwall/paywalls-react",
3
- "version": "0.2.8",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,10 +34,10 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": "^19.0.0",
37
- "@superwall/paywalls-js": "^0.2.8"
37
+ "@superwall/paywalls-js": "^0.3.0"
38
38
  },
39
39
  "dependencies": {
40
- "@superwall/paywalls-js": "^0.2.8"
40
+ "@superwall/paywalls-js": "^0.3.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@happy-dom/global-registrator": "^20.0.0",