Comparing version 2.1.0 to 3.0.0
@@ -19,3 +19,3 @@ declare namespace Subsume { | ||
*/ | ||
static parse(text: string, id: string): Subsume.ParseResult; | ||
static parse(string: string, id: string): Subsume.ParseResult; | ||
@@ -46,3 +46,3 @@ /** | ||
*/ | ||
static parseAll(text: string, idArray?: string[]): Subsume.ParseResults; | ||
static parseAll(string: string, idArray?: readonly string[]): Subsume.ParseResults; | ||
@@ -105,3 +105,3 @@ /** | ||
*/ | ||
compose(text: string): string; | ||
compose(string: string): string; | ||
@@ -111,7 +111,7 @@ /** | ||
@returns an object with properties `.data` for your embedded data and `.rest` for everything else. | ||
@returns An object with properties `.data` for your embedded data and `.rest` for everything else. | ||
*/ | ||
parse(text: string): Subsume.ParseResult; | ||
parse(string: string): Subsume.ParseResult; | ||
} | ||
export = Subsume; |
{ | ||
"name": "subsume", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "Embed data in other data and easily extract it when needed", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=8" | ||
}, | ||
@@ -40,10 +40,10 @@ "scripts": { | ||
"dependencies": { | ||
"escape-string-regexp": "^1.0.5", | ||
"unique-string": "^1.0.0" | ||
"escape-string-regexp": "^2.0.0", | ||
"unique-string": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^1.4.1", | ||
"tsd": "^0.7.2", | ||
"tsd": "^0.7.3", | ||
"xo": "^0.24.0" | ||
} | ||
} |
@@ -104,3 +104,3 @@ # subsume [![Build Status](https://travis-ci.org/sindresorhus/subsume.svg?branch=master)](https://travis-ci.org/sindresorhus/subsume) | ||
### Subsume.parseAll(text[, idArray]) | ||
### Subsume.parseAll(text, [idArray]) | ||
@@ -107,0 +107,0 @@ Extract embedded data corresponding to all IDs in `idArray`, if specified. Otherwise it will extract embedded data for all top-level IDs. |
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
10899
+ Addedcrypto-random-string@2.0.0(transitive)
+ Addedescape-string-regexp@2.0.0(transitive)
+ Addedunique-string@2.0.0(transitive)
- Removedcrypto-random-string@1.0.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedunique-string@1.0.0(transitive)
Updatedescape-string-regexp@^2.0.0
Updatedunique-string@^2.0.0