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

@springworks/error-factory

Package Overview
Dependencies
Maintainers
1
Versions
434
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springworks/error-factory - npm Package Compare versions

Comparing version 2018.11.13-15.48.49 to 2018.11.13-19.41.16

fel.d.ts

6

index.d.ts

@@ -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.13-15.48.49+d20f50d26de17de17b018833bc97877349913721","boom":"7.2.0","joi":"13.6.0"},"version":"2018.11.13-15.48.49+d20f50d26de17de17b018833bc97877349913721"}
{"name":"@springworks/error-factory","main":"index.js","dependencies":{"boom":"7.2.0","joi":"13.6.0"},"version":"2018.11.13-19.41.16+83fa2eebadc7da594f54b34b0efb67d515b34dd8"}
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