Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hls-parser

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hls-parser - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

35

package.json
{
"name": "hls-parser",
"version": "0.6.0",
"version": "0.6.1",
"description": "A simple library to read/write HLS playlists",

@@ -32,22 +32,13 @@ "main": "index.js",

"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"ava": "^2.4.0",
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"ava": "^3.8.1",
"babel-loader": "^8.1.0",
"coveralls": "^3.0.11",
"nyc": "^15.0.0",
"terser-webpack-plugin": "^2.3.5",
"webpack": "^4.42.1",
"coveralls": "^3.1.0",
"nyc": "^15.0.1",
"terser-webpack-plugin": "^3.0.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"xo": "^0.25.3"
"xo": "^0.30.0"
},
"engines": {
"node": ">=6.0.0"
},
"ava": {
"helpers": [
"test/helpers/**/*",
"test/fixtures/**/*"
]
},
"xo": {

@@ -70,5 +61,11 @@ "esnext": true,

"unicorn/filename-case": 0,
"unicorn/no-zero-fractions": 0
"unicorn/no-zero-fractions": 0,
"unicorn/prevent-abbreviations": 0
},
"settings": {
"import/resolver": {
"node": {}
}
}
}
}

@@ -726,3 +726,3 @@ const utils = require('./utils');

}
if (dateRange) {
if (dateRange && dateRange.start) {
hasDateRange = true;

@@ -729,0 +729,0 @@ if (dateRange.endOnNext && (dateRange.end || dateRange.duration)) {

@@ -235,3 +235,3 @@ [![Build Status](https://travis-ci.org/kuu/hls-parser.svg?branch=master)](https://travis-ci.org/kuu/hls-parser)

| `classId` | string | No | undefined | See CLASS attribute in [EXT-X-DATERANGE](https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.2.7) |
| `start` | `Date` | Yes | N/A | See START-DATE attribute in [EXT-X-DATERANGE](https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.2.7) |
| `start` | `Date` | No | undefined | See START-DATE attribute in [EXT-X-DATERANGE](https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.2.7) |
| `end` | `Date` | No | undefined | See END-DATE attribute in [EXT-X-DATERANGE](https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.2.7) |

@@ -238,0 +238,0 @@ | `duration` | number | No | undefined | See DURATION attribute in [EXT-X-DATERANGE](https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.2.7) |

@@ -302,5 +302,7 @@ const utils = require('./utils');

const attrs = [
`ID="${dateRange.id}"`,
`START-DATE="${utils.formatDate(dateRange.start)}"`
`ID="${dateRange.id}"`
];
if (dateRange.start) {
attrs.push(`START-DATE="${utils.formatDate(dateRange.start)}"`);
}
if (dateRange.end) {

@@ -307,0 +309,0 @@ attrs.push(`END-DATE="${dateRange.end}"`);

@@ -123,3 +123,3 @@ const utils = require('./utils');

classId, // required if endOnNext is true
start, // required
start,
end,

@@ -131,5 +131,5 @@ duration,

}) {
utils.PARAMCHECK(id, start);
utils.PARAMCHECK(id);
utils.CONDITIONALPARAMCHECK([endOnNext === true, classId]);
utils.CONDITIONALASSERT([end, start <= end], [duration, duration >= 0], [plannedDuration, plannedDuration >= 0]);
utils.CONDITIONALASSERT([end, start], [end, start <= end], [duration, duration >= 0], [plannedDuration, plannedDuration >= 0]);
this.id = id;

@@ -136,0 +136,0 @@ this.classId = classId;

@@ -58,7 +58,7 @@ let options = {};

if (radix === 10) {
num = parseFloat(str, radix);
num = Number.parseFloat(str, radix);
} else {
num = parseInt(str, radix);
num = Number.parseInt(str, radix);
}
if (isNaN(num)) {
if (Number.isNaN(num)) {
return 0;

@@ -65,0 +65,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

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