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

fel

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fel - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

lib/index.js

@@ -10,4 +10,2 @@ 'use strict';

var _shortid = require('shortid');
var _internals = require('./internals');

@@ -31,3 +29,3 @@

const error_id = (0, _shortid.generate)();
const error_id = (0, _internals.generateId)();
error.error_id = error_id;

@@ -34,0 +32,0 @@ error.output.payload.error_id = error_id;

@@ -6,2 +6,3 @@ 'use strict';

});
exports.generateId = generateId;
exports.getStatusCode = getStatusCode;

@@ -16,2 +17,12 @@ exports.getRootErrorId = getRootErrorId;

function generateId() {
const alphabet = '0123456789abcdefghijklmnopqrstuvwxyz-_';
const max = alphabet.length;
let id = '';
for (let i = 0; i < 10; i++) {
id += alphabet.charAt(Math.floor(Math.random() * max));
}
return id;
}
function getStatusCode(code, cause) {

@@ -18,0 +29,0 @@ if (typeof code === 'number' && code >= 400 && _http.STATUS_CODES[code]) {

@@ -15,19 +15,19 @@ {

"dependencies": {
"boom": "3.0.0",
"shortid": "2.2.4"
"boom": "3.0.0"
},
"devDependencies": {
"babel-cli": "6.2.0",
"babel-core": "6.2.0",
"babel-eslint": "4.1.5",
"babel-plugin-transform-strict-mode": "6.2.0",
"babel-preset-es2015-node4": "2.0.0",
"babel-cli": "6.3.15",
"babel-core": "6.3.15",
"babel-eslint": "4.1.6",
"babel-plugin-transform-strict-mode": "6.3.13",
"babel-preset-es2015-node4": "2.0.2",
"commitizen": "2.4.6",
"cz-conventional-changelog": "1.1.4",
"eslint": "1.9.0",
"eslint-config-springworks": "4.0.2",
"eslint-plugin-import": "0.10.0",
"cz-conventional-changelog": "1.1.5",
"eslint": "1.10.3",
"eslint-config-springworks": "5.0.0",
"eslint-plugin-import": "0.11.0",
"eslint-plugin-mocha": "1.1.0",
"istanbul": "0.4.0",
"joi": "7.0.0",
"eslint-plugin-springworks": "1.1.1",
"istanbul": "0.4.1",
"joi": "7.0.1",
"mocha": "2.3.4",

@@ -55,3 +55,3 @@ "semantic-release": "4.3.5",

"homepage": "https://github.com/Springworks/fel#readme",
"version": "1.1.0"
"version": "1.1.1"
}
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