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

newtype

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newtype - npm Package Compare versions

Comparing version 0.0.1 to 0.0.5

dist/any-Cwhnkyrv.js

13

dist/index.d.ts

@@ -1,1 +0,12 @@

export {};
import * as arrayMap from "./array";
import * as coreMap from "./core";
import * as dateMap from "./date";
import * as mathMap from "./math";
import * as stringMap from "./string";
import * as systemMap from "./system";
export declare const all: typeof arrayMap.all, any: typeof arrayMap.any, bubbleSort: typeof arrayMap.bubbleSort, chunk: typeof arrayMap.chunk, compact: typeof arrayMap.compact, heapSort: typeof arrayMap.heapSort, insertionSort: typeof arrayMap.insertionSort, intersection: typeof arrayMap.intersection, mergeSort: typeof arrayMap.mergeSort, partition: typeof arrayMap.partition, permutations: typeof arrayMap.permutations, quickSort: typeof arrayMap.quickSort, range: typeof arrayMap.range, sample: typeof arrayMap.sample, selectionSort: typeof arrayMap.selectionSort, shuffle: typeof arrayMap.shuffle, timSort: typeof arrayMap.timSort, unique: typeof arrayMap.unique;
export declare const buildUrl: typeof coreMap.buildUrl, createCounter: typeof coreMap.createCounter, isArray: typeof coreMap.isArray, isBigInt: typeof coreMap.isBigInt, isBoolean: typeof coreMap.isBoolean, isDate: typeof coreMap.isDate, isError: typeof coreMap.isError, isFloat: typeof coreMap.isFloat, isFunction: typeof coreMap.isFunction, isInteger: typeof coreMap.isInteger, isNull: typeof coreMap.isNull, isNumber: typeof coreMap.isNumber, isObject: typeof coreMap.isObject, isString: typeof coreMap.isString, isSymbol: typeof coreMap.isSymbol, isUndefined: typeof coreMap.isUndefined, parseUrl: typeof coreMap.parseUrl, scheduler: typeof coreMap.scheduler, sleep: typeof coreMap.sleep, toType: typeof coreMap.toType;
export declare const age: typeof dateMap.age, dateCalculator: typeof dateMap.dateCalculator, isLeapYear: typeof dateMap.isLeapYear, isWeekend: typeof dateMap.isWeekend;
export declare const nCr: typeof mathMap.nCr, nPr: typeof mathMap.nPr, binomial: typeof mathMap.binomial, factorial: typeof mathMap.factorial, gcd: typeof mathMap.gcd, hypergeometric: typeof mathMap.hypergeometric, iqr: typeof mathMap.iqr, lerp: typeof mathMap.lerp, mean: typeof mathMap.mean, median: typeof mathMap.median, mode: typeof mathMap.mode, poisson: typeof mathMap.poisson, q1: typeof mathMap.q1, q2: typeof mathMap.q2, q3: typeof mathMap.q3, q4: typeof mathMap.q4, rotateMatrix: typeof mathMap.rotateMatrix, std: typeof mathMap.std, sum: typeof mathMap.sum, variance: typeof mathMap.variance;
export declare const isUUID: typeof stringMap.isUUID, numberToRoman: typeof stringMap.numberToRoman, replaceAll: typeof stringMap.replaceAll, reverse: typeof stringMap.reverse, truncate: typeof stringMap.truncate;
export declare const measurePerformance: typeof systemMap.measurePerformance;

@@ -1,1 +0,138 @@

