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

emery

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emery - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

1

assertions/dist/emery-assertions.cjs.d.ts
export * from "../../dist/declarations/src/assertions";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1lcnktYXNzZXJ0aW9ucy5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9hc3NlcnRpb25zLmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
export * from "../../dist/declarations/src/checks/index";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1lcnktY2hlY2tzLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZGlzdC9kZWNsYXJhdGlvbnMvc3JjL2NoZWNrcy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=

4

dist/declarations/src/checks/index.d.ts

@@ -1,3 +0,3 @@

export { isEven, isFinite, isFloat, isInfinite, isInteger, isNegative, isNegativeZero, isNonNegative, isNonPositive, isOdd, isPositive, } from './number';
export { checkAll, checkAllWith, negate } from './utils';
export { isEven, isFinite, isFloat, isInfinite, isInteger, isNegative, isNegativeZero, isNonNegative, isNonPositive, isOdd, isPositive, } from "./number.js";
export { checkAll, checkAllWith, negate } from "./utils.js";
//# sourceMappingURL=index.d.ts.map

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

import { UnaryPredicate } from '../types';
import { UnaryPredicate } from "../types.js";
/** Checks whether a number is a finite */

@@ -3,0 +3,0 @@ export declare const isFinite: UnaryPredicate<number>;

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

import { UnaryPredicate } from '../types';
import { UnaryPredicate } from "../types.js";
/**

@@ -3,0 +3,0 @@ * Returns a new function for checking *all* cases against a value, a bit

/// <reference lib="es2020.promise" />
import { Nullish } from './types';
import { Nullish } from "./types.js";
/** Checks whether a value is a boolean */

@@ -4,0 +4,0 @@ export declare function isBoolean(value: unknown): value is boolean;

@@ -1,9 +0,9 @@

export { assert, assertNever, warning } from './assertions';
export { isEven, isFinite, isFloat, isInfinite, isInteger, isNegative, isNegativeZero, isNonNegative, isNonPositive, isOdd, isPositive, } from './checks/number';
export { checkAll, checkAllWith, negate } from './checks/utils';
export { isBoolean, isDefined, isNonEmptyArray, isNull, isNullish, isNumber, isString, isUndefined, isFulfilled, isRejected, } from './guards';
export { castToOpaque } from './opaques';
export { getErrorMessage } from './utils/error';
export { typedEntries, typedKeys } from './utils/object';
export type { Nullish, Opaque, UnaryPredicate } from './types';
export { assert, assertNever, warning } from "./assertions.js";
export { isEven, isFinite, isFloat, isInfinite, isInteger, isNegative, isNegativeZero, isNonNegative, isNonPositive, isOdd, isPositive, } from "./checks/number.js";
export { checkAll, checkAllWith, negate } from "./checks/utils.js";
export { isBoolean, isDefined, isNonEmptyArray, isNull, isNullish, isNumber, isString, isUndefined, isFulfilled, isRejected, } from "./guards.js";
export { castToOpaque } from "./opaques.js";
export { getErrorMessage } from "./utils/error.js";
export { typedEntries, typedKeys } from "./utils/object.js";
export type { Nullish, Opaque, UnaryPredicate } from "./types.js";
//# sourceMappingURL=index.d.ts.map

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

