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.0 to 0.6.1

es6/char.d.ts

5

CHANGELOG.md

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

# 0.6.1
- **New Feature**
- add build in ES6 format (@gcanti)
# 0.6.0

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

4

lib/char.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @since 0.6.0
*/
var function_1 = require("fp-ts/lib/function");

@@ -163,2 +166,1 @@ var Monoid_1 = require("fp-ts/lib/Monoid");

exports.notLower = P.expected(P.sat(function_1.not(isLower)), 'anything but a lower case letter');
//# sourceMappingURL=char.js.map

@@ -0,1 +1,4 @@

/**
* @since 0.6.0
*/
import { Either } from 'fp-ts/lib/Either';

@@ -2,0 +5,0 @@ import { Char } from './char';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @since 0.6.0
*/
var Either_1 = require("fp-ts/lib/Either");

@@ -42,2 +45,1 @@ var pipeable_1 = require("fp-ts/lib/pipeable");

exports.run = run;
//# sourceMappingURL=code-frame.js.map

@@ -0,10 +1,29 @@

/**
* @since 0.6.0
*/
import * as char from './char';
export { char };
import * as parser from './Parser';
export { parser };
import * as parseResult from './ParseResult';
export { parseResult };
import * as stream from './Stream';
export { stream };
import * as string from './string';
export { string };
export {
/**
* @since 0.6.0
*/
char,
/**
* @since 0.6.0
*/
parser,
/**
* @since 0.6.0
*/
parseResult,
/**
* @since 0.6.0
*/
stream,
/**
* @since 0.6.0
*/
string };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @since 0.6.0
*/
var char = require("./char");

@@ -13,2 +16,1 @@ exports.char = char;

exports.string = string;
//# sourceMappingURL=index.js.map

@@ -0,1 +1,4 @@

/**
* @since 0.6.0
*/
import { Alternative2 } from 'fp-ts/lib/Alternative';

@@ -189,2 +192,34 @@ import { Predicate } from 'fp-ts/lib/function';

declare const alt: <E, A>(that: () => Parser<E, A>) => (fa: Parser<E, A>) => Parser<E, A>, ap: <E, A>(fa: Parser<E, A>) => <B>(fab: Parser<E, (a: A) => B>) => Parser<E, B>, apFirst: <E, B>(fb: Parser<E, B>) => <A>(fa: Parser<E, A>) => Parser<E, A>, apSecond: <e, B>(fb: Parser<e, B>) => <A>(fa: Parser<e, A>) => Parser<e, B>, chain: <E, A, B>(f: (a: A) => Parser<E, B>) => (ma: Parser<E, A>) => Parser<E, B>, chainFirst: <E, A, B>(f: (a: A) => Parser<E, B>) => (ma: Parser<E, A>) => Parser<E, A>, flatten: <E, A>(mma: Parser<E, Parser<E, A>>) => Parser<E, A>, map: <A, B>(f: (a: A) => B) => <E>(fa: Parser<E, A>) => Parser<E, B>;
export { alt, ap, apFirst, apSecond, chain, chainFirst, flatten, map };
export {
/**
* @since 0.6.0
*/
alt,
/**
* @since 0.6.0
*/
ap,
/**
* @since 0.6.0
*/
apFirst,
/**
* @since 0.6.0
*/
apSecond,
/**
* @since 0.6.0
*/
chain,
/**
* @since 0.6.0
*/
chainFirst,
/**
* @since 0.6.0
*/
flatten,
/**
* @since 0.6.0
*/
map };

@@ -92,5 +92,3 @@ "use strict";

function cut(p) {
return function (i) {
return pipeable_1.pipe(p(i), E.mapLeft(ParseResult_1.escalate));
};
return function (i) { return pipeable_1.pipe(p(i), E.mapLeft(ParseResult_1.escalate)); };
}

@@ -264,3 +262,5 @@ exports.cut = cut;

return {
concat: function (x, y) { return exports.parser.ap(exports.parser.map(x, function (x) { return function (y) { return M.concat(x, y); }; }), y); },
concat: function (x, y) {
return exports.parser.ap(exports.parser.map(x, function (x) { return function (y) { return M.concat(x, y); }; }), y);
},
empty: succeed(M.empty)

@@ -291,2 +291,1 @@ };

exports.map = map;
//# sourceMappingURL=Parser.js.map

@@ -14,2 +14,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/**
* @since 0.6.0
*/
var Array_1 = require("fp-ts/lib/Array");

@@ -70,2 +73,1 @@ var Either_1 = require("fp-ts/lib/Either");

exports.error = error;
//# sourceMappingURL=ParseResult.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @since 0.6.0
*/
var Array_1 = require("fp-ts/lib/Array");

@@ -44,2 +47,1 @@ var Eq_1 = require("fp-ts/lib/Eq");

exports.getEq = getEq;
//# sourceMappingURL=Stream.js.map

@@ -0,1 +1,4 @@

/**
* @since 0.6.0
*/
import { Foldable, Foldable1 } from 'fp-ts/lib/Foldable';

@@ -64,3 +67,3 @@ import { Functor, Functor1 } from 'fp-ts/lib/Functor';

*/
export declare const fold: <I>(as: P.Parser<I, string>[]) => P.Parser<I, string>;
export declare const fold: <I>(as: Array<P.Parser<I, string>>) => P.Parser<I, string>;
/**

@@ -67,0 +70,0 @@ * @since 0.6.0

@@ -109,2 +109,1 @@ "use strict";

}));
//# sourceMappingURL=string.js.map
{
"name": "parser-ts",
"version": "0.6.0",
"version": "0.6.1",
"description": "String parser combinators for TypeScript",
"files": [
"lib"
"lib",
"es6"
],

@@ -11,3 +12,3 @@ "main": "lib/index.js",

"scripts": {
"lint": "tslint -p tsconfig.json src/**/*.ts test/**/*.ts",
"lint": "tslint -p .",
"mocha": "mocha -r ts-node/register test/*.ts",

@@ -17,4 +18,6 @@ "prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"",

"test": "npm run lint && npm run prettier && npm run jest && npm run docs",
"clean": "rm -rf lib/*",
"build": "npm run clean && tsc",
"clean": "rm -rf ./lib ./es6",
"prebuild": "npm run clean",
"build": "tsc -p ./tsconfig.build.json && tsc -p ./tsconfig.build-es6.json",
"postbuild": "import-path-rewrite",
"prepublish": "npm run build",

@@ -40,8 +43,9 @@ "jest": "jest --ci --coverage",

"@types/node": "7.0.4",
"docs-ts": "^0.1.0",
"docs-ts": "^0.3.0",
"dtslint": "^0.4.2",
"fp-ts": "^2.0.0",
"import-path-rewrite": "github:gcanti/import-path-rewrite",
"jest": "^24.8.0",
"mocha": "^5.2.0",
"prettier": "^1.18.2",
"prettier": "^1.19.1",
"ts-jest": "^24.0.2",

@@ -48,0 +52,0 @@ "ts-node": "^8.0.1",

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