Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coi-serviceworker

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coi-serviceworker - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

coi-serviceworker.min.js

2

coi-serviceworker.js

@@ -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:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc