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

@contember/utilities

Package Overview
Dependencies
Maintainers
4
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/utilities - npm Package Compare versions

Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.8

api-extractor.json

36

dist/development/index.js

@@ -1,19 +0,19 @@

import { AssertionError } from "./assert-types/AssertionError.js";
import { isNonNegativeNumber } from "./assert-types/Predicates.js";
import { assert } from "./assert-types/assert.js";
import { assertNever } from "./assert-types/assertNever.js";
import { px } from "./css-utilities/px.js";
import { dateToStringWithoutTimezone } from "./data-utilities/dateToStringWithoutTimezone.js";
import { deprecate } from "./deprecate/deprecate.js";
import { dataAttribute } from "./dom/dataAttribute.js";
import { getElementDimensions, getElementDimensionsCallback } from "./dom/getElementDimensions.js";
import { getSizeFromResizeObserverEntryFactory } from "./dom/getSizeFromResizeObserverEntry.js";
import { shouldCancelStart } from "./dom/shouldCancelStart.js";
import { stateDataAttributes } from "./dom/stateDataAttributes.js";
import { svgSizeProps } from "./dom/svgSizeProps.js";
import { isSpecialLinkClick } from "./events/isSpecialLinkClick.js";
import { omit } from "./functional/omit.js";
import { pick } from "./functional/pick.js";
import { range } from "./functional/range.js";
import { toKebabCase } from "./string-utilities/kebabCase.js";
import { AssertionError } from "./src/assert-types/AssertionError.js";
import { isNonNegativeNumber } from "./src/assert-types/Predicates.js";
import { assert } from "./src/assert-types/assert.js";
import { assertNever } from "./src/assert-types/assertNever.js";
import { px } from "./src/css-utilities/px.js";
import { dateToStringWithoutTimezone } from "./src/data-utilities/dateToStringWithoutTimezone.js";
import { deprecate } from "./src/deprecate/deprecate.js";
import { dataAttribute } from "./src/dom/dataAttribute.js";
import { getElementDimensions, getElementDimensionsCallback } from "./src/dom/getElementDimensions.js";
import { getSizeFromResizeObserverEntryFactory } from "./src/dom/getSizeFromResizeObserverEntry.js";
import { shouldCancelStart } from "./src/dom/shouldCancelStart.js";
import { stateDataAttributes } from "./src/dom/stateDataAttributes.js";
import { svgSizeProps } from "./src/dom/svgSizeProps.js";
import { isSpecialLinkClick } from "./src/events/isSpecialLinkClick.js";
import { omit } from "./src/functional/omit.js";
import { pick } from "./src/functional/pick.js";
import { range } from "./src/functional/range.js";
import { toKebabCase } from "./src/string-utilities/kebabCase.js";
export {

@@ -20,0 +20,0 @@ AssertionError,

@@ -1,19 +0,19 @@

import { AssertionError } from "./assert-types/AssertionError.js";
import { isNonNegativeNumber } from "./assert-types/Predicates.js";
import { assert } from "./assert-types/assert.js";
import { assertNever } from "./assert-types/assertNever.js";
import { px } from "./css-utilities/px.js";
import { dateToStringWithoutTimezone } from "./data-utilities/dateToStringWithoutTimezone.js";
import { deprecate } from "./deprecate/deprecate.js";
import { dataAttribute } from "./dom/dataAttribute.js";
import { getElementDimensions, getElementDimensionsCallback } from "./dom/getElementDimensions.js";
import { getSizeFromResizeObserverEntryFactory } from "./dom/getSizeFromResizeObserverEntry.js";
import { shouldCancelStart } from "./dom/shouldCancelStart.js";
import { stateDataAttributes } from "./dom/stateDataAttributes.js";
import { svgSizeProps } from "./dom/svgSizeProps.js";
import { isSpecialLinkClick } from "./events/isSpecialLinkClick.js";
import { omit } from "./functional/omit.js";
import { pick } from "./functional/pick.js";
import { range } from "./functional/range.js";
import { toKebabCase } from "./string-utilities/kebabCase.js";
import { AssertionError } from "./src/assert-types/AssertionError.js";
import { isNonNegativeNumber } from "./src/assert-types/Predicates.js";
import { assert } from "./src/assert-types/assert.js";
import { assertNever } from "./src/assert-types/assertNever.js";
import { px } from "./src/css-utilities/px.js";
import { dateToStringWithoutTimezone } from "./src/data-utilities/dateToStringWithoutTimezone.js";
import { deprecate } from "./src/deprecate/deprecate.js";
import { dataAttribute } from "./src/dom/dataAttribute.js";
import { getElementDimensions, getElementDimensionsCallback } from "./src/dom/getElementDimensions.js";
import { getSizeFromResizeObserverEntryFactory } from "./src/dom/getSizeFromResizeObserverEntry.js";
import { shouldCancelStart } from "./src/dom/shouldCancelStart.js";
import { stateDataAttributes } from "./src/dom/stateDataAttributes.js";
import { svgSizeProps } from "./src/dom/svgSizeProps.js";
import { isSpecialLinkClick } from "./src/events/isSpecialLinkClick.js";
import { omit } from "./src/functional/omit.js";
import { pick } from "./src/functional/pick.js";
import { range } from "./src/functional/range.js";
import { toKebabCase } from "./src/string-utilities/kebabCase.js";
export {

@@ -20,0 +20,0 @@ AssertionError,

{
"name": "@contember/utilities",
"license": "Apache-2.0",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.8",
"type": "module",

@@ -20,2 +20,3 @@ "sideEffects": false,

"production": "./dist/production/index.cjs",
"typescript": "./src/index.ts",
"default": "./dist/production/index.cjs"

@@ -25,14 +26,6 @@ }

},
"files": [
"dist/",
"src/"
],
"typings": "./dist/types/index.d.ts",
"scripts": {
"build": "yarn build:js:dev && yarn build:js:prod",
"build:js:dev": "NODE_ENV=development vite build --mode development",
"build:js:prod": "vite build --mode production",
"ae:build": "api-extractor run --local",
"ae:test": "api-extractor run",
"test": "vitest"
"ae:test": "api-extractor run"
},

@@ -46,4 +39,3 @@ "repository": {

"react": "^18 || ^19"
},
"stableVersion": "0.0.0"
}
}
export function getSizeFromResizeObserverEntryFactory(box: ResizeObserverOptions['box']) {
return function getSizeFromResizeObserverEntry(entry: ResizeObserverEntry): { height: number, width: number } {
return function getSizeFromResizeObserverEntry(entry: ResizeObserverEntry): { height: number; width: number } {
const boxSize = box === 'border-box'

@@ -4,0 +4,0 @@ ? entry.borderBoxSize

export interface SvgSizeProps {
width: number;
height: number;
viewBox: string;
width: number
height: number
viewBox: string
}

@@ -6,0 +6,0 @@

export function omit<T extends Object, K extends keyof T>(object: T, properties: ReadonlyArray<K>, strict: boolean = false): Omit<T, K> {
const next: Partial<T> = { ...object }
const next: Partial<T> = { ...object }
for (let key of properties) {
if (key in object) {
delete next[key]
} else if (strict) {
throw new Error(`Key "${String(key)}" does not exist in object ${JSON.stringify(object)}`)
}
}
for (let key of properties) {
if (key in object) {
delete next[key]
} else if (strict) {
throw new Error(`Key "${String(key)}" does not exist in object ${JSON.stringify(object)}`)
}
}
return next as Omit<T, K>
return next as Omit<T, K>
}
{
"extends": "../../../tsconfig.settings.json",
"compilerOptions": {
"outDir": "../dist/types"
"outDir": "../dist/types",
"types": [
"vite/client"
]
}
}

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

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc