Comparing version 0.12.11 to 0.12.12
@@ -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", |
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
35654
988