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

rescript-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rescript-nodejs - npm Package Compare versions

Comparing version 14.3.1 to 14.4.0

3

lib/js/examples/ReadFileByLine.bs.js

@@ -14,4 +14,3 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

rl.on("line", (function (line) {
console.log("Received: " + line);
console.log("Received: " + line + "");
}));

@@ -18,0 +17,0 @@

@@ -27,3 +27,2 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

console.log("Finished");
}));

@@ -30,0 +29,0 @@

@@ -24,3 +24,2 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

t.equal(arrA, arrC, "");
}));

@@ -32,3 +31,2 @@ t.test("BigInt.add", (function (t) {

t.equal(BigInt(a) + BigInt(b), BigInt(c), "");
}));

@@ -40,3 +38,2 @@ t.test("BigInt.(+)", (function (t) {

t.equal(BigInt(a) + BigInt(b), BigInt(c), "");
}));

@@ -48,3 +45,2 @@ t.test("BigInt.subtract", (function (t) {

t.equal(BigInt(a) - BigInt(b), BigInt(c), "");
}));

@@ -56,3 +52,2 @@ t.test("BigInt.(-)", (function (t) {

t.equal(BigInt(a) - BigInt(b), BigInt(c), "");
}));

@@ -64,3 +59,2 @@ t.test("BigInt.multiply", (function (t) {

t.equal(BigInt(a) * BigInt(b), BigInt(c), "");
}));

@@ -72,3 +66,2 @@ t.test("BigInt.(*)", (function (t) {

t.equal(BigInt(a) * BigInt(b), BigInt(c), "");
}));

@@ -80,3 +73,2 @@ t.test("BigInt.divide", (function (t) {

t.equal(BigInt(a) / BigInt(b), BigInt(c), "");
}));

@@ -88,3 +80,2 @@ t.test("BigInt.(/)", (function (t) {

t.equal(BigInt(a) / BigInt(b), BigInt(c), "");
}));

@@ -95,3 +86,2 @@ t.test("BigInt.negate", (function (t) {

t.equal(-BigInt(a), BigInt(b), "");
}));

@@ -102,3 +92,2 @@ t.test("BigInt.(~-)", (function (t) {

t.equal(-BigInt(a), BigInt(b), "");
}));

@@ -110,3 +99,2 @@ t.test("BigInt.modulo", (function (t) {

t.equal(BigInt$NodeJs.modulo(BigInt(a), BigInt(b)), BigInt(c), "");
}));

@@ -118,3 +106,2 @@ t.test("BigInt.(mod)", (function (t) {

t.equal(BigInt$NodeJs.mod(BigInt(a), BigInt(b)), BigInt(c), "");
}));

@@ -126,3 +113,2 @@ t.test("BigInt.power", (function (t) {

t.equal(BigInt$NodeJs.power(BigInt(a), BigInt(b)), BigInt(c), "");
}));

@@ -134,3 +120,2 @@ t.test("BigInt.(**)", (function (t) {

t.equal(BigInt$NodeJs.$star$star(BigInt(a), BigInt(b)), BigInt(c), "");
}));

@@ -142,3 +127,2 @@ t.test("BigInt.logicalAnd", (function (t) {

t.equal(BigInt(a) & BigInt(b), BigInt(c), "");
}));

@@ -150,3 +134,2 @@ t.test("BigInt.(land)", (function (t) {

t.equal(BigInt(a) & BigInt(b), BigInt(c), "");
}));

@@ -158,3 +141,2 @@ t.test("BigInt.logicalOr", (function (t) {

t.equal(BigInt(a) | BigInt(b), BigInt(c), "");
}));

@@ -166,3 +148,2 @@ t.test("BigInt.(lor)", (function (t) {

t.equal(BigInt(a) | BigInt(b), BigInt(c), "");
}));

@@ -174,3 +155,2 @@ t.test("BigInt.logicalXor", (function (t) {

t.equal(BigInt(a) ^ BigInt(b), BigInt(c), "");
}));

@@ -182,3 +162,2 @@ t.test("BigInt.(lxor)", (function (t) {

t.equal(BigInt(a) ^ BigInt(b), BigInt(c), "");
}));

@@ -189,3 +168,2 @@ t.test("BigInt.logicalNot", (function (t) {

t.equal(BigInt$NodeJs.logicalNot(BigInt(a)), BigInt(b), "");
}));

@@ -196,3 +174,2 @@ t.test("BigInt.(lnot)", (function (t) {

t.equal(BigInt$NodeJs.lnot(BigInt(a)), BigInt(b), "");
}));

@@ -202,3 +179,2 @@ t.test("BigInt.logicalShiftLeft", (function (t) {

t.equal((BigInt(26) << BigInt(7)), BigInt(c), "");
}));

@@ -208,3 +184,2 @@ t.test("BigInt.(lsl)", (function (t) {

t.equal((BigInt(26) << BigInt(7)), BigInt(c), "");
}));

