@hapi/ammo
Advanced tools
Comparing version 5.0.1 to 6.0.0
@@ -115,8 +115,8 @@ 'use strict'; | ||
const from = range.from || 0; | ||
Hoek.assert(typeof from === 'number', '"range.from" must be falsy, or a number'); | ||
const from = range.from ?? 0; | ||
Hoek.assert(typeof from === 'number', '"range.from" must be a number'); | ||
Hoek.assert(from === parseInt(from, 10) && from >= 0, '"range.from" must be a positive integer'); | ||
const to = range.to || 0; | ||
Hoek.assert(typeof to === 'number', '"range.to" must be falsy, or a number'); | ||
const to = range.to ?? 0; | ||
Hoek.assert(typeof to === 'number', '"range.to" must be a number'); | ||
Hoek.assert(to === parseInt(to, 10) && to >= 0, '"range.to" must be a positive integer'); | ||
@@ -123,0 +123,0 @@ |
@@ -1,3 +0,4 @@ | ||
Copyright (c) 2014-2020, Sideway Inc, and project contributors | ||
Copyright (c) 2014, Walmart. | ||
Copyright (c) 2014-2022, Project contributors | ||
Copyright (c) 2014-2020, Sideway Inc | ||
Copyright (c) 2014, Walmart. | ||
All rights reserved. | ||
@@ -4,0 +5,0 @@ |
{ | ||
"name": "@hapi/ammo", | ||
"description": "HTTP Range processing utilities", | ||
"version": "5.0.1", | ||
"repository": "git://github.com/hapijs/ammo", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"keywords": [ | ||
"http", | ||
"range", | ||
"utilities" | ||
], | ||
"files": [ | ||
"lib" | ||
], | ||
"dependencies": { | ||
"@hapi/hoek": "9.x.x" | ||
}, | ||
"devDependencies": { | ||
"@hapi/code": "8.x.x", | ||
"@hapi/lab": "22.x.x", | ||
"@hapi/wreck": "17.x.x" | ||
}, | ||
"scripts": { | ||
"test": "lab -a @hapi/code -t 100 -L -Y", | ||
"test-cov-html": "lab -a @hapi/code -r html -o coverage.html" | ||
}, | ||
"license": "BSD-3-Clause" | ||
"name": "@hapi/ammo", | ||
"description": "HTTP Range processing utilities", | ||
"version": "6.0.0", | ||
"repository": "git://github.com/hapijs/ammo", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"keywords": [ | ||
"http", | ||
"range", | ||
"utilities" | ||
], | ||
"files": [ | ||
"lib" | ||
], | ||
"eslintConfig": { | ||
"extends": [ | ||
"plugin:@hapi/module" | ||
] | ||
}, | ||
"dependencies": { | ||
"@hapi/hoek": "^10.0.0" | ||
}, | ||
"devDependencies": { | ||
"@hapi/code": "^9.0.0", | ||
"@hapi/eslint-plugin": "*", | ||
"@hapi/lab": "^25.0.1", | ||
"@hapi/wreck": "^18.0.0", | ||
"@types/node": "^17.0.31", | ||
"typescript": "~4.6.4" | ||
}, | ||
"scripts": { | ||
"test": "lab -a @hapi/code -t 100 -L -Y", | ||
"test-cov-html": "lab -a @hapi/code -r html -o coverage.html" | ||
}, | ||
"license": "BSD-3-Clause" | ||
} |
@@ -18,1 +18,2 @@ <a href="https://hapi.dev"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a> | ||
- [Free and commercial support options](https://hapi.dev/support/) | ||
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
8444
19
6
1
+ Added@hapi/hoek@10.0.1(transitive)
- Removed@hapi/hoek@9.3.0(transitive)
Updated@hapi/hoek@^10.0.0