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

aidly

Package Overview
Dependencies
Maintainers
0
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aidly - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

dist/is.d.ts

128

dist/aidly.cjs.js

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

const objectToString = Object.prototype.toString;
const supportWasm = typeof WebAssembly === 'object';
const toRawType = (v) => objectToString.call(v).slice(8, -1).toLowerCase();
const isArray = Array.isArray;
const isBrowser = typeof window !== 'undefined';
const isNil = (v) => v === undefined || v === null;
const isObject = (v) => v !== null && typeof v === 'object';
const isNumber = (v) => typeof v === 'number';
const isString = (v) => typeof v === 'string';
const isFunction = (v) => typeof v === 'function';
const isPlainObject = (v) => objectToString.call(v) === '[object Object]';
const isDate = (v) => objectToString.call(v) === '[object Date]';
const isRegExp = (v) => objectToString.call(v) === '[object RegExp]';
const isWindow = (val) =>
typeof window !== 'undefined' &&
objectToString.call(val) === '[object Window]';
const typeArrTag =
/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/;
const isTypedArray = (val) => typeArrTag.test(objectToString.call(val));
const isSet =
typeof Set !== 'function' || !Set.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Set;
const isWeakSet =
typeof WeakSet !== 'function' || !WeakSet.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakSet;
const isMap =
typeof Map !== 'function' || !Map.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Map;
const isWeakMap =
typeof WeakMap !== 'function' || !WeakMap.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakMap;
const isPromise = (v) => isObject(v) && typeof v.then === 'function';
const isBuffer = (v) => {
if (!isObject(v)) return false;
return Boolean(
v.constructor && v.constructor.isBuffer && v.constructor.isBuffer(v),
);
};
const isInBounds = ([a, b], v) => {
if (v === a || v === b) return true;
const min = Math.min(a, b);
const max = min === a ? b : a;
return min < v && v < max;
};
const isEmptyObject = (val) => {
for (const _ in val) return false;
return true;
};
const isPrimitiveValue = (v) => {
return (
typeof v === 'number' ||
typeof v === 'bigint' ||
typeof v === 'string' ||
typeof v === 'symbol' ||
typeof v === 'boolean' ||
v === undefined ||
v === null
);
};
const freeSelf =

@@ -947,4 +1011,2 @@ typeof self === 'object' && self !== null && self.Object === Object && self;

const noop = () => {};
const objectToString = Object.prototype.toString;
const supportWasm = typeof WebAssembly === 'object';
// TypeScript cannot use arrowFunctions for assertions.

