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

@vect/object-select

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vect/object-select - npm Package Compare versions

Comparing version 0.3.9 to 0.3.10

10

dist/index.cjs.js

@@ -11,5 +11,3 @@ 'use strict';

const leap = function (o, start, gap) {
var _this$keys;
const keys = (_this$keys = this === null || this === void 0 ? void 0 : this.keys) !== null && _this$keys !== void 0 ? _this$keys : Object.keys(o);
const keys = (this === null || this === void 0 ? void 0 : this.keys) ?? Object.keys(o);
const wd = keys === null || keys === void 0 ? void 0 : keys.length,

@@ -41,8 +39,6 @@ df = comparer.max(gap, wd),

const shuffle = function (o, size) {
var _this$keys;
const keys = (_this$keys = this === null || this === void 0 ? void 0 : this.keys) !== null && _this$keys !== void 0 ? _this$keys : Object.keys(o);
const keys = (this === null || this === void 0 ? void 0 : this.keys) ?? Object.keys(o);
let l = keys === null || keys === void 0 ? void 0 : keys.length,
k;
const lo = comparer.max(0, l - (size !== null && size !== void 0 ? size : l)),
const lo = comparer.max(0, l - (size ?? l)),
rs = {};

@@ -49,0 +45,0 @@

@@ -7,5 +7,3 @@ import { max, min } from '@aryth/comparer';

const leap = function (o, start, gap) {
var _this$keys;
const keys = (_this$keys = this === null || this === void 0 ? void 0 : this.keys) !== null && _this$keys !== void 0 ? _this$keys : Object.keys(o);
const keys = (this === null || this === void 0 ? void 0 : this.keys) ?? Object.keys(o);
const wd = keys === null || keys === void 0 ? void 0 : keys.length,

@@ -37,8 +35,6 @@ df = max(gap, wd),

const shuffle = function (o, size) {
var _this$keys;
const keys = (_this$keys = this === null || this === void 0 ? void 0 : this.keys) !== null && _this$keys !== void 0 ? _this$keys : Object.keys(o);
const keys = (this === null || this === void 0 ? void 0 : this.keys) ?? Object.keys(o);
let l = keys === null || keys === void 0 ? void 0 : keys.length,
k;
const lo = max(0, l - (size !== null && size !== void 0 ? size : l)),
const lo = max(0, l - (size ?? l)),
rs = {};

@@ -45,0 +41,0 @@

{
"name": "@vect/object-select",
"version": "0.3.9",
"version": "0.3.10",
"description": "Select from object/array",

@@ -18,6 +18,6 @@ "main": "dist/index.cjs.js",

"dependencies": {
"@aryth/comparer": "^0.3.15",
"@aryth/rand": "^0.3.15",
"@vect/swap": "^0.3.9",
"@vect/vector-mapper": "^0.3.9"
"@aryth/comparer": "^0.3.19",
"@aryth/rand": "^0.3.19",
"@vect/swap": "^0.3.10",
"@vect/vector-mapper": "^0.3.10"
},

@@ -39,3 +39,3 @@ "repository": {

"homepage": "https://github.com/hoyeungw/vect#readme",
"gitHead": "840d4442d7bc092f65cb0c4d6efd7734b26ec920"
"gitHead": "cf716b1eeb2ed3e653a75f1924c318c5f80bd23a"
}
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