hls-parser
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -1,6 +0,1 @@ | ||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <http://feross.org> | ||
* @license MIT | ||
*/ | ||
/*! Copyright Kuu Miyazaki. SPDX-License-Identifier: MIT */ |
@@ -0,1 +1,2 @@ | ||
/*! Copyright Kuu Miyazaki. SPDX-License-Identifier: MIT */ | ||
const {getOptions, setOptions} = require('./utils'); | ||
@@ -2,0 +3,0 @@ const parse = require('./parse'); |
{ | ||
"name": "hls-parser", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "A simple library to read/write HLS playlists", | ||
@@ -33,12 +33,12 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.11.6", | ||
"@babel/preset-env": "^7.11.5", | ||
"ava": "^3.12.1", | ||
"@babel/core": "^7.12.3", | ||
"@babel/preset-env": "^7.12.1", | ||
"ava": "^3.13.0", | ||
"babel-loader": "^8.1.0", | ||
"coveralls": "^3.1.0", | ||
"nyc": "^15.1.0", | ||
"terser-webpack-plugin": "^4.2.0", | ||
"webpack": "^4.44.1", | ||
"webpack-cli": "^3.3.12", | ||
"xo": "^0.33.1" | ||
"terser-webpack-plugin": "^5.0.0", | ||
"webpack": "^5.1.3", | ||
"webpack-cli": "^4.1.0", | ||
"xo": "^0.34.1" | ||
}, | ||
@@ -45,0 +45,0 @@ "xo": { |
@@ -56,8 +56,3 @@ let options = {}; | ||
} | ||
let num; | ||
if (radix === 10) { | ||
num = Number.parseFloat(str, radix); | ||
} else { | ||
num = Number.parseInt(str, radix); | ||
} | ||
const num = radix === 10 ? Number.parseFloat(str, radix) : Number.parseInt(str, radix); | ||
if (Number.isNaN(num)) { | ||
@@ -64,0 +59,0 @@ return 0; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
13
516853
4332