@springworks/error-factory
Advanced tools
Comparing version 2018.11.13-9.39.45 to 2018.11.13-15.44.56
@@ -1,3 +0,3 @@ | ||
import { FelError } from './fel'; | ||
export { FelError } from './fel'; | ||
import { FelError } from '@springworks/fel'; | ||
export { FelError } from '@springworks/fel'; | ||
export interface CreateErrorParams { | ||
@@ -10,2 +10,2 @@ code?: number; | ||
} | ||
export declare function createError(params?: CreateErrorParams): FelError; | ||
export declare function createError(opt_params?: CreateErrorParams): FelError; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fel_1 = require("./fel"); | ||
const fel = require("@springworks/fel"); | ||
const internals_1 = require("./internals"); | ||
function createError(params = {}) { | ||
function createError(opt_params) { | ||
const params = opt_params || {}; | ||
if (!params.stack_from) { | ||
params.stack_from = createError; | ||
} | ||
const error = fel_1.createError(params); | ||
const error = fel.createError(params); | ||
Object.defineProperties(error, { | ||
@@ -11,0 +12,0 @@ toJSON: { value: internals_1.getOutputPayload, enumerable: true }, |
@@ -1,1 +0,1 @@ | ||
{"name":"@springworks/error-factory","main":"index.js","dependencies":{"boom":"7.2.0","joi":"13.6.0"},"version":"2018.11.13-09.39.45+b86d49959f457909a5d0fecd2cf9a810755a4c9a"} | ||
{"name":"@springworks/error-factory","main":"index.js","dependencies":{"@springworks/fel":"2018.10.29-07.50.10+d38d2b98a852d64233c971d6f89f6ef28cedd614","boom":"7.2.0","joi":"13.6.0"},"version":"2018.11.13-15.44.56+d20f50d26de17de17b018833bc97877349913721"} |
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
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
5825
167
3