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

parser-ts

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parser-ts - npm Package Compare versions

Comparing version 0.6.12 to 0.6.13

5

CHANGELOG.md

@@ -16,2 +16,7 @@ # Changelog

# 0.6.13
- **New Feature**
- expose test helper run in library, #34 (@waynevanson)
# 0.6.12

@@ -18,0 +23,0 @@

@@ -9,2 +9,3 @@ /**

import * as P from './Parser'
import * as PR from './ParseResult'
/**

@@ -100,1 +101,9 @@ * Matches the exact string provided.

export declare const doubleQuotedString: P.Parser<string, String>
/**
* @summary
* Creates a stream from `string` and runs the parser.
*
* @category combinators
* @since 0.6.8
*/
export declare function run(string: string): <A>(p: P.Parser<C.Char, A>) => PR.ParseResult<C.Char, A>

@@ -7,2 +7,3 @@ import * as E from 'fp-ts/Either';

import * as P from './Parser';
import * as S from './Stream';
// -------------------------------------------------------------------------------------

@@ -121,1 +122,11 @@ // constructors

export var doubleQuotedString = P.surroundedBy(C.char('"'))(many(P.either(string('\\"'), function () { return C.notChar('"'); })));
/**
* @summary
* Creates a stream from `string` and runs the parser.
*
* @category combinators
* @since 0.6.8
*/
export function run(string) {
return function (p) { return p(S.stream(string.split(''))); };
}

@@ -9,2 +9,3 @@ /**

import * as P from './Parser'
import * as PR from './ParseResult'
/**

@@ -100,1 +101,9 @@ * Matches the exact string provided.

export declare const doubleQuotedString: P.Parser<string, String>
/**
* @summary
* Creates a stream from `string` and runs the parser.
*
* @category combinators
* @since 0.6.8
*/
export declare function run(string: string): <A>(p: P.Parser<C.Char, A>) => PR.ParseResult<C.Char, A>

@@ -16,2 +16,3 @@ "use strict";

var P = __importStar(require("./Parser"));
var S = __importStar(require("./Stream"));
// -------------------------------------------------------------------------------------

@@ -131,1 +132,12 @@ // constructors

exports.doubleQuotedString = P.surroundedBy(C.char('"'))(exports.many(P.either(exports.string('\\"'), function () { return C.notChar('"'); })));
/**
* @summary
* Creates a stream from `string` and runs the parser.
*
* @category combinators
* @since 0.6.8
*/
function run(string) {
return function (p) { return p(S.stream(string.split(''))); };
}
exports.run = run;

2

package.json
{
"name": "parser-ts",
"version": "0.6.12",
"version": "0.6.13",
"description": "String parser combinators for TypeScript",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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