@@ -967,59 +1029,2 @@ function assert(condition, error) {

typeof requestIdleCallback !== 'undefined' ? requestIdleCallback : raf;
const isArray = Array.isArray;
const isBrowser = typeof window !== 'undefined';
const isNil = (v) => v === undefined || v === null;
const isObject = (v) => v !== null && typeof v === 'object';
const isPlainObject = (v) => objectToString.call(v) === '[object Object]';
const isDate = (v) => objectToString.call(v) === '[object Date]';
const isRegExp = (v) => objectToString.call(v) === '[object RegExp]';
const isWindow = (val) =>
typeof window !== 'undefined' &&
objectToString.call(val) === '[object Window]';
const typeArrTag =
/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/;
const isTypedArray = (val) => typeArrTag.test(objectToString.call(val));
const isSet =
typeof Set !== 'function' || !Set.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Set;
const isWeakSet =
typeof WeakSet !== 'function' || !WeakSet.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakSet;
const isMap =
typeof Map !== 'function' || !Map.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Map;
const isWeakMap =
typeof WeakMap !== 'function' || !WeakMap.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakMap;
const isPromise = (v) => isObject(v) && typeof v.then === 'function';
const isBuffer = (v) => {
if (!isObject(v)) return false;
return Boolean(
v.constructor && v.constructor.isBuffer && v.constructor.isBuffer(v),
);
};
const isInBounds = ([a, b], v) => {
if (v === a || v === b) return true;
const min = Math.min(a, b);
const max = min === a ? b : a;
return min < v && v < max;
};
const isEmptyObject = (val) => {
for (const _ in val) return false;
return true;
};
const isPrimitiveValue = (v) => {
return (
typeof v === 'number' ||
typeof v === 'bigint' ||
typeof v === 'string' ||
typeof v === 'symbol' ||
typeof v === 'boolean' ||
v === undefined ||
v === null
);
};
const unc = /^[a-zA-Z]:\\/;

@@ -1033,3 +1038,2 @@ const uri = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;

v.toUpperCase() + args.join('').toLowerCase();
const toRawType = (v) => objectToString.call(v).slice(8, -1).toLowerCase();
const slash = (val) => val.replace(/\\/g, '/');

@@ -1239,5 +1243,7 @@ const makeMap = (arr) => {

exports.isEmptyObject = isEmptyObject;
exports.isFunction = isFunction;
exports.isInBounds = isInBounds;
exports.isMap = isMap;
exports.isNil = isNil;
exports.isNumber = isNumber;
exports.isObject = isObject;

@@ -1249,2 +1255,3 @@ exports.isPlainObject = isPlainObject;

exports.isSet = isSet;
exports.isString = isString;
exports.isTypedArray = isTypedArray;

@@ -1263,3 +1270,2 @@ exports.isWeakMap = isWeakMap;

exports.now = now;
exports.objectToString = objectToString;
exports.once = once;

@@ -1266,0 +1272,0 @@ exports.pick = pick;

export { Queue } from 'small-queue';
const objectToString = Object.prototype.toString;
const supportWasm = typeof WebAssembly === 'object';
const toRawType = (v) => objectToString.call(v).slice(8, -1).toLowerCase();
const isArray = Array.isArray;
const isBrowser = typeof window !== 'undefined';
const isNil = (v) => v === undefined || v === null;
const isObject = (v) => v !== null && typeof v === 'object';
const isNumber = (v) => typeof v === 'number';
const isString = (v) => typeof v === 'string';
const isFunction = (v) => typeof v === 'function';
const isPlainObject = (v) => objectToString.call(v) === '[object Object]';
const isDate = (v) => objectToString.call(v) === '[object Date]';
const isRegExp = (v) => objectToString.call(v) === '[object RegExp]';
const isWindow = (val) =>
typeof window !== 'undefined' &&
objectToString.call(val) === '[object Window]';
const typeArrTag =
/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/;
const isTypedArray = (val) => typeArrTag.test(objectToString.call(val));
const isSet =
typeof Set !== 'function' || !Set.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Set;
const isWeakSet =
typeof WeakSet !== 'function' || !WeakSet.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakSet;
const isMap =
typeof Map !== 'function' || !Map.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Map;
const isWeakMap =
typeof WeakMap !== 'function' || !WeakMap.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakMap;
const isPromise = (v) => isObject(v) && typeof v.then === 'function';
const isBuffer = (v) => {
if (!isObject(v)) return false;
return Boolean(
v.constructor && v.constructor.isBuffer && v.constructor.isBuffer(v),
);
};
const isInBounds = ([a, b], v) => {
if (v === a || v === b) return true;
const min = Math.min(a, b);
const max = min === a ? b : a;
return min < v && v < max;
};
const isEmptyObject = (val) => {
for (const _ in val) return false;
return true;
};
const isPrimitiveValue = (v) => {
return (
typeof v === 'number' ||
typeof v === 'bigint' ||
typeof v === 'string' ||
typeof v === 'symbol' ||
typeof v === 'boolean' ||
v === undefined ||
v === null
);
};
const freeSelf =

@@ -942,4 +1006,2 @@ typeof self === 'object' && self !== null && self.Object === Object && self;

const noop = () => {};
const objectToString = Object.prototype.toString;
const supportWasm = typeof WebAssembly === 'object';
// TypeScript cannot use arrowFunctions for assertions.

@@ -962,59 +1024,2 @@ function assert(condition, error) {

typeof requestIdleCallback !== 'undefined' ? requestIdleCallback : raf;
const isArray = Array.isArray;
const isBrowser = typeof window !== 'undefined';
const isNil = (v) => v === undefined || v === null;
const isObject = (v) => v !== null && typeof v === 'object';
const isPlainObject = (v) => objectToString.call(v) === '[object Object]';
const isDate = (v) => objectToString.call(v) === '[object Date]';
const isRegExp = (v) => objectToString.call(v) === '[object RegExp]';
const isWindow = (val) =>
typeof window !== 'undefined' &&
objectToString.call(val) === '[object Window]';
const typeArrTag =
/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/;
const isTypedArray = (val) => typeArrTag.test(objectToString.call(val));
const isSet =
typeof Set !== 'function' || !Set.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Set;
const isWeakSet =
typeof WeakSet !== 'function' || !WeakSet.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakSet;
const isMap =
typeof Map !== 'function' || !Map.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Map;
const isWeakMap =
typeof WeakMap !== 'function' || !WeakMap.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakMap;
const isPromise = (v) => isObject(v) && typeof v.then === 'function';
const isBuffer = (v) => {
if (!isObject(v)) return false;
return Boolean(
v.constructor && v.constructor.isBuffer && v.constructor.isBuffer(v),
);
};
const isInBounds = ([a, b], v) => {
if (v === a || v === b) return true;
const min = Math.min(a, b);
const max = min === a ? b : a;
return min < v && v < max;
};
const isEmptyObject = (val) => {
for (const _ in val) return false;
return true;
};
const isPrimitiveValue = (v) => {
return (
typeof v === 'number' ||
typeof v === 'bigint' ||
typeof v === 'string' ||
typeof v === 'symbol' ||
typeof v === 'boolean' ||
v === undefined ||
v === null
);
};
const unc = /^[a-zA-Z]:\\/;

@@ -1028,3 +1033,2 @@ const uri = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;

v.toUpperCase() + args.join('').toLowerCase();
const toRawType = (v) => objectToString.call(v).slice(8, -1).toLowerCase();
const slash = (val) => val.replace(/\\/g, '/');

@@ -1234,5 +1238,7 @@ const makeMap = (arr) => {

isEmptyObject,
isFunction,
isInBounds,
isMap,
isNil,
isNumber,
isObject,

@@ -1244,2 +1250,3 @@ isPlainObject,

isSet,
isString,
isTypedArray,

@@ -1258,3 +1265,2 @@ isWeakMap,

now,
objectToString,
once,

@@ -1261,0 +1267,0 @@ pick,

@@ -12,2 +12,66 @@ (function (global, factory) {

const objectToString = Object.prototype.toString;
const supportWasm = typeof WebAssembly === 'object';
const toRawType = (v) => objectToString.call(v).slice(8, -1).toLowerCase();
const isArray = Array.isArray;
const isBrowser = typeof window !== 'undefined';
const isNil = (v) => v === undefined || v === null;
const isObject = (v) => v !== null && typeof v === 'object';
const isNumber = (v) => typeof v === 'number';
const isString = (v) => typeof v === 'string';
const isFunction = (v) => typeof v === 'function';
const isPlainObject = (v) => objectToString.call(v) === '[object Object]';
const isDate = (v) => objectToString.call(v) === '[object Date]';
const isRegExp = (v) => objectToString.call(v) === '[object RegExp]';
const isWindow = (val) =>
typeof window !== 'undefined' &&
objectToString.call(val) === '[object Window]';
const typeArrTag =
/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/;
const isTypedArray = (val) => typeArrTag.test(objectToString.call(val));
const isSet =
typeof Set !== 'function' || !Set.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Set;
const isWeakSet =
typeof WeakSet !== 'function' || !WeakSet.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakSet;
const isMap =
typeof Map !== 'function' || !Map.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Map;
const isWeakMap =
typeof WeakMap !== 'function' || !WeakMap.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakMap;
const isPromise = (v) => isObject(v) && typeof v.then === 'function';
const isBuffer = (v) => {
if (!isObject(v)) return false;
return Boolean(
v.constructor && v.constructor.isBuffer && v.constructor.isBuffer(v),
);
};
const isInBounds = ([a, b], v) => {
if (v === a || v === b) return true;
const min = Math.min(a, b);
const max = min === a ? b : a;
return min < v && v < max;
};
const isEmptyObject = (val) => {
for (const _ in val) return false;
return true;
};
const isPrimitiveValue = (v) => {
return (
typeof v === 'number' ||
typeof v === 'bigint' ||
typeof v === 'string' ||
typeof v === 'symbol' ||
typeof v === 'boolean' ||
v === undefined ||
v === null
);
};
class Queue {

@@ -1001,4 +1065,2 @@ constructor() {

const noop = () => {};
const objectToString = Object.prototype.toString;
const supportWasm = typeof WebAssembly === 'object';
// TypeScript cannot use arrowFunctions for assertions.

@@ -1021,59 +1083,2 @@ function assert(condition, error) {

typeof requestIdleCallback !== 'undefined' ? requestIdleCallback : raf;
const isArray = Array.isArray;
const isBrowser = typeof window !== 'undefined';
const isNil = (v) => v === undefined || v === null;
const isObject = (v) => v !== null && typeof v === 'object';
const isPlainObject = (v) => objectToString.call(v) === '[object Object]';
const isDate = (v) => objectToString.call(v) === '[object Date]';
const isRegExp = (v) => objectToString.call(v) === '[object RegExp]';
const isWindow = (val) =>
typeof window !== 'undefined' &&
objectToString.call(val) === '[object Window]';
const typeArrTag =
/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/;
const isTypedArray = (val) => typeArrTag.test(objectToString.call(val));
const isSet =
typeof Set !== 'function' || !Set.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Set;
const isWeakSet =
typeof WeakSet !== 'function' || !WeakSet.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakSet;
const isMap =
typeof Map !== 'function' || !Map.prototype.has
? () => false
: (v) => isObject(v) && v instanceof Map;
const isWeakMap =
typeof WeakMap !== 'function' || !WeakMap.prototype.has
? () => false
: (v) => isObject(v) && v instanceof WeakMap;
const isPromise = (v) => isObject(v) && typeof v.then === 'function';
const isBuffer = (v) => {
if (!isObject(v)) return false;
return Boolean(
v.constructor && v.constructor.isBuffer && v.constructor.isBuffer(v),
);
};
const isInBounds = ([a, b], v) => {
if (v === a || v === b) return true;
const min = Math.min(a, b);
const max = min === a ? b : a;
return min < v && v < max;
};
const isEmptyObject = (val) => {
for (const _ in val) return false;
return true;
};
const isPrimitiveValue = (v) => {
return (
typeof v === 'number' ||
typeof v === 'bigint' ||
typeof v === 'string' ||
typeof v === 'symbol' ||
typeof v === 'boolean' ||
v === undefined ||
v === null
);
};
const unc = /^[a-zA-Z]:\\/;

@@ -1087,3 +1092,2 @@ const uri = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;

v.toUpperCase() + args.join('').toLowerCase();
const toRawType = (v) => objectToString.call(v).slice(8, -1).toLowerCase();
const slash = (val) => val.replace(/\\/g, '/');

@@ -1293,5 +1297,7 @@ const makeMap = (arr) => {

exports.isEmptyObject = isEmptyObject;
exports.isFunction = isFunction;
exports.isInBounds = isInBounds;
exports.isMap = isMap;
exports.isNil = isNil;
exports.isNumber = isNumber;
exports.isObject = isObject;

@@ -1303,2 +1309,3 @@ exports.isPlainObject = isPlainObject;

exports.isSet = isSet;
exports.isString = isString;
exports.isTypedArray = isTypedArray;

@@ -1317,3 +1324,2 @@ exports.isWeakMap = isWeakMap;

exports.now = now;
exports.objectToString = objectToString;
exports.once = once;

@@ -1320,0 +1326,0 @@ exports.pick = pick;

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

import type { TypedArray, PrimitiveType } from './types';
export { Queue } from 'small-queue';

@@ -10,2 +9,27 @@ export { root } from './root';

export {
isNil,
isNumber,
isString,
isArray,
isObject,
isPlainObject,
isFunction,
isMap,
isWeakMap,
isSet,
isWeakSet,
isDate,
isRegExp,
isBuffer,
isTypedArray,
isPromise,
isWindow,
isBrowser,
isInBounds,
isEmptyObject,
isPrimitiveValue,
toRawType,
supportWasm,
} from './is';
export {
jsonParse,

@@ -39,4 +63,2 @@ jsonStringify,

export declare const noop: () => void;
export declare const objectToString: () => string;
export declare const supportWasm: boolean;
export declare function assert(

@@ -51,32 +73,2 @@ condition: unknown,

| typeof requestIdleCallback;
export declare const isArray: (arg: any) => arg is any[];
export declare const isBrowser: boolean;
export declare const isNil: (v: unknown) => v is null | undefined;
export declare const isObject: (v: unknown) => v is object;
export declare const isPlainObject: <T>(
v: unknown,
) => v is Record<PropertyKey, T>;
export declare const isDate: (v: unknown) => v is Date;
export declare const isRegExp: (v: unknown) => v is RegExp;
export declare const isWindow: (val: any) => boolean;
export declare const isTypedArray: (val: unknown) => val is TypedArray;
export declare const isSet: <T = unknown>(v: unknown) => v is Set<T>;
export declare const isWeakSet: <T extends object = object>(
v: unknown,
) => v is WeakSet<T>;
export declare const isMap: <K = unknown, V = unknown>(
v: unknown,
) => v is Map<K, V>;
export declare const isWeakMap: <K extends object = object, V = unknown>(
v: unknown,
) => v is WeakMap<K, V>;
export declare const isPromise: <T, S>(
v: S | PromiseLike<T>,
) => v is PromiseLike<T>;
export declare const isBuffer: (v: unknown) => boolean;
export declare const isInBounds: ([a, b]: Array<number>, v: number) => boolean;
export declare const isEmptyObject: <T extends Record<PropertyKey, any>>(
val: T,
) => boolean;
export declare const isPrimitiveValue: (v: unknown) => v is PrimitiveType;
export declare const isAbsolute: (p: string) => boolean;

@@ -90,3 +82,2 @@ export declare const last: <T>(arr: T[], i?: number) => T;

export declare const capitalize: ([v, ...args]: string) => string;
export declare const toRawType: (v: unknown) => string;
export declare const slash: (val: string) => string;

@@ -93,0 +84,0 @@ export declare const makeMap: <T extends string>(arr: T[]) => (v: T) => boolean;

{
"name": "aidly",
"version": "1.3.1",
"version": "1.3.2",
"description": "Tool library.",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -0,0 +0,0 @@ <div align="center">

Sorry, the diff of this file is not supported yet

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