@hapi/catbox
Advanced tools
Comparing version 11.1.1 to 12.0.0
@@ -90,3 +90,3 @@ 'use strict'; | ||
if (!this._events) { | ||
this._events = new Podium(internals.events); | ||
this._events = new Podium.Podium(internals.events, { validate: false }); | ||
} | ||
@@ -298,3 +298,3 @@ | ||
if (report && report.isStale !== undefined) { | ||
if (report?.isStale !== undefined) { | ||
this.stats.hits = this.stats.hits + pending.count; | ||
@@ -405,3 +405,3 @@ } | ||
rule.expiresIn = options.expiresIn || 0; | ||
rule.expiresIn = options.expiresIn ?? 0; | ||
} | ||
@@ -438,4 +438,4 @@ | ||
now = now || Date.now(); | ||
created = created || now; | ||
now = now ?? Date.now(); | ||
created = created ?? now; | ||
const age = now - created; | ||
@@ -442,0 +442,0 @@ |
@@ -1,3 +0,4 @@ | ||
Copyright (c) 2012-2020, Sideway Inc, and project contributors | ||
Copyright (c) 2012-2014, Walmart. | ||
Copyright (c) 2012-2022, Project contributors | ||
Copyright (c) 2012-2020, Sideway Inc | ||
Copyright (c) 2012-2014, Walmart. | ||
All rights reserved. | ||
@@ -4,0 +5,0 @@ |
{ | ||
"name": "@hapi/catbox", | ||
"description": "Multi-strategy object caching service", | ||
"version": "11.1.1", | ||
"version": "12.0.0", | ||
"repository": "git://github.com/hapijs/catbox", | ||
@@ -15,11 +15,17 @@ "main": "lib/index.js", | ||
], | ||
"eslintConfig": { | ||
"extends": [ | ||
"plugin:@hapi/module" | ||
] | ||
}, | ||
"dependencies": { | ||
"@hapi/boom": "9.x.x", | ||
"@hapi/hoek": "9.x.x", | ||
"@hapi/podium": "4.x.x", | ||
"@hapi/validate": "1.x.x" | ||
"@hapi/boom": "^10.0.0", | ||
"@hapi/hoek": "^10.0.0", | ||
"@hapi/podium": "^5.0.0", | ||
"@hapi/validate": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@hapi/code": "8.x.x", | ||
"@hapi/lab": "23.x.x" | ||
"@hapi/code": "^9.0.0", | ||
"@hapi/eslint-plugin": "*", | ||
"@hapi/lab": "^25.0.1" | ||
}, | ||
@@ -26,0 +32,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21860
3
+ Added@hapi/boom@10.0.1(transitive)
+ Added@hapi/hoek@10.0.111.0.4(transitive)
+ Added@hapi/podium@5.0.1(transitive)
+ Added@hapi/teamwork@6.0.0(transitive)
+ Added@hapi/topo@6.0.2(transitive)
+ Added@hapi/validate@2.0.1(transitive)
- Removed@hapi/boom@9.1.4(transitive)
- Removed@hapi/hoek@9.3.0(transitive)
- Removed@hapi/podium@4.1.3(transitive)
- Removed@hapi/teamwork@5.1.1(transitive)
- Removed@hapi/topo@5.1.0(transitive)
- Removed@hapi/validate@1.1.3(transitive)
Updated@hapi/boom@^10.0.0
Updated@hapi/hoek@^10.0.0
Updated@hapi/podium@^5.0.0
Updated@hapi/validate@^2.0.0