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

@opencreek/ext

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencreek/ext - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0--canary.19.3637470431.0

build/strings.d.ts

2

build/error.d.ts

@@ -5,3 +5,3 @@ /**

*/
export declare function error(msg?: string): never;
export declare function error(msg?: string, ...args: any | undefined | null): never;
//# sourceMappingURL=error.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.error = void 0;
const strings_1 = require("./strings");
/**

@@ -8,6 +9,7 @@ * error will throw an error with the given message, if any

*/
function error(msg) {
throw new Error(msg);
function error(msg, ...args) {
const str = (0, strings_1.format)(msg !== null && msg !== void 0 ? msg : "", ...args);
throw new Error(str);
}
exports.error = error;
//# sourceMappingURL=error.js.map
{
"name": "@opencreek/ext",
"version": "1.9.0",
"version": "1.10.0--canary.19.3637470431.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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

import { format } from "./strings"
/**

@@ -5,4 +7,5 @@ * error will throw an error with the given message, if any

*/
export function error(msg?: string): never {
throw new Error(msg)
export function error(msg?: string, ...args: any | undefined | null): never {
const str = format(msg ?? "", ...args)
throw new Error(str)
}

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