smartcomply-web-sdk 1.0.74 → 1.0.75
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 +25 -15
- package/dist/client/Config.js +1 -1
- package/dist/client/Config.js.map +1 -1
- package/dist/esm/client/Config.js +1 -1
- package/dist/esm/client/Config.js.map +1 -1
- package/dist/smartcomply.browser.js +1 -1
- package/dist/smartcomply.browser.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,22 +59,10 @@ Exactly which ID types are available depends on what's enabled for your account
|
|
|
59
59
|
|
|
60
60
|
## Install
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
npm install smartcomply-web-sdk
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
> `npm install` resolves to the latest version **at the moment you run it**, then locks that exact version in `package-lock.json` — it will not silently update itself afterward. To pick up new fixes/releases later, run `npm update smartcomply-web-sdk` (respects your `package.json` version range) or `npm install smartcomply-web-sdk@latest` (jumps to the newest release regardless of range). Check [npmjs.com/package/smartcomply-web-sdk](https://www.npmjs.com/package/smartcomply-web-sdk) for the current version number.
|
|
67
|
-
|
|
68
|
-
### Alternative: CDN (No Build Step)
|
|
62
|
+
### Recommended: CDN with `@1` (set once, stays current automatically)
|
|
69
63
|
|
|
70
64
|
```html
|
|
71
|
-
|
|
72
|
-
<script src="https://cdn.jsdelivr.net/npm/smartcomply-web-sdk@latest/dist/smartcomply.browser.js"></script>
|
|
73
|
-
|
|
74
|
-
<!-- Or pin to a specific version (recommended for production) — replace X.Y.Z
|
|
75
|
-
with the version you've actually tested against. Current version:
|
|
76
|
-
https://www.npmjs.com/package/smartcomply-web-sdk -->
|
|
77
|
-
<script src="https://cdn.jsdelivr.net/npm/smartcomply-web-sdk@X.Y.Z/dist/smartcomply.browser.js"></script>
|
|
65
|
+
<script src="https://cdn.jsdelivr.net/npm/smartcomply-web-sdk@1/dist/smartcomply.browser.js"></script>
|
|
78
66
|
|
|
79
67
|
<script>
|
|
80
68
|
// SDK available as window.SmartComplySDK
|
|
@@ -86,7 +74,29 @@ npm install smartcomply-web-sdk
|
|
|
86
74
|
</script>
|
|
87
75
|
```
|
|
88
76
|
|
|
89
|
-
|
|
77
|
+
`@1` always resolves to the latest `1.x.x` release — bug fixes and new features reach your site automatically the moment we publish them, with **no code change on your end, ever**. We commit to never shipping a breaking change as a `1.x` release; if a breaking change is ever needed, it ships as `2.0.0` and `@1` will keep serving the last safe `1.x` release until you deliberately opt in. This is the same versioning model used by most public JS SDKs (Stripe.js, Google Maps, etc.).
|
|
78
|
+
|
|
79
|
+
Other CDN options:
|
|
80
|
+
|
|
81
|
+
```html
|
|
82
|
+
<!-- Always the newest release, including any future major version — for
|
|
83
|
+
prototyping, or if you specifically want every change instantly -->
|
|
84
|
+
<script src="https://cdn.jsdelivr.net/npm/smartcomply-web-sdk@latest/dist/smartcomply.browser.js"></script>
|
|
85
|
+
|
|
86
|
+
<!-- Pin to one exact version — only if you need manual control over
|
|
87
|
+
updates. Replace X.Y.Z with the version you've tested against. -->
|
|
88
|
+
<script src="https://cdn.jsdelivr.net/npm/smartcomply-web-sdk@X.Y.Z/dist/smartcomply.browser.js"></script>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
> `@1`/`@latest` re-resolve on **every page load** — that's what makes them self-updating, with no rebuild or redeploy needed on your side. An exact `@X.Y.Z` pin never moves until you manually change the number in your script tag. See [npmjs.com/package/smartcomply-web-sdk](https://www.npmjs.com/package/smartcomply-web-sdk) for release history.
|
|
92
|
+
|
|
93
|
+
### Alternative: npm
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm install smartcomply-web-sdk
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
> Unlike the CDN, npm has no auto-updating option — this is true for every npm package, not specific to ours. `npm install` resolves to the latest version **at the moment you run it**, then locks that exact version in `package-lock.json`; it will not change again on its own. Run `npm update smartcomply-web-sdk` periodically (or before each deploy) to pick up new fixes — this stays within the `^1.0.x` range already set in your `package.json`, and we commit to never shipping a breaking change within `1.x`, so it's always safe to run. Check [npmjs.com/package/smartcomply-web-sdk](https://www.npmjs.com/package/smartcomply-web-sdk) for the current version number.
|
|
90
100
|
|
|
91
101
|
---
|
|
92
102
|
|
package/dist/client/Config.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BASE_URLS = void 0;
|
|
4
4
|
exports.BASE_URLS = {
|
|
5
|
-
sandbox: "https://
|
|
5
|
+
sandbox: "https://adhere-staging-api.smartcomply.com",
|
|
6
6
|
production: "https://adhere-api.smartcomply.com",
|
|
7
7
|
local: "http://127.0.0.1:8000",
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/client/Config.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAgC;IACpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/client/Config.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAgC;IACpD,OAAO,EAAE,4CAA4C;IACrD,UAAU,EAAE,oCAAoC;IAChD,KAAK,EAAE,uBAAuB;CAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../../src/client/Config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAgC;IACpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../../src/client/Config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAgC;IACpD,OAAO,EAAE,4CAA4C;IACrD,UAAU,EAAE,oCAAoC;IAChD,KAAK,EAAE,uBAAuB;CAC/B,CAAC"}
|
|
@@ -38,7 +38,7 @@ var SmartComplySDK = (() => {
|
|
|
38
38
|
|
|
39
39
|
// src/client/Config.ts
|
|
40
40
|
var BASE_URLS = {
|
|
41
|
-
sandbox: "https://
|
|
41
|
+
sandbox: "https://adhere-staging-api.smartcomply.com",
|
|
42
42
|
production: "https://adhere-api.smartcomply.com",
|
|
43
43
|
local: "http://127.0.0.1:8000"
|
|
44
44
|
};
|