@leadping/consent 1.0.1 → 1.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/README.md CHANGED
@@ -27,6 +27,8 @@ On submission the script finalizes recording, obtains a certificate, and display
27
27
 
28
28
  Pin the URL to a published npm version. Use the classic script at `dist/leadping-consent.min.js`, not the ES module under `dist/browser`.
29
29
 
30
+ The package defaults to the regular browser script, including on jsDelivr and UNPKG. Applications that need the module API can explicitly import `ConsentCapture` from `@leadping/consent/esm`.
31
+
30
32
  ## Options and events
31
33
 
32
34
  | Attribute | Purpose |
@@ -120,10 +122,11 @@ npm test
120
122
 
121
123
  | Output | Purpose |
122
124
  | --- | --- |
125
+ | `dist/leadping-consent.js` and `dist/leadping-consent.min.js` | Standalone scripts with automatic form attachment; the package and CDN defaults. |
123
126
  | `dist/browser/leadping-consent.min.js` | Bundled browser capture SDK. |
124
127
  | `dist/browser/*.map` | Browser source maps. |
125
128
  | `dist/browser/*.LEGAL.txt` | Dependency license notices. |
126
- | `dist/*.js` and `dist/*.d.ts` | ESM modules and TypeScript declarations for package consumers. |
129
+ | `dist/esm/*.js` and `dist/esm/*.d.ts` | Optional ESM API and TypeScript declarations, available through `@leadping/consent/esm`. |
127
130
 
128
131
  The build also emits `dist/browser/index.js` for the consent service's existing SDK paths. This is bundled and minified as well.
129
132
 
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1 @@
1
+ {"type":"module"}