Socket
Socket
Sign inDemoInstall

@feathersjs/commons

Package Overview
Dependencies
Maintainers
4
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/commons - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

8

CHANGELOG.md
# Change Log
## [v1.2.0](https://github.com/feathersjs/commons/tree/v1.2.0) (2017-10-25)
[Full Changelog](https://github.com/feathersjs/commons/compare/v1.1.0...v1.2.0)
**Merged pull requests:**
- Bring back makeUrl [\#62](https://github.com/feathersjs/commons/pull/62) ([daffl](https://github.com/daffl))
- adding codeclimate config [\#60](https://github.com/feathersjs/commons/pull/60) ([ekryski](https://github.com/ekryski))
## [v1.1.0](https://github.com/feathersjs/commons/tree/v1.1.0) (2017-10-23)

@@ -4,0 +12,0 @@ [Full Changelog](https://github.com/feathersjs/commons/compare/v1.0.0...v1.1.0)

9

lib/hooks.js

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

const { each } = require('./utils')._;
const { each, pick } = require('./utils')._;

@@ -38,2 +38,9 @@ function convertGetOrRemove (args) {

Object.defineProperty(hook, 'toJSON', {
value () {
return pick(this, 'type', 'method', 'path',
'params', 'id', 'data', 'result', 'error');
}
});
return Object.assign(hook, data, {

@@ -40,0 +47,0 @@ method,

4

lib/utils.js

@@ -61,3 +61,5 @@ // Removes all leading and trailing slashes from a path

keys.forEach(key => {
result[key] = source[key];
if (source[key] !== undefined) {
result[key] = source[key];
}
});

@@ -64,0 +66,0 @@ return result;

{
"name": "@feathersjs/commons",
"version": "1.2.0",
"version": "1.3.0",
"description": "Shared Feathers utility functions",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/feathersjs/commons",

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