coi-serviceworker
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,2 +0,2 @@ | ||
/*! coi-serviceworker v0.1.0 - Guido Zuidhof, licensed under MIT */ | ||
/*! coi-serviceworker v0.1.1 - Guido Zuidhof, licensed under MIT */ | ||
@@ -3,0 +3,0 @@ if (typeof window === 'undefined') { |
{ | ||
"name": "coi-serviceworker", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Cross-Origin Isolation through a service worker", | ||
@@ -10,2 +10,5 @@ "main": "coi-serviceworker.js", | ||
}, | ||
"scripts": { | ||
"minify": "terser coi-serviceworker.js --mangle --compress --format --output coi-serviceworker.min.js" | ||
}, | ||
"keywords": [ | ||
@@ -23,3 +26,6 @@ "cross-origin", | ||
}, | ||
"homepage": "https://github.com/gzuidhof/coi-serviceworker#readme" | ||
"homepage": "https://github.com/gzuidhof/coi-serviceworker#readme", | ||
"devDependencies": { | ||
"terser": "^5.7.1" | ||
} | ||
} |
@@ -1,2 +0,4 @@ | ||
# coi-serviceworker | ||
# coi-serviceworker | ||
![npm](https://img.shields.io/npm/v/coi-serviceworker) ![size](https://img.shields.io/github/size/gzuidhof/coi-serviceworker/coi-serviceworker.min.js) | ||
Cross-origin isolation ([COOP and COEP](https://web.dev/coop-coep/)) through a service worker for situations in which you can't control the headers (e.g. GH pages). | ||
@@ -7,3 +9,3 @@ | ||
1. Download `coi-serviceworker.js`. | ||
1. Download `coi-serviceworker.js` (or `coi-serviceworker.min.js`). | ||
2. Put it next to your index file (or in any folder above it) | ||
@@ -10,0 +12,0 @@ 3. Add to your HTML file: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9966
6
75
61
1
2