You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@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

@harlem/utilities - npm Package Compare versions

Comparing version

to
2.2.2

6

dist/esm/index.js

@@ -35,3 +35,3 @@ // src/type/get-type.ts

function cloneSet(input) {
const output = new Set();
const output = /* @__PURE__ */ new Set();
input.forEach((value) => {

@@ -43,3 +43,3 @@ output.add(clone(value));

function cloneMap(input) {
const output = new Map();
const output = /* @__PURE__ */ new Map();
input.forEach((value, key) => {

@@ -160,2 +160,2 @@ output.set(key, clone(value));

};
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map

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

"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/type/get-type.ts
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __reExport = (target, module2, copyDefault, desc) => {
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
for (let key of __getOwnPropNames(module2))
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
}
return target;
};
var __toCommonJS = /* @__PURE__ */ ((cache) => {
return (module2, temp) => {
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
};
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
// src/index.ts
var src_exports = {};
__export(src_exports, {
clone: () => clone,
fromPath: () => fromPath,
getType: () => getType,
isArray: () => isArray,
isNil: () => isNil,
isObject: () => isObject,
lock: () => lock,
omit: () => omit,
overwrite: () => overwrite,
toPath: () => toPath
});
// src/type/get-type.ts
function getType(input) {

@@ -7,5 +45,3 @@ return Object.prototype.toString.call(input).slice(8, -1).toLowerCase();

// src/object/clone.ts
var _vue = require('vue');
var import_vue = require("vue");
function cloneIdentity(input) {

@@ -36,3 +72,3 @@ return input;

function cloneSet(input) {
const output = new Set();
const output = /* @__PURE__ */ new Set();
input.forEach((value) => {

@@ -44,3 +80,3 @@ output.add(clone(value));

function cloneMap(input) {
const output = new Map();
const output = /* @__PURE__ */ new Map();
input.forEach((value, key) => {

@@ -69,3 +105,3 @@ output.set(key, clone(value));

function clone(value) {
const input = _vue.unref.call(void 0, value);
const input = (0, import_vue.unref)(value);
if (typeof input !== "object" || input === null) {

@@ -150,14 +186,16 @@ return input;

}
exports.clone = clone; exports.fromPath = fromPath; exports.getType = getType; exports.isArray = isArray; exports.isNil = isNil; exports.isObject = isObject; exports.lock = lock; exports.omit = omit; exports.overwrite = overwrite; exports.toPath = toPath;
//# sourceMappingURL=index.js.map
module.exports = __toCommonJS(src_exports);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
clone,
fromPath,
getType,
isArray,
isNil,
isObject,
lock,
omit,
overwrite,
toPath
});
//# sourceMappingURL=index.js.map
{
"name": "@harlem/utilities",
"amdName": "harlemUtilities",
"version": "2.2.1",
"version": "2.2.2",
"license": "MIT",

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

},
"gitHead": "1807adf7642771f00f318d59211ca3d9ce1a8ac8"
"gitHead": "f05365652c6cc002e9bcf9e6216a32e960f62b59"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet