New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xdim

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xdim - npm Package Compare versions

Comparing version 1.10.0 to 1.10.1

2

package.json
{
"name": "xdim",
"version": "1.10.0",
"version": "1.10.1",
"description": "Multi-Dimensional Functions. Create, Query, and Transform Multi-Dimensional Data.",

@@ -5,0 +5,0 @@ "main": "src/xdim.js",

@@ -415,3 +415,3 @@ const layoutCache = {};

arr[i] = sub;
addDims({ arr: sub, lens: lens.slice(1), arrayTypes });
addDims({ arr: sub, fill, lens: lens.slice(1), arrayTypes });
}

@@ -426,3 +426,4 @@ }

if (shape.length === 1) {
const arrayType = arrayTypes ? arrayTypes[0] : "Array";
if (Array.isArray(arrayTypes) && arrayTypes.length !== 1) throw new Error("[xdim] shape and arrayTypes have different lengths");
const arrayType = Array.isArray(arrayTypes) ? arrayTypes[0] : "Array";
return new ARRAY_TYPES[arrayType](len).fill(fill);

@@ -429,0 +430,0 @@ }

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