Socket
Socket
Sign inDemoInstall

numcodecs

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.11

6

dist/numcodecs/dynamic-registry.js

@@ -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",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc