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

@vect/object-init

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vect/object-init - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

20

dist/index.cjs.js

@@ -15,2 +15,7 @@ 'use strict';

};
const pair = (key, value) => {
const o = {};
o[key] = value;
return o;
};
/**

@@ -44,6 +49,21 @@ * Shallow.

};
/**
* Shallow.
* @param {...[*,*]} entries - An array of key-value pair, [key, value]
* @returns {Object|Object<string,*>}
*/
const ob = (...entries) => {
let o = {};
for (let [k, v] of entries) o[k] = v;
return o;
};
exports.init = init;
exports.initByValues = initByValues;
exports.iso = iso;
exports.ob = ob;
exports.pair = pair;
exports.wind = wind;

20

dist/index.esm.js

@@ -11,2 +11,7 @@ const wind = (keys, values) => {

};
const pair = (key, value) => {
const o = {};
o[key] = value;
return o;
};
/**

@@ -40,3 +45,16 @@ * Shallow.

};
/**
* Shallow.
* @param {...[*,*]} entries - An array of key-value pair, [key, value]
* @returns {Object|Object<string,*>}
*/
export { init, initByValues, iso, wind };
const ob = (...entries) => {
let o = {};
for (let [k, v] of entries) o[k] = v;
return o;
};
export { init, initByValues, iso, ob, pair, wind };

4

package.json
{
"name": "@vect/object-init",
"version": "0.1.2",
"version": "0.1.3",
"description": "A debugging tool",

@@ -33,3 +33,3 @@ "main": "dist/index.cjs.js",

"homepage": "https://github.com/hoyeungw/vect#readme",
"gitHead": "79d90ea9bee956a1eff326a7a798535b114d09fb"
"gitHead": "c495597a681fa81b5cfcf387bfefec822f1b3ca8"
}
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