"use strict";
import { a as r } from "./index-BcUXXKG6.js";
import { c as e } from "./index-DC7EQ3Fn.js";
import { d as t } from "./index-45DxtEUj.js";
import { m as o } from "./index-Clwa8jBZ.js";
import { s as a } from "./index-BF7uXD_6.js";
import { s as i } from "./index-DmYg_ZiI.js";
const {
all: u,
any: d,
bubbleSort: f,
chunk: b,
compact: g,
heapSort: S,
insertionSort: q,
intersection: y,
mergeSort: M,
partition: h,
permutations: U,
quickSort: k,
range: C,
sample: I,
selectionSort: v,
shuffle: x,
timSort: A,
unique: B
} = r, {
buildUrl: D,
createCounter: F,
isArray: N,
isBigInt: P,
isBoolean: T,
isDate: j,
isError: E,
isFloat: L,
isFunction: O,
isInteger: R,
isNull: W,
isNumber: Y,
isObject: w,
isString: z,
isSymbol: G,
isUndefined: H,
parseUrl: J,
scheduler: K,
sleep: Q,
toType: V
} = e, { age: X, dateCalculator: Z, isLeapYear: _, isWeekend: $ } = t, {
nCr: rr,
nPr: er,
binomial: tr,
factorial: or,
gcd: ar,
hypergeometric: ir,
iqr: sr,
lerp: nr,
mean: mr,
median: cr,
mode: pr,
poisson: lr,
q1: ur,
q2: dr,
q3: fr,
q4: br,
rotateMatrix: gr,
std: Sr,
sum: qr,
variance: yr
} = o, { isUUID: Mr, numberToRoman: hr, replaceAll: Ur, reverse: kr, truncate: Cr } = a, { measurePerformance: Ir } = i;
export {
X as age,
u as all,
d as any,
tr as binomial,
f as bubbleSort,
D as buildUrl,
b as chunk,
g as compact,
F as createCounter,
Z as dateCalculator,
or as factorial,
ar as gcd,
S as heapSort,
ir as hypergeometric,
q as insertionSort,
y as intersection,
sr as iqr,
N as isArray,
P as isBigInt,
T as isBoolean,
j as isDate,
E as isError,
L as isFloat,
O as isFunction,
R as isInteger,
_ as isLeapYear,
W as isNull,
Y as isNumber,
w as isObject,
z as isString,
G as isSymbol,
Mr as isUUID,
H as isUndefined,
$ as isWeekend,
nr as lerp,
mr as mean,
Ir as measurePerformance,
cr as median,
M as mergeSort,
pr as mode,
rr as nCr,
er as nPr,
hr as numberToRoman,
J as parseUrl,
h as partition,
U as permutations,
lr as poisson,
ur as q1,
dr as q2,
fr as q3,
br as q4,
k as quickSort,
C as range,
Ur as replaceAll,
kr as reverse,
gr as rotateMatrix,
I as sample,
K as scheduler,
v as selectionSort,
x as shuffle,
Q as sleep,
Sr as std,
qr as sum,
A as timSort,
V as toType,
Cr as truncate,
B as unique,
yr as variance
};

@@ -23,3 +23,3 @@ {

],
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.js",

@@ -29,7 +29,37 @@ "exports": {

"import": "./dist/index.js",
"require": "./dist/index.js"
"require": "./dist/index.cjs"
},
"./array": {
"import": "./dist/array.js",
"require": "./dist/array.cjs",
"types": "./dist/array/index.d.ts"
},
"./core": {
"import": "./dist/core.js",
"require": "./dist/core.cjs",
"types": "./dist/core/index.d.ts"
},
"./date": {
"import": "./dist/date.js",
"require": "./dist/date.cjs",
"types": "./dist/date/index.d.ts"
},
"./math": {
"import": "./dist/math.js",
"require": "./dist/math.cjs",
"types": "./dist/math/index.d.ts"
},
"./string": {
"import": "./dist/string.js",
"require": "./dist/string.cjs",
"types": "./dist/string/index.d.ts"
},
"./system": {
"import": "./dist/system.js",
"require": "./dist/system.cjs",
"types": "./dist/system/index.d.ts"
}
},
"types": "./dist/index.d.ts",
"version": "0.0.1",
"version": "0.0.5",
"scripts": {

@@ -43,7 +73,11 @@ "dev": "vite",

"@eslint/js": "^9.9.0",
"@types/eslint__js": "^8.42.3",
"@types/node": "^22.4.1",
"@types/uuid": "^10.0.0",
"eslint": "^9.9.0",
"globals": "^15.9.0",
"prettier-plugin-organize-imports": "^4.0.0",
"typescript": "^5.5.3",
"typescript-eslint": "^8.1.0",
"uuid": "^10.0.0",
"vite": "^5.4.1",

@@ -50,0 +84,0 @@ "vite-plugin-dts": "^4.0.3",

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