@springworks/error-factory
Advanced tools
Comparing version 2018.11.12-8.42.19 to 2018.11.13-8.44.10
@@ -1,3 +0,3 @@ | ||
import { FelError } from '@springworks/fel'; | ||
export { FelError } from '@springworks/fel'; | ||
import { FelError } from './fel'; | ||
export { FelError } from './fel'; | ||
export interface CreateErrorParams { | ||
@@ -10,2 +10,2 @@ code?: number; | ||
} | ||
export declare function createError(opt_params?: CreateErrorParams): FelError; | ||
export declare function createError(params?: CreateErrorParams): FelError; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fel = require("@springworks/fel"); | ||
const fel_1 = require("./fel"); | ||
const internals_1 = require("./internals"); | ||
function createError(opt_params) { | ||
const params = opt_params || {}; | ||
function createError(params = {}) { | ||
if (!params.stack_from) { | ||
params.stack_from = createError; | ||
} | ||
const error = fel.createError(params); | ||
const error = fel_1.createError(params); | ||
Object.defineProperties(error, { | ||
@@ -12,0 +11,0 @@ toJSON: { value: internals_1.getOutputPayload, enumerable: true }, |
@@ -1,1 +0,1 @@ | ||
{"name":"@springworks/error-factory","main":"index.js","dependencies":{"@springworks/fel":"2018.11.12-08.42.19+23c58ee7380ce2439d5a0adb7f527157b19f0bb2","boom":"7.2.0","joi":"13.6.0"},"version":"2018.11.12-08.42.19+23c58ee7380ce2439d5a0adb7f527157b19f0bb2"} | ||
{"name":"@springworks/error-factory","main":"index.js","dependencies":{"boom":"7.2.0","joi":"13.6.0"},"version":"2018.11.13-08.44.10+7af0801cbbf0afc2e24731fd77f26348840678ac"} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
5674
2
7
166
2
2