css-to-js-sourcemap-worker
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "css-to-js-sourcemap-worker", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"main": "worker.js", | ||
"files": [ | ||
"worker.js" | ||
"worker.js", | ||
"mappings.wasm" | ||
], | ||
"scripts": { | ||
"prepare": "webpack-cli" | ||
"prepare": "webpack-cli && node scripts/copy-wasm.js" | ||
}, | ||
"devDependencies": { | ||
"css-to-js-sourcemap-core": "*", | ||
"resolve-from": "^4.0.0", | ||
"webpack": "^4.10.2", | ||
@@ -14,0 +16,0 @@ "webpack-cli": "^2.1.4" |
@@ -10,4 +10,4 @@ # css-to-js-sourcemap-worker | ||
id: "add_mapped_class", | ||
error: ErrorLikeObject, | ||
className: string, | ||
stackInfo: ErrorLikeObject, | ||
stackIndex: number | ||
@@ -17,3 +17,3 @@ } | ||
| {id: "clear_render_interval"} | ||
| {id: "schedule_render"} | ||
| {id: "render"} | ||
| {id: "invalidate"}; | ||
@@ -34,3 +34,3 @@ | ||
```js | ||
const worker = new Worker("https://unpkg.com/css-to-js-sourcemap-worker@1.0.0/worker.js"); | ||
const worker = new Worker("https://unpkg.com/css-to-js-sourcemap-worker/worker.js"); | ||
@@ -49,8 +49,8 @@ worker.onmessage = msg => { | ||
id: "init_wasm", | ||
url: "https://unpkg.com/source-map@0.7.3/lib/mappings.wasm", | ||
url: "https://unpkg.com/css-to-js-sourcemap-worker/mappings.wasm", | ||
}); | ||
worker.postMessage({ | ||
id: "add_mapped_class", | ||
error: {stack, stacktrace, message}, | ||
className: "__debug-1", | ||
stackInfo: {stack, stacktrace, message}, | ||
stackIndex: 0, | ||
@@ -57,0 +57,0 @@ }); |
Sorry, the diff of this file is too big to display
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
5
85031
4
0
5