Socket
Socket
Sign inDemoInstall

subsume

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

subsume - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

10

index.d.ts

@@ -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.

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