Comparing version 2.0.0 to 20.0.0-pre.1
{ | ||
"name": "bs-sedlex", | ||
"version": "2.0.0", | ||
"version": "20.0.0-pre.1", | ||
"sources": [ | ||
@@ -10,4 +10,4 @@ { | ||
"bs-dependencies": [ | ||
"@elliottcable/bs-uchar", | ||
"@elliottcable/bs-gen" | ||
"bs-uchar", | ||
"bs-gen" | ||
], | ||
@@ -14,0 +14,0 @@ "package-specs": { |
{ | ||
"name": "bs-sedlex-examples", | ||
"version": "1.99.4-pre.5", | ||
"sources": [ | ||
{ | ||
"dir": "../src/lib" | ||
}, | ||
{ | ||
"dir": "./", | ||
"type": "dev" | ||
} | ||
], | ||
"ppx-flags": [ | ||
"ppx-sedlex/ppx.js" | ||
], | ||
"bs-dependencies": [ | ||
"@elliottcable/bs-uchar", | ||
"@elliottcable/bs-gen" | ||
], | ||
"package-specs": { | ||
"module": "commonjs", | ||
"in-source": true | ||
}, | ||
"suffix": ".bs.js", | ||
"bsc-flags": [ | ||
"-bs-super-errors", | ||
"-bs-no-version-header" | ||
], | ||
"refmt": 3 | ||
"name": "bs-sedlex-examples", | ||
"version": "1.99.4-pre.5", | ||
"sources": [ | ||
{ | ||
"dir": "../src/lib" | ||
}, | ||
{ | ||
"dir": "./", | ||
"type": "dev" | ||
} | ||
], | ||
"ppx-flags": ["ppx-sedlex/ppx.js"], | ||
"bs-dependencies": ["bs-uchar", "bs-gen"], | ||
"package-specs": { | ||
"module": "commonjs", | ||
"in-source": true | ||
}, | ||
"suffix": ".bs.js", | ||
"bsc-flags": ["-bs-super-errors", "-bs-no-version-header"], | ||
"refmt": 3 | ||
} |
{ | ||
"name": "bs-sedlex", | ||
"version": "2.0.0", | ||
"version": "20.0.0-pre.1", | ||
"description": "An OCaml lexer generator for Unicode", | ||
@@ -10,9 +10,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"@elliottcable/bs-gen": "^0.5.1", | ||
"@elliottcable/bs-uchar": "^0.0.2", | ||
"bs-platform": "^4.0.3" | ||
"bs-gen": "^0.5.2-pre.1" | ||
}, | ||
"devDependencies": { | ||
"arch": "^2.1.1", | ||
"archiver": "^2.1.1", | ||
"bs-platform": "^4.0.3", | ||
"bs-uchar": "0.0.4", | ||
"cpy": "^7.0.1", | ||
@@ -22,4 +21,8 @@ "foreach-cli": "^1.8.1", | ||
"node-jq": "^1.3.1", | ||
"ppx-sedlex": "=2.0.0" | ||
"ppx-sedlex": "=20.0.0-pre.1" | ||
}, | ||
"peerDependencies": { | ||
"bs-uchar": "*", | ||
"bs-platform": ">=4.0.3" | ||
}, | ||
"scripts": { | ||
@@ -34,3 +37,2 @@ "clean:examples": "npm run clean:ppx && cd examples && bsb -clean-world", | ||
"build": "npm run build:runtime && npm run build:ppx", | ||
"prepare:ppx": "npm run clean:ppx && npm run build:ppx", | ||
"prepare": "npm run clean && npm run build:runtime", | ||
@@ -40,4 +42,3 @@ "preversion": "./scripts/preversion.sh", | ||
"test": "foreach -g 'examples/*.bs.js' -x 'node #{path}'", | ||
"ci:ppx-examples-test": "npm run build:examples && npm run test", | ||
"ci:runtime": "npm run build:runtime" | ||
"travis": "./scripts/travis.sh" | ||
}, | ||
@@ -44,0 +45,0 @@ "files": [ |
@@ -1,2 +0,3 @@ | ||
# `bs-sedlex` | ||
<h1><img alt='Maintenance status: maintained' src="https://img.shields.io/maintenance/yes/2019.svg?style=popout-square&logo=verizon&logoColor=000000" align=right><a href="https://github.com/ELLIOTTCABLE/bs-sedlex/releases" align=right><img alt='Latest npm release' src="https://img.shields.io/npm/v/bs-sedlex.svg?style=popout-square&logo=npm&label=bs%20version" align=right></a><a target="_blank" href="https://travis-ci.com/ELLIOTTCABLE/bs-sedlex" align=right><img alt='Build status on Travis-CI' src="https://img.shields.io/travis/com/ELLIOTTCABLE/bs-sedlex.svg?style=popout-square&logo=travis&label=bs%20build" align=right></a><a target="_blank" href="https://twitter.com/intent/follow?screen_name=ELLIOTTCABLE" align=right><img alt='Follow my work on Twitter' src="https://img.shields.io/twitter/follow/ELLIOTTCABLE.svg?style=popout-square&logo=twitter&label=%40ELLIOTTCABLE&color=blue" align=right></a> | ||
<code>bs-sedlex</code></h1> | ||
@@ -3,0 +4,0 @@ > **For details on purpose, usage, and API of sedlex, [scroll down](#sedlex).** These sections added |
'use strict'; | ||
var Gen = require("@elliottcable/bs-gen/src/gen.bs.js"); | ||
var Gen = require("bs-gen/src/gen.bs.js"); | ||
var Char = require("bs-platform/lib/js/char.js"); | ||
@@ -8,3 +8,3 @@ var $$Array = require("bs-platform/lib/js/array.js"); | ||
var Curry = require("bs-platform/lib/js/curry.js"); | ||
var Uchar = require("@elliottcable/bs-uchar/src/uchar.bs.js"); | ||
var Uchar = require("bs-uchar/src/uchar.bs.js"); | ||
var $$Buffer = require("bs-platform/lib/js/buffer.js"); | ||
@@ -14,6 +14,5 @@ var Stream = require("bs-platform/lib/js/stream.js"); | ||
var Caml_array = require("bs-platform/lib/js/caml_array.js"); | ||
var Caml_bytes = require("bs-platform/lib/js/caml_bytes.js"); | ||
var Pervasives = require("bs-platform/lib/js/pervasives.js"); | ||
var Caml_option = require("bs-platform/lib/js/caml_option.js"); | ||
var Caml_string = require("bs-platform/lib/js/caml_string.js"); | ||
var Js_primitive = require("bs-platform/lib/js/js_primitive.js"); | ||
var Caml_exceptions = require("bs-platform/lib/js/caml_exceptions.js"); | ||
@@ -27,3 +26,3 @@ var Caml_builtin_exceptions = require("bs-platform/lib/js/caml_builtin_exceptions.js"); | ||
function gen_of_channel(chan) { | ||
return (function (param) { | ||
return (function () { | ||
try { | ||
@@ -44,3 +43,3 @@ return Pervasives.input_char(chan); | ||
if (o !== undefined) { | ||
return Curry._1(f, Caml_option.valFromOption(o)); | ||
return Curry._1(f, Js_primitive.valFromOption(o)); | ||
} | ||
@@ -51,5 +50,5 @@ | ||
function gen_of_stream(stream) { | ||
return (function (param) { | ||
return (function () { | ||
try { | ||
return Caml_option.some(Stream.next(stream)); | ||
return Js_primitive.some(Stream.next(stream)); | ||
} | ||
@@ -67,3 +66,3 @@ catch (exn){ | ||
var empty_lexbuf = /* record */[ | ||
/* refill */(function (param, param$1, param$2) { | ||
/* refill */(function (_, _$1, _$2) { | ||
throw [ | ||
@@ -137,3 +136,3 @@ Caml_builtin_exceptions.assert_failure, | ||
if (match !== undefined) { | ||
Caml_array.caml_array_set(buf, pos + i | 0, Curry._1(f, Caml_option.valFromOption(match))); | ||
Caml_array.caml_array_set(buf, pos + i | 0, Curry._1(f, Js_primitive.valFromOption(match))); | ||
_i = i + 1 | 0; | ||
@@ -256,3 +255,3 @@ continue ; | ||
} | ||
return Caml_option.some(ret); | ||
return Js_primitive.some(ret); | ||
} | ||
@@ -349,3 +348,3 @@ } | ||
function with_tokenizer(lexer$prime, lexbuf) { | ||
return (function (param) { | ||
return (function () { | ||
var token = Curry._1(lexer$prime, lexbuf); | ||
@@ -421,3 +420,3 @@ var match = lexing_positions(lexbuf); | ||
function sub_lexeme$1(lexbuf, pos, len) { | ||
var s = Caml_bytes.caml_create_bytes(len); | ||
var s = Caml_string.caml_create_string(len); | ||
for(var i = 0 ,i_finish = len - 1 | 0; i <= i_finish; ++i){ | ||
@@ -504,3 +503,3 @@ s[i] = to_latin1(Caml_array.caml_array_get(lexbuf[/* buf */1], (lexbuf[/* start_pos */7] + pos | 0) + i | 0)); | ||
} | ||
return Caml_option.some(Uchar.of_int(((c & 7) << 18) | ((c2 & 63) << 12) | ((c3 & 63) << 6) | c4 & 63)); | ||
return Js_primitive.some(Uchar.of_int(((c & 7) << 18) | ((c2 & 63) << 12) | ((c3 & 63) << 6) | c4 & 63)); | ||
})); | ||
@@ -516,3 +515,3 @@ })); | ||
} | ||
return Caml_option.some(Uchar.of_int(((c & 15) << 12) | ((c2 & 63) << 6) | c3 & 63)); | ||
return Js_primitive.some(Uchar.of_int(((c & 15) << 12) | ((c2 & 63) << 6) | c3 & 63)); | ||
})); | ||
@@ -525,3 +524,3 @@ })); | ||
} | ||
return Caml_option.some(Uchar.of_int(((c & 31) << 6) | c2 & 63)); | ||
return Js_primitive.some(Uchar.of_int(((c & 31) << 6) | c2 & 63)); | ||
})); | ||
@@ -532,3 +531,3 @@ } | ||
} else { | ||
return Caml_option.some(Uchar.of_char(c)); | ||
return Js_primitive.some(Uchar.of_char(c)); | ||
} | ||
@@ -612,3 +611,3 @@ })); | ||
var partial_arg = gen_of_channel(ic); | ||
return from_gen((function (param) { | ||
return from_gen((function () { | ||
return from_gen$2(partial_arg); | ||
@@ -622,3 +621,3 @@ })); | ||
return id; | ||
}), (function (param) { | ||
}), (function () { | ||
return from_gen$2(s); | ||
@@ -694,3 +693,3 @@ }), param, param$1, param$2); | ||
var bo = /* record */[/* contents */opt_bo]; | ||
return (function (param) { | ||
return (function () { | ||
return $great$great$eq(Gen.next(s), (function (c1) { | ||
@@ -717,3 +716,3 @@ return $great$great$eq(Gen.next(s), (function (c2) { | ||
if (w1 < 55296 || 57343 < w1) { | ||
return Caml_option.some(Uchar.of_int(w1)); | ||
return Js_primitive.some(Uchar.of_int(w1)); | ||
} else if (w1 <= 56319) { | ||
@@ -726,3 +725,3 @@ return $great$great$eq(next_in_gen(bo$1, s$1), (function (w2) { | ||
var lower10 = w2 & 1023; | ||
return Caml_option.some(Uchar.of_int((65536 + upper10 | 0) + lower10 | 0)); | ||
return Js_primitive.some(Uchar.of_int((65536 + upper10 | 0) + lower10 | 0)); | ||
})); | ||
@@ -742,3 +741,3 @@ } else { | ||
var l = /* record */[/* contents */0]; | ||
Gen.iter((function (param) { | ||
Gen.iter((function () { | ||
l[0] = l[0] + 1 | 0; | ||
@@ -745,0 +744,0 @@ return /* () */0; |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
341609
27
1891
358
8
1
3
+ Addedbs-gen@^0.5.2-pre.1
+ Addedbs-gen@0.5.3(transitive)
+ Addedbs-platform@9.0.2(transitive)
+ Addedbs-uchar@2.1.0(transitive)
- Removed@elliottcable/bs-gen@^0.5.1
- Removed@elliottcable/bs-uchar@^0.0.2
- Removedbs-platform@^4.0.3
- Removed@elliottcable/bs-gen@0.5.1(transitive)
- Removed@elliottcable/bs-uchar@0.0.2(transitive)
- Removedbs-platform@4.0.18(transitive)