import { Opaque, Transparent, ValidOpaqueValues } from './types';
import { Opaque, Transparent, ValidOpaqueValues } from "./types.js";
/**

@@ -3,0 +3,0 @@ * A generic helper function that takes a primitive value, and returns the value

@@ -1,3 +0,3 @@

export { getErrorMessage } from './error';
export { typedEntries, typedKeys } from './object';
export { getErrorMessage } from "./error.js";
export { typedEntries, typedKeys } from "./object.js";
//# sourceMappingURL=index.d.ts.map

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

import { ObjectEntry } from '../types';
import { ObjectEntry } from "../types.js";
/**

@@ -3,0 +3,0 @@ * An alternative to `Object.entries()` that avoids type widening.

export * from "./declarations/src/index";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1lcnkuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
export * from "../../dist/declarations/src/guards";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1lcnktZ3VhcmRzLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZGlzdC9kZWNsYXJhdGlvbnMvc3JjL2d1YXJkcy5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
export * from "../../dist/declarations/src/opaques";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1lcnktb3BhcXVlcy5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9vcGFxdWVzLmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
{
"name": "emery",
"version": "1.4.2",
"version": "1.4.3",
"description": "Utilities to help polish the rough parts of TypeScript.",
"main": "dist/emery.cjs.js",
"module": "dist/emery.esm.js",
"exports": {
".": {
"module": "./dist/emery.esm.js",
"default": "./dist/emery.cjs.js"
},
"./guards": {
"module": "./guards/dist/emery-guards.esm.js",
"default": "./guards/dist/emery-guards.cjs.js"
},
"./opaques": {
"module": "./opaques/dist/emery-opaques.esm.js",
"default": "./opaques/dist/emery-opaques.cjs.js"
},
"./assertions": {
"module": "./assertions/dist/emery-assertions.esm.js",
"default": "./assertions/dist/emery-assertions.cjs.js"
},
"./utils": {
"module": "./utils/dist/emery-utils.esm.js",
"default": "./utils/dist/emery-utils.cjs.js"
},
"./checks": {
"module": "./checks/dist/emery-checks.esm.js",
"default": "./checks/dist/emery-checks.cjs.js"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/thinkmill/emery.git",

@@ -52,2 +79,3 @@ "homepage": "https://emery-ts.vercel.app",

"preconstruct": {
"exports": true,
"entrypoints": [

@@ -68,3 +96,3 @@ "index.ts",

"@markdoc/next.js": "^0.1.4",
"@preconstruct/cli": "^2.1.5",
"@preconstruct/cli": "^2.8.3",
"@types/jest": "^27.5.1",

@@ -71,0 +99,0 @@ "@types/react": "^18.0.9",

# Emery
<a href="https://emery-ts.vercel.app/">
<img src=".github/assets/banner.svg" alt="Polish for the rough parts of TypeScript" />
</a>
<p>
<a aria-label="NPM version" href="https://www.npmjs.com/package/emery.svg">
<img alt="" src="https://img.shields.io/npm/v/emery.svg?style=for-the-badge&labelColor=0869B8">
</a>
<a aria-label="License" href="#">
<img alt="" src="https://img.shields.io/npm/l/emery.svg?style=for-the-badge&labelColor=579805">
</a>
<a aria-label="Website" href="https://emery-ts.vercel.app/">
<img src="https://img.shields.io/badge/Website-2F6BFF.svg?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLWdsb2JlIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCI+PC9jaXJjbGU+PGxpbmUgeDE9IjIiIHkxPSIxMiIgeDI9IjIyIiB5Mj0iMTIiPjwvbGluZT48cGF0aCBkPSJNMTIgMmExNS4zIDE1LjMgMCAwIDEgNCAxMCAxNS4zIDE1LjMgMCAwIDEtNCAxMCAxNS4zIDE1LjMgMCAwIDEtNC0xMCAxNS4zIDE1LjMgMCAwIDEgNC0xMHoiPjwvcGF0aD48L3N2Zz4=&labelColor=0737ad&locoColor=white&logoWidth=0">
</a>
<a aria-label="Thinkmill Logo" href="https://www.thinkmill.com.au/open-source?utm_campaign=github-emery">
<img src="https://img.shields.io/badge/A%20Thinkmill%20Project-ed0000.svg?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTg2IiBoZWlnaHQ9IjU4NiIgdmlld0JveD0iMCAwIDU4NiA1ODYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTk2XzQwNikiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTU4NiAyOTNDNTg2IDQ1NC44MTkgNDU0LjgxOSA1ODYgMjkzIDU4NkMxMzEuMTgxIDU4NiAwIDQ1NC44MTkgMCAyOTNDMCAxMzEuMTgxIDEzMS4xODEgMCAyOTMgMEM0NTQuODE5IDAgNTg2IDEzMS4xODEgNTg2IDI5M1pNMjA1Ljc3NiAzNTguOTQ0QzE5MS4zNzYgMzU4Ljk0NCAxODUuOTA0IDM1Mi4zMiAxODUuOTA0IDMzNS45MDRWMjYyLjc1MkgyMTQuNDE2VjIzNy42OTZIMTg1LjkwNFYyMDEuMTJIMTUzLjA3MlYyMzcuNjk2SDEyOC41OTJWMjYyLjc1MkgxNTMuMDcyVjM0MC44QzE1My4wNzIgMzcyLjc2OCAxNjYuNjA4IDM4NS43MjggMTk3LjQyNCAzODUuNzI4QzIwMy40NzIgMzg1LjcyOCAyMTAuOTYgMzg0LjU3NiAyMTUuODU2IDM4My4xMzZWMzU3LjUwNEMyMTMuNTUyIDM1OC4zNjggMjA5LjUyIDM1OC45NDQgMjA1Ljc3NiAzNTguOTQ0Wk00MDcuMzc2IDIzNC4yNEMzODUuMiAyMzQuMjQgMzcxLjA4OCAyNDQuMDMyIDM2MC40MzIgMjYwLjczNkMzNTIuOTQ0IDI0My40NTYgMzM3LjM5MiAyMzQuMjQgMzE3LjIzMiAyMzQuMjRDMjk5Ljk1MiAyMzQuMjQgMjg2Ljk5MiAyNDEuMTUyIDI3Ni42MjQgMjU1LjI2NEgyNzYuMDQ4VjIzNy42OTZIMjQ0LjY1NlYzODRIMjc3LjQ4OFYzMDUuNjY0QzI3Ny40ODggMjc3LjQ0IDI4OC43MiAyNjAuNzM2IDMwOC4zMDQgMjYwLjczNkMzMjUuMjk2IDI2MC43MzYgMzM0LjUxMiAyNzIuODMyIDMzNC41MTIgMjkzLjU2OFYzODRIMzY3LjM0NFYzMDUuMDg4QzM2Ny4zNDQgMjc3LjE1MiAzNzguODY0IDI2MC43MzYgMzk4LjE2IDI2MC43MzZDNDE0LjU3NiAyNjAuNzM2IDQyNC42NTYgMjcxLjEwNCA0MjQuNjU2IDI5Ny4wMjRWMzg0SDQ1Ny40ODhWMjkzLjg1NkM0NTcuNDg4IDI1NC40IDQzOC40OCAyMzQuMjQgNDA3LjM3NiAyMzQuMjRaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzE5OTZfNDA2Ij4KPHJlY3Qgd2lkdGg9IjU4NiIgaGVpZ2h0PSI1ODYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==&labelColor=C60200&locoColor=white&logoWidth=0">
</a>
</p>
---
💎 Polish for the rough parts of TypeScript.

@@ -68,1 +88,9 @@

While that's not currently possible, it became apparent that there was demand for a solution. We also discovered that many developers were carrying around miscellaneous utilities for working with TypeScript between projects.
---
## License
Copyright (c) 2023
[Thinkmill Labs](https://www.thinkmill.com.au/labs?utm_campaign=github-emery)
Pty Ltd. Licensed under the MIT License.
export * from "../../dist/declarations/src/utils/index";
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1lcnktdXRpbHMuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9kaXN0L2RlY2xhcmF0aW9ucy9zcmMvdXRpbHMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9

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

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