numcodecs
Advanced tools
Comparing version 0.0.1 to 0.0.11
@@ -1,4 +0,2 @@ | ||
function getUrl(version, codecId) { | ||
return `https://cdn.pika.dev/numcodecs@${version}/codecs/${codecId}.js`; | ||
} | ||
const path = (v, id) => `https://www.unpkg.com/numcodecs@${v}/dist/numcodecs/codecs/${id}.js`; | ||
const registry = new Set(); | ||
@@ -11,3 +9,3 @@ registry.add('gzip'); | ||
} | ||
const { default: codec } = await import(getUrl(version, config.id)); | ||
const { default: codec } = await import(path(version, config.id)); | ||
return codec.fromConfig(config); | ||
@@ -14,0 +12,0 @@ } |
{ | ||
"name": "numcodecs", | ||
"author": "Trevor James Manz", | ||
"version": "0.0.1", | ||
"version": "0.0.11", | ||
"description": "Buffer compression and transformation codecs for use in data storage and communication applications.", | ||
"type": "module", | ||
"main": "./dist/numcodecs/index.js", | ||
"main": "dist/numcodecs/index.js", | ||
"exports": { | ||
@@ -9,0 +9,0 @@ ".": "./dist/numcodecs/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
448357
12049