@privacykit/web 1.2.1 → 1.2.2

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/index.d.ts CHANGED
@@ -3,9 +3,3 @@ declare module "*.css";
3
3
  import "./privacykit";
4
4
 
5
5
  export * from './dist/index';
6
-
7
- declare global {
8
- interface Window {
9
- PrivacyKit: PrivacyKitGlobalApi;
10
- }
11
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@privacykit/web",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Developer-friendly GDPR consent management with real enforcement.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./index.d.ts",
@@ -27,7 +27,8 @@
27
27
  "access": "public"
28
28
  },
29
29
  "scripts": {
30
- "sync-types": "cp ../privacykit-sdk/public/privacykit.d.ts ./privacykit.d.ts",
30
+ "fix-type": "sed -i '' 's/PrivacyKit?: PrivacyKitGlobalApi/PrivacyKit: PrivacyKitGlobalApi/' ./privacykit.d.ts",
31
+ "sync-types": "cp ../privacykit-sdk/public/privacykit.d.ts ./privacykit.d.ts && npm run fix-type",
31
32
  "build": "npx tsc",
32
33
  "publish:patch": "npm run build && npm login && npm version patch && npm publish",
33
34
  "publish:minor": "npm run build && npm login && npm version minor && npm publish"
package/privacykit.d.ts CHANGED
@@ -243,7 +243,7 @@ declare global {
243
243
  }
244
244
 
245
245
  interface Window {
246
- PrivacyKit?: PrivacyKitGlobalApi;
246
+ PrivacyKit: PrivacyKitGlobalApi;
247
247
  }
248
248
 
249
249
  interface HTMLElementTagNameMap {