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

@jon49/sw

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jon49/sw - npm Package Compare versions

Comparing version 0.12.11 to 0.12.12

10

bin/lib/file-mapper.ts

@@ -54,7 +54,11 @@ import { rm } from "node:fs/promises"

if (option.isWaiting) return
// Write mapper to file in src/web/file-map.js
if (option.isWaiting) return
let fileMapContent = `(() => { self.app = { links: ${JSON.stringify(mapper)} } })()`
let hash = getHash(fileMapContent)
let fileMapJsonContent = JSON.stringify(mapper)
let hash = getHash(fileMapJsonContent)
let fileMapUrl = `/web/file-map.${hash}.js`
fileMapJsonContent = `${fileMapJsonContent.slice(0, -1)},{"url":"/web/file-map.js","file":"${fileMapUrl}"}]`
let fileMapContent = `(() => { self.app = { links: ${fileMapJsonContent} } })()`
await write(`${targetDirectory}${fileMapUrl}`, fileMapContent)

@@ -61,0 +65,0 @@

{
"name": "@jon49/sw",
"version": "0.12.11",
"version": "0.12.12",
"description": "Packages for MVC service workers.",

@@ -5,0 +5,0 @@ "type": "module",

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