New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

verdaccio-memory

Package Overview
Dependencies
Maintainers
3
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verdaccio-memory - npm Package Compare versions

Comparing version 9.4.0 to 10.0.0-next.0

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

# [10.0.0-next.0](https://github.com/verdaccio/monorepo/compare/v9.4.0...v10.0.0-next.0) (2020-03-28)
### chore
* update tools dependencies and deprecate Node 8 ([61e23d5](https://github.com/verdaccio/monorepo/commit/61e23d53b82c6948601f28337fdd3054b9336914))
### BREAKING CHANGES
* New minimum Node version supported is 10.x. Also, new Prettier minimum version is 2.0.2
# [9.4.0](https://github.com/verdaccio/monorepo/compare/v9.3.4...v9.4.0) (2020-03-21)

@@ -8,0 +24,0 @@

2

lib/memory-handler.js

@@ -170,2 +170,2 @@ "use strict";

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tZW1vcnktaGFuZGxlci50cyJdLCJuYW1lcyI6WyJmcyIsIk1lbW9yeUZpbGVTeXN0ZW0iLCJNZW1vcnlIYW5kbGVyIiwiY29uc3RydWN0b3IiLCJwYWNrYWdlTmFtZSIsImRhdGEiLCJsb2dnZXIiLCJuYW1lIiwicGF0aCIsInVwZGF0ZVBhY2thZ2UiLCJwa2dGaWxlTmFtZSIsInVwZGF0ZUhhbmRsZXIiLCJvbldyaXRlIiwidHJhbnNmb3JtUGFja2FnZSIsIm9uRW5kIiwianNvbiIsIl9nZXRTdG9yYWdlIiwicGtnIiwiSlNPTiIsInBhcnNlIiwiZXJyIiwiZGVsZXRlUGFja2FnZSIsInBrZ05hbWUiLCJjYWxsYmFjayIsInJlbW92ZVBhY2thZ2UiLCJjcmVhdGVQYWNrYWdlIiwidmFsdWUiLCJjYiIsInNhdmVQ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ycm9yJywgKGVycm9yOiBWZXJkYWNjaW9FcnJvcikgPT4ge1xuICAgICAgICAgICAgcmVhZFRhcmJhbGxTdHJlYW0uZW1pdCgnZXJyb3InLCBlcnJvcik7XG4gICAgICAgICAgfSk7XG5cbiAgICAgICAgICByZWFkVGFyYmFsbFN0cmVhbS5hYm9ydCA9IGZ1bmN0aW9uICgpOiB2b2lkIHtcbiAgICAgICAgICAgIHJlYWRTdHJlYW0uZGVzdHJveShnZXRCYWRSZXF1ZXN0KCdyZWFkIGhhcyBiZWVuIGFib3J0ZWQnKSk7XG4gICAgICAgICAgfTtcbiAgICAgICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICAgICAgcmVhZFRhcmJhbGxTdHJlYW0uZW1pdCgnZXJyb3InLCBlcnIpO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgICB9KTtcblxuICAgIHJldHVybiByZWFkVGFyYmFsbFN0cmVhbTtcbiAgfVxuXG4gIHByaXZhdGUgX2dldFN0b3JhZ2UobmFtZSA9ICcnKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5kYXRhW25hbWVdO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE1lbW9yeUhhbmRsZXI7XG4iXX0=
{
"name": "verdaccio-memory",
"version": "9.4.0",
"version": "10.0.0-next.0",
"description": "Storage implementation in memory",

@@ -31,9 +31,9 @@ "keywords": [

"dependencies": {
"@verdaccio/commons-api": "^9.4.0",
"@verdaccio/streams": "^9.4.0",
"@verdaccio/commons-api": "^10.0.0-next.0",
"@verdaccio/streams": "^10.0.0-next.0",
"memory-fs": "0.5.0"
},
"devDependencies": {
"@verdaccio/babel-preset": "^9.4.0",
"@verdaccio/eslint-config": "^9.3.2",
"@verdaccio/babel-preset": "^10.0.0-next.0",
"@verdaccio/eslint-config": "^10.0.0-next.0",
"@verdaccio/types": "^9.3.0"

@@ -56,3 +56,3 @@ },

},
"gitHead": "8d7db27a3d1c975a912fa6daa962ff54538f90e3"
"gitHead": "b2b740dfb65ebb890b90e5987d66bac41fbaaa3a"
}
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