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.1.0 to 1.2.0

.codeclimate.yml

8

CHANGELOG.md
# Change Log
## [v1.1.0](https://github.com/feathersjs/commons/tree/v1.1.0) (2017-10-23)
[Full Changelog](https://github.com/feathersjs/commons/compare/v1.0.0...v1.1.0)
**Merged pull requests:**
- Remove unused utilities and add some inline documentation [\#59](https://github.com/feathersjs/commons/pull/59) ([daffl](https://github.com/daffl))
- Add feathers-query-filters [\#58](https://github.com/feathersjs/commons/pull/58) ([daffl](https://github.com/daffl))
## [v1.0.0](https://github.com/feathersjs/commons/tree/v1.0.0) (2017-10-19)

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

@@ -137,1 +137,14 @@ // Removes all leading and trailing slashes from a path

};
exports.makeUrl = function makeUrl (path, app = {}) {
const get = typeof app.get === 'function' ? app.get.bind(app) : () => {};
const env = get('env') || process.env.NODE_ENV;
const host = get('host') || process.env.HOST_NAME || 'localhost';
const protocol = (env === 'development' || env === 'test' || (env === undefined)) ? 'http' : 'https';
const PORT = get('port') || process.env.PORT || 3030;
const port = (env === 'development' || env === 'test' || (env === undefined)) ? `:${PORT}` : '';
path = path || '';
return `${protocol}://${host}${port}/${exports.stripSlashes(path)}`;
};

2

package.json
{
"name": "@feathersjs/commons",
"version": "1.1.0",
"version": "1.2.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