@@ -214,3 +189,2 @@ t.test("BigInt.arithmeticShiftRight", (function (t) {

t.equal((BigInt(32) >> BigInt(4)), BigInt(c), "");
}));

@@ -220,7 +194,5 @@ t.test("BigInt.(asr)", (function (t) {

t.equal((BigInt(32) >> BigInt(4)), BigInt(c), "");
}));
}));
/* Not a pure module */

@@ -56,3 +56,2 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

t.ok(tmp, "");
}));

@@ -64,3 +63,2 @@ t.test("BinaryLike.classify(buffer) should return a 'Buffer' variant", (function (t) {

t.ok(tmp, "");
}));

@@ -72,3 +70,2 @@ t.test("BinaryLike.classify(uInt8Array) should return a 'Uint8Array' variant", (function (t) {

t.ok(tmp, "");
}));

@@ -80,3 +77,2 @@ t.test("BinaryLike.classify(int8Array) should return a 'Int8Array' variant", (function (t) {

t.ok(tmp, "");
}));

@@ -88,3 +84,2 @@ t.test("BinaryLike.classify(uInt8ClampedArray) should return a 'Uint8ClampedArray' variant", (function (t) {

t.ok(tmp, "");
}));

@@ -96,3 +91,2 @@ t.test("BinaryLike.classify(uInt16Array) should return a 'Uint16Array' variant", (function (t) {

t.ok(tmp, "");
}));

@@ -104,7 +98,5 @@ t.test("BinaryLike.classify(int16Array) should return a 'Int16Array' variant", (function (t) {

t.ok(tmp, "");
}));
}));
/* Not a pure module */

@@ -43,9 +43,6 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

t.notEqual(c1, undefined, "");
}));
t.test("New console instance should be defined", (function (t) {
t.notEqual(c2, undefined, "");
}));
}));

@@ -52,0 +49,0 @@

@@ -29,3 +29,2 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

t.equal(listeners.length, 0, "");
}));

@@ -41,3 +40,2 @@ t.test("'Emitter.off' should remove the event listener", (function (t) {

t.equal(listeners.length, 0, "");
}));

@@ -53,7 +51,5 @@ t.test("'Emitter.emit' should execute each listener for the correct event", (function (t) {

ref1.contents = 1;
};
var listener2 = function (param) {
ref2.contents = 2;
};

@@ -67,3 +63,2 @@ var __x = new Events.EventEmitter();

t.equal(ref2.contents, 2, "");
}));

@@ -81,7 +76,5 @@ t.test("'Emitter.removeAllListeners' should remove all event listeners", (function (t) {

t.equal(emitter.listeners(EventEmitterTestLib$NodeJs.Emitter1.Events.text).length, 0, "");
}));
}));
/* Not a pure module */

@@ -7,8 +7,9 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

var Zora$1 = require("zora");
var Js_string = require("rescript/lib/js/js_string.js");
Zora$1.test("Fs", (function (t) {
t.test("readFile should read entire file", (function (t) {
return Zora.$$then(Zora.$$then(Fs.promises.open(__filename, "r"), (function (fh) {
return Zora.$$then(fh.readFile(), (function (buffer) {
return Zora.$$then(fh.close(), (function (param) {
return Zora.then(Zora.then(Fs.promises.open(__filename, "r"), (function (fh) {
return Zora.then(fh.readFile(), (function (buffer) {
return Zora.then(fh.close(), (function (param) {
return Zora.done(buffer);

@@ -23,7 +24,7 @@ }));

t.test("readFileWith should read entire file as a string", (function (t) {
return Zora.$$then(Zora.$$then(Fs.promises.open(__filename, "r"), (function (fh) {
return Zora.$$then(fh.readFile({
return Zora.then(Zora.then(Fs.promises.open(__filename, "r"), (function (fh) {
return Zora.then(fh.readFile({
encoding: "UTF-8"
}), (function (buffer) {
return Zora.$$then(fh.close(), (function (param) {
return Zora.then(fh.close(), (function (param) {
return Zora.done(buffer);

@@ -33,3 +34,3 @@ }));

})), (function (content) {
t.ok(content.indexOf("Random string: uCF6c5f3Arrq") > 0, "buffer string indexOf was not greater than zero");
t.ok(Js_string.indexOf("Random string: uCF6c5f3Arrq", content) > 0, "buffer string indexOf was not greater than zero");
return Zora.done(undefined);

@@ -36,0 +37,0 @@ }));

@@ -9,23 +9,17 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

t.notEqual(__dirname, undefined, "");
}));
t.test("dirname should be of type 'string'", (function (t) {
t.equal(typeof __dirname, "string", "");
}));
t.test("filename should be defined", (function (t) {
t.notEqual(__filename, undefined, "");
}));
t.test("filename should be of type 'string'", (function (t) {
t.equal(typeof __filename, "string", "");
}));
t.test("'global object' should be defined", (function (t) {
t.notEqual(global, undefined, "");
}));
t.test("'global' object should be of type 'object'", (function (t) {
t.equal(typeof global, "object", "");
}));

@@ -36,3 +30,2 @@ t.test("'require' function should be defined", (function (t) {

}), undefined, "");
}));

@@ -43,15 +36,11 @@ t.test("'require' function should be defined", (function (t) {

}), "function", "");
}));
t.test("'require' fuction should return a defined value from a relative path", (function (t) {
t.notEqual(require("path"), undefined, "");
}));
t.test("'require' fuction should successfully import a module object from a relative path", (function (t) {
t.equal(typeof require("path"), "object", "");
}));
}));
/* Not a pure module */

@@ -10,7 +10,5 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

t.equal(Path.posix.basename("/tmp/myfile.html"), "myfile.html", "");
}));
}));
/* Not a pure module */

@@ -9,10 +9,2 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

function $$then(prim0, prim1) {
return prim0.then(Curry.__1(prim1));
}
function done(prim) {
return Promise.resolve(prim);
}
Zora.test("Stream.Readable", (function (t) {

@@ -22,3 +14,2 @@ t.test("'Stream.Readable.make' should return a defined value", (function (t) {

t.notEqual(readable, undefined, "");
}));

@@ -28,3 +19,2 @@ t.test("'Stream.Readable.make' should return an instance of 'Readable'", (function (t) {

t.equal(readable.constructor.name, "Readable", "");
}));

@@ -35,3 +25,2 @@ t.test("'Stream.Readable.pipe' returns a writable stream", (function (t) {

t.equal(readable.pipe(writable), writable, "");
}));

@@ -43,9 +32,7 @@ t.test("'Stream.Readable.destroyWithError' should emit 'error' event", (function (t) {

t.equal(err, dummyError, "");
return resolve(undefined);
resolve(undefined);
}));
setTimeout((function (param) {
stream.destroy(dummyError);
}), 10);
}));

@@ -56,5 +43,3 @@ }));

t.equal(readable.destroy(), readable, "");
}));
}));

@@ -66,3 +51,2 @@

t.notEqual(writable, undefined, "");
}));

@@ -72,3 +56,2 @@ t.test("'Stream.Writable.make' should return an instance of 'Writable'", (function (t) {

t.equal(writable.constructor.name, "Writable", "");
}));

@@ -89,3 +72,3 @@ t.test("Stream.Writable.makeObjMode should have a 'write' function with the correct function signature", (function (t) {

];
return Curry._1(callback, undefined);
Curry._1(callback, undefined);
})

@@ -109,12 +92,8 @@ };

], "");
return resolve(undefined);
resolve(undefined);
}));
}));
}));
}));
exports.$$then = $$then;
exports.done = done;
/* Not a pure module */

@@ -11,11 +11,8 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

t.equal(Util.types.isAnyArrayBuffer(arrayBuffer), true, "");
}));
t.test("Util.Types.isAnyArrayBuffer(string) should return false", (function (t) {
t.equal(Util.types.isAnyArrayBuffer("not array buffer"), false, "");
}));
}));
/* Not a pure module */

@@ -9,3 +9,2 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

console.log("line cleared");
}));

@@ -15,3 +14,2 @@

console.log("screen cleared");
}));

@@ -21,3 +19,2 @@

console.log("cursor to");
}));

@@ -27,5 +24,4 @@

console.log("cursor moved");
}));
/* Not a pure module */

@@ -13,3 +13,3 @@ // Generated by ReScript, PLEASE EDIT WITH CARE

destroy: (function (error, callback) {
return Curry._1(callback, (error == null) ? undefined : Caml_option.some(error));
Curry._1(callback, (error == null) ? undefined : Caml_option.some(error));
}),

@@ -27,6 +27,6 @@ read: (function (param) {

destroy: (function (error, callback) {
return Curry._1(callback, (error == null) ? undefined : Caml_option.some(error));
Curry._1(callback, (error == null) ? undefined : Caml_option.some(error));
}),
write: (function (param, param$1, callback) {
return Curry._1(callback, undefined);
Curry._1(callback, undefined);
})

@@ -33,0 +33,0 @@ });

{
"name": "rescript-nodejs",
"version": "14.3.1",
"version": "14.4.0",
"scripts": {

@@ -8,3 +8,3 @@ "build": "rescript || rescript",

"start": "rescript build -w",
"test": "rescript && pta 'lib/js/test/atomic/*.test.bs.js'",
"test": "rescript && pta lib/js/test/atomic/*.test.bs.js",
"clean-build": "yarn clean && yarn build",

@@ -33,5 +33,5 @@ "clean-start": "yarn clean && yarn start",

"pta": "^1.0.0",
"rescript": "^9.1.4",
"rescript": "^10.0.1",
"zora": "^5.0.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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