@contember/utilities
Advanced tools
Comparing version 2.0.0-alpha.19 to 2.0.0-alpha.20
@@ -1,19 +0,5 @@ | ||
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"; | ||
import { BijectiveIndexedMap } from "./src/structures/BijectiveIndexedMap.js"; | ||
@@ -23,25 +9,10 @@ import { LRUCache } from "./src/structures/LRUCache.js"; | ||
export { | ||
AssertionError, | ||
BijectiveIndexedMap, | ||
LRUCache, | ||
WeakIdCache, | ||
assert, | ||
assertNever, | ||
dataAttribute, | ||
dateToStringWithoutTimezone, | ||
deprecate, | ||
getElementDimensions, | ||
getElementDimensionsCallback, | ||
getSizeFromResizeObserverEntryFactory, | ||
isNonNegativeNumber, | ||
isSpecialLinkClick, | ||
omit, | ||
pick, | ||
px, | ||
range, | ||
shouldCancelStart, | ||
stateDataAttributes, | ||
svgSizeProps, | ||
toKebabCase | ||
svgSizeProps | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,19 +0,5 @@ | ||
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"; | ||
import { BijectiveIndexedMap } from "./src/structures/BijectiveIndexedMap.js"; | ||
@@ -23,25 +9,10 @@ import { LRUCache } from "./src/structures/LRUCache.js"; | ||
export { | ||
AssertionError, | ||
BijectiveIndexedMap, | ||
LRUCache, | ||
WeakIdCache, | ||
assert, | ||
assertNever, | ||
dataAttribute, | ||
dateToStringWithoutTimezone, | ||
deprecate, | ||
getElementDimensions, | ||
getElementDimensionsCallback, | ||
getSizeFromResizeObserverEntryFactory, | ||
isNonNegativeNumber, | ||
isSpecialLinkClick, | ||
omit, | ||
pick, | ||
px, | ||
range, | ||
shouldCancelStart, | ||
stateDataAttributes, | ||
svgSizeProps, | ||
toKebabCase | ||
svgSizeProps | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,6 +0,2 @@ | ||
export * from './AssertionError'; | ||
export * from './Predicates'; | ||
export * from './assert'; | ||
export * from './assertNever'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
export * from './dataAttribute'; | ||
export * from './getElementDimensions'; | ||
export * from './getSizeFromResizeObserverEntry'; | ||
export * from './shouldCancelStart'; | ||
export * from './stateDataAttributes'; | ||
export * from './svgSizeProps'; | ||
//# sourceMappingURL=index.d.ts.map |
export * from './assert-types'; | ||
export * from './css-utilities'; | ||
export * from './data-utilities'; | ||
export * from './deprecate'; | ||
export * from './dom'; | ||
export * from './events'; | ||
export * from './functional'; | ||
export * from './string-utilities'; | ||
export * from './types'; | ||
export * from './structures'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -19,7 +19,7 @@ export declare class BijectiveIndexedMap<K, V> implements Map<K, V> { | ||
changeKeyOrder(newOrder: Iterable<K>): void; | ||
[Symbol.iterator](): IterableIterator<[K, V]>; | ||
entries(): IterableIterator<[K, V]>; | ||
keys(): IterableIterator<K>; | ||
values(): IterableIterator<V>; | ||
[Symbol.iterator](): MapIterator<[K, V]>; | ||
entries(): MapIterator<[K, V]>; | ||
keys(): MapIterator<K>; | ||
values(): MapIterator<V>; | ||
} | ||
//# sourceMappingURL=BijectiveIndexedMap.d.ts.map |
export * from './Narrow'; | ||
export * from './Partial'; | ||
export * from './NonOptional'; | ||
export * from './PolymorphicRefs'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@contember/utilities", | ||
"license": "Apache-2.0", | ||
"version": "2.0.0-alpha.19", | ||
"version": "2.0.0-alpha.20", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
@@ -1,5 +0,1 @@ | ||
export * from './AssertionError' | ||
export * from './Predicates' | ||
export * from './assert' | ||
export * from './assertNever' | ||
export * from './types' |
export * from './dataAttribute' | ||
export * from './getElementDimensions' | ||
export * from './getSizeFromResizeObserverEntry' | ||
export * from './shouldCancelStart' | ||
export * from './stateDataAttributes' | ||
export * from './svgSizeProps' |
export * from './assert-types' | ||
export * from './css-utilities' | ||
export * from './data-utilities' | ||
export * from './deprecate' | ||
export * from './dom' | ||
export * from './events' | ||
export * from './functional' | ||
export * from './string-utilities' | ||
export * from './types' | ||
export * from './structures' |
@@ -113,7 +113,7 @@ // Bijective as in we need to supply the inverse and also guarantee that the values are unique. | ||
public *[Symbol.iterator](): IterableIterator<[K, V]> { | ||
public *[Symbol.iterator](): MapIterator<[K, V]> { | ||
yield* this.entries() | ||
} | ||
public *entries(): IterableIterator<[K, V]> { | ||
public *entries(): MapIterator<[K, V]> { | ||
for (const value of this.values()) { | ||
@@ -124,3 +124,3 @@ yield [this.inverse(value), value] | ||
public *keys(): IterableIterator<K> { | ||
public *keys(): MapIterator<K> { | ||
for (const value of this.values()) { | ||
@@ -131,3 +131,3 @@ yield this.inverse(value) | ||
public *values(): IterableIterator<V> { | ||
public *values(): MapIterator<V> { | ||
for (const value of this.valueStore.values()) { | ||
@@ -134,0 +134,0 @@ if (value === undefined) { |
@@ -27,4 +27,4 @@ // This is heavily inspired by https://stackoverflow.com/a/46432113 | ||
private getOldestKey(): Key { | ||
return this.cache.keys().next().value | ||
return this.cache.keys().next().value! | ||
} | ||
} |
export * from './Narrow' | ||
export * from './Partial' | ||
export * from './NonOptional' | ||
export * from './PolymorphicRefs' |
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
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123589
125
1402