Socket
Socket
Sign inDemoInstall

@hapi/ammo

Package Overview
Dependencies
1
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.1 to 6.0.0

8

lib/index.js

@@ -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/)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc