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

@ark/util

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ark/util - npm Package Compare versions

Comparing version 0.38.0 to 0.39.0

4

out/errors.d.ts

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

import type { keyNonimal } from "./generics.ts";
import type { brand } from "./generics.ts";
export declare class InternalArktypeError extends Error {

@@ -30,3 +30,3 @@ }

export interface ErrorType<message extends string = string, ctx extends {} = {}> {
[keyNonimal]: "ErrorObject";
[brand]: "ErrorObject";
message: message;

@@ -33,0 +33,0 @@ ctx: ctx;

@@ -39,8 +39,5 @@ import type { Primitive } from "./domain.ts";

export type exactEquals<l, r> = (<_>() => _ extends l ? 1 : 2) extends <_>() => _ extends r ? 1 : 2 ? true : false;
/** You can avoid suggesting completions by prefixing a string key with whitespace.
* Isn't that keyNominal?
*/
export declare const keyNonimal = " keyNonimal";
export declare const brand: " brand";
export type Brand<t = unknown, id = unknown> = t & {
readonly [keyNonimal]: [t, id];
readonly [brand]: [t, id];
};

@@ -47,0 +44,0 @@ export type unbrand<t> = t extends Brand<infer base, string> ? base : never;

import { noSuggest } from "./errors.js";
/** You can avoid suggesting completions by prefixing a string key with whitespace.
* Isn't that keyNominal?
*/
export const keyNonimal = " keyNonimal";
export const brand = noSuggest("brand");
export const narrow = (t) => t;
/** primitive key used to represent an inferred type at compile-time */
export const inferred = noSuggest("arkInferred");

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

export declare const arkUtilVersion = "0.38.0";
export declare const arkUtilVersion = "0.39.0";
export declare const initialRegistryContents: {

@@ -3,0 +3,0 @@ version: string;

import { domainOf } from "./domain.js";
import { throwInternalError } from "./errors.js";
import { tryCatch } from "./functions.js";
import { FileConstructor, objectKindOf } from "./objectKinds.js";

@@ -8,6 +9,6 @@ // Eventually we can just import from package.json in the source itself

// For now, we assert this matches the package.json version via a unit test.
export const arkUtilVersion = "0.38.0";
export const arkUtilVersion = "0.39.0";
export const initialRegistryContents = {
version: arkUtilVersion,
filename: import.meta.filename ?? globalThis.__filename ?? "unknown",
filename: tryCatch(() => import.meta.filename ?? undefined, () => globalThis.__filename ?? "unknown"),
FileConstructor

@@ -14,0 +15,0 @@ };

{
"name": "@ark/util",
"version": "0.38.0",
"version": "0.39.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": {

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