You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@harlem/utilities

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-beta.10 to 2.0.0

src/object/omit.ts

12

dist/esm/index.js

@@ -106,2 +106,13 @@ // src/type/get-type.ts

// src/object/omit.ts
function omit(value, pattern) {
const output = {};
for (const key in value) {
if (!pattern.test(key)) {
output[key] = value[key];
}
}
return output;
}
// src/type/is-array.ts

@@ -138,2 +149,3 @@ function isArray(value) {

lock,
omit,
overwrite,

@@ -140,0 +152,0 @@ toPath

@@ -40,2 +40,3 @@ var HarlemUtilities = (() => {

lock: () => lock,
omit: () => omit,
overwrite: () => overwrite,

@@ -148,2 +149,13 @@ toPath: () => toPath

// src/object/omit.ts
function omit(value, pattern) {
const output = {};
for (const key in value) {
if (!pattern.test(key)) {
output[key] = value[key];
}
}
return output;
}
// src/type/is-array.ts

@@ -150,0 +162,0 @@ function isArray(value) {

4

dist/index.d.ts

@@ -9,2 +9,4 @@ import { UnwrapRef } from 'vue';

declare function omit<TValue extends object>(value: TValue, pattern: RegExp): TValue;
declare function fromPath<TValue extends object>(value: TValue, path: string | PropertyKey[]): object | undefined;

@@ -25,2 +27,2 @@

export { Constructable, RuntimeType, clone, fromPath, getType, isArray, isObject, lock, overwrite, toPath };
export { Constructable, RuntimeType, clone, fromPath, getType, isArray, isObject, lock, omit, overwrite, toPath };

@@ -106,2 +106,13 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/type/get-type.ts

// src/object/omit.ts
function omit(value, pattern) {
const output = {};
for (const key in value) {
if (!pattern.test(key)) {
output[key] = value[key];
}
}
return output;
}
// src/type/is-array.ts

@@ -140,3 +151,4 @@ function isArray(value) {

exports.clone = clone; exports.fromPath = fromPath; exports.getType = getType; exports.isArray = isArray; exports.isObject = isObject; exports.lock = lock; exports.overwrite = overwrite; exports.toPath = toPath;
exports.clone = clone; exports.fromPath = fromPath; exports.getType = getType; exports.isArray = isArray; exports.isObject = isObject; exports.lock = lock; exports.omit = omit; exports.overwrite = overwrite; exports.toPath = toPath;
//# sourceMappingURL=index.js.map
{
"name": "@harlem/utilities",
"amdName": "harlemUtilities",
"version": "2.0.0-beta.10",
"version": "2.0.0",
"license": "MIT",

@@ -46,3 +46,3 @@ "author": "Andrew Courtice <andrewcourtice@users.noreply.github.com>",

},
"gitHead": "b27b1b46a3464593edbfb9dc15c1a9b142c6862c"
"gitHead": "08c19b9a416c273807b488884af1d8cc35ff5969"
}
export { default as clone } from './object/clone';
export { default as lock } from './object/lock';
export { default as overwrite } from './object/overwrite';
export { default as omit } from './object/omit';
export { default as fromPath } from './object/from-path';

@@ -5,0 +6,0 @@ export { default as toPath } from './object/to-path';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc