Socket
Socket
Sign inDemoInstall

@types/range-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.2.3

11

range-parser/index.d.ts

@@ -7,7 +7,7 @@ // Type definitions for range-parser 1.2

/**
* Returns `-1` when unsatisfiable and `-2` when syntactically invalid.
*
* When ranges are returned, the array has a "type" property which is the type of
* range that is required (most commonly, "bytes"). Each array element is an object
* with a "start" and "end" property for the portion of the range.
*
* @returns `-1` when unsatisfiable and `-2` when syntactically invalid, ranges otherwise.
*/

@@ -31,8 +31,7 @@ declare function RangeParser(size: number, str: string, options?: RangeParser.Options): RangeParser.Result | RangeParser.Ranges;

}
const enum Result {
invaild = -2,
unsatisifiable = -1,
}
type ResultUnsatisfiable = -1;
type ResultInvalid = -2;
type Result = ResultUnsatisfiable | ResultInvalid;
}
export = RangeParser;
{
"name": "@types/range-parser",
"version": "1.2.2",
"version": "1.2.3",
"description": "TypeScript definitions for range-parser",

@@ -14,2 +14,3 @@ "license": "MIT",

"main": "",
"types": "index",
"repository": {

@@ -21,4 +22,4 @@ "type": "git",

"dependencies": {},
"typesPublisherContentHash": "9aa07423616e63016ffbf0e487540e74ec37bb06827861d502a5a3653e8831e9",
"typesPublisherContentHash": "71bf3049d2d484657017f768fe0c54c4e9f03ee340b5a62a56523455925a00ae",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Tue, 05 Jun 2018 00:03:07 GMT
* Last updated: Fri, 07 Dec 2018 19:21:52 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc