Socket
Socket
Sign inDemoInstall

@thi.ng/errors

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/errors - npm Package Compare versions

Comparing version 0.1.12 to 1.0.0

lib/index.js

22

CHANGELOG.md

@@ -6,2 +6,24 @@ # Change Log

# [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@0.1.12...@thi.ng/errors@1.0.0) (2019-01-21)
### Build System
* update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
### BREAKING CHANGES
* enabled multi-outputs (ES6 modules, CJS, UMD)
- build scripts now first build ES6 modules in package root, then call
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
- all imports MUST be updated to only refer to package level
(not individual files anymore). tree shaking in user land will get rid of
all unused imported symbols.
## [0.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@0.1.11...@thi.ng/errors@0.1.12) (2018-12-15)

@@ -8,0 +30,0 @@

2

illegal-arguments.d.ts
export declare class IllegalArgumentError extends Error {
constructor(msg?: any);
}
export declare function illegalArgs(msg?: any): never;
export declare const illegalArgs: (msg?: any) => never;

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class IllegalArgumentError extends Error {
export class IllegalArgumentError extends Error {
constructor(msg) {

@@ -8,6 +6,4 @@ super("illegal argument(s)" + (msg !== undefined ? ": " + msg : ""));

}
exports.IllegalArgumentError = IllegalArgumentError;
function illegalArgs(msg) {
export const illegalArgs = (msg) => {
throw new IllegalArgumentError(msg);
}
exports.illegalArgs = illegalArgs;
};
export declare class IllegalArityError extends Error {
constructor(n: number);
}
export declare function illegalArity(n: any): never;
export declare const illegalArity: (n: any) => never;

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class IllegalArityError extends Error {
export class IllegalArityError extends Error {
constructor(n) {

@@ -8,6 +6,4 @@ super(`illegal arity: ${n}`);

}
exports.IllegalArityError = IllegalArityError;
function illegalArity(n) {
export const illegalArity = (n) => {
throw new IllegalArityError(n);
}
exports.illegalArity = illegalArity;
};
export declare class IllegalStateError extends Error {
constructor(msg?: any);
}
export declare function illegalState(msg?: any): never;
export declare const illegalState: (msg?: any) => never;

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class IllegalStateError extends Error {
export class IllegalStateError extends Error {
constructor(msg) {

@@ -8,6 +6,4 @@ super("illegal state" + (msg !== undefined ? ": " + msg : ""));

}
exports.IllegalStateError = IllegalStateError;
function illegalState(msg) {
export const illegalState = (msg) => {
throw new IllegalStateError(msg);
}
exports.illegalState = illegalState;
};

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

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./illegal-arguments"));
__export(require("./illegal-arity"));
__export(require("./illegal-state"));
__export(require("./unsupported"));
export * from "./illegal-arguments";
export * from "./illegal-arity";
export * from "./illegal-state";
export * from "./unsupported";
{
"name": "@thi.ng/errors",
"version": "0.1.12",
"version": "1.0.0",
"description": "Custom error types and helper fns.",
"main": "./index.js",
"module": "./index.js",
"main": "./lib/index.js",
"umd:main": "./lib/index.umd.js",
"typings": "./index.d.ts",

@@ -15,8 +17,10 @@ "repository": {

"scripts": {
"build": "yarn run clean && tsc --declaration",
"clean": "rm -rf *.js *.d.ts .nyc_output build coverage doc",
"build": "yarn clean && yarn build:es6 && yarn build:bundle",
"build:es6": "tsc --declaration",
"build:bundle": "../../scripts/bundle-module errors",
"test": "rimraf build && tsc -p test/tsconfig.json && nyc mocha build/test/*.js",
"clean": "rimraf *.js *.d.ts .nyc_output build coverage doc lib",
"cover": "yarn test && nyc report --reporter=lcov",
"doc": "node_modules/.bin/typedoc --mode modules --out doc src",
"pub": "yarn run build && yarn publish --access public",
"test": "rm -rf build && tsc -p test && nyc mocha build/test/*.js"
"pub": "yarn build && yarn publish --access public"
},

@@ -28,3 +32,3 @@ "devDependencies": {

"nyc": "^13.1.0",
"typedoc": "^0.13.0",
"typedoc": "^0.14.0",
"typescript": "^3.2.2"

@@ -40,3 +44,11 @@ },

},
"gitHead": "159ce8f6b1d2dad1e12f2ba3f4f7b60d1623acee"
"browserslist": [
"since 2018-07"
],
"browser": {
"process": false,
"setTimeout": false
},
"sideEffects": false,
"gitHead": "348e7303b8b4d2749a02dd43e3f78d711242e4fe"
}
export declare class UnsupportedOperationError extends Error {
constructor(msg?: any);
}
export declare function unsupported(msg?: any): never;
export declare const unsupported: (msg?: any) => never;

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class UnsupportedOperationError extends Error {
export class UnsupportedOperationError extends Error {
constructor(msg) {

@@ -8,6 +6,4 @@ super("unsupported operation" + (msg !== undefined ? ": " + msg : ""));

}
exports.UnsupportedOperationError = UnsupportedOperationError;
function unsupported(msg) {
export const unsupported = (msg) => {
throw new UnsupportedOperationError(msg);
}
exports.unsupported = unsupported;
};
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