Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lomit

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lomit - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

18

package.json
{
"name": "lomit",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",

@@ -44,3 +44,3 @@ "description": "Lightweight version of Object omit.",

"scripts": {
"clean": "rm -f index.js && rm -rf es && rm -rf umd",
"clean": "rimraf index.js es umd",
"prebuild": "npm run clean",

@@ -60,2 +60,3 @@ "build": "node ./tools/build.js",

"@babel/preset-env": "^7.11.5",
"@rollup/plugin-babel": "^5.2.1",
"babel-core": "^7.0.0-bridge.0",

@@ -71,8 +72,4 @@ "babel-jest": "^26.3.0",

"pretty-bytes": "^5.4.1",
"rimraf": "^3.0.2",
"rollup": "^2.28.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-uglify": "^6.0.4",
"rollup-watch": "^4.3.1",

@@ -87,3 +84,10 @@ "typescript": "^4.0.3"

]
},
"dependencies": {
"@babel/runtime": "^7.11.2",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"rollup-plugin-terser": "^7.0.2"
}
}

@@ -1,2 +0,2 @@

/*! lomit v1.0.0 | (c) 2020 Ryan Hefner | MIT License | https://github.com/ryanhefner/lomit !*/
/*! lomit v1.0.1 | (c) 2020 Ryan Hefner | MIT License | https://github.com/ryanhefner/lomit !*/
(function (global, factory) {

@@ -8,8 +8,51 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
return obj;
}
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
if (i % 2) {
ownKeys(Object(source), true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
}
return target;
}
function omit(obj, props) {

@@ -24,3 +67,3 @@ if (obj === void 0) {

obj = _objectSpread({}, obj);
obj = _objectSpread2({}, obj);
props.forEach(function (prop) {

@@ -27,0 +70,0 @@ var deepIndex = prop.indexOf('.');

@@ -1,1 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).lomit={})}(this,function(e){"use strict";function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}e.omit=function o(i,e){return void 0===i&&(i={}),void 0===e&&(e=[]),i=function(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?t(Object(i),!0).forEach(function(e){var t,r,n;t=o,n=i[r=e],r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}({},i),e.forEach(function(e){var t=e.indexOf(".");if(-1!==t){var r=e.slice(0,t),n=e.slice(t+1);r&&i[r]&&(i[r]=o(i[r],[n]))}else i.hasOwnProperty(e)&&delete i[e]}),i},Object.defineProperty(e,"__esModule",{value:!0})});
/*! lomit v1.0.1 | (c) 2020 Ryan Hefner | MIT License | https://github.com/ryanhefner/lomit !*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).lomit={})}(this,(function(e){"use strict";function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.omit=function e(n,o){return void 0===n&&(n={}),void 0===o&&(o=[]),n=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(r){t(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},n),o.forEach((function(t){var r=t.indexOf(".");if(-1!==r){var o=t.slice(0,r),i=t.slice(r+1);o&&n[o]&&(n[o]=e(n[o],[i]))}else n.hasOwnProperty(t)&&delete n[t]})),n},Object.defineProperty(e,"__esModule",{value:!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