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

prelude.ts

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prelude.ts - npm Package Compare versions

Comparing version 0.7.11 to 0.7.12

3

dist/src/Vector.js

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

Vector.prototype.map = function (fun) {
if (this._length === 0) {
return Vector.empty();
}
var leafNodes = this.getLeafNodes(this._length);

@@ -737,0 +740,0 @@ var newLeafNodes = [];

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

});
it("map works on the empty vector", function () { return assert.ok(Vector_1.Vector.empty().equals(Vector_1.Vector.empty().map(function (x) { return x + 1; }))); });
it("handles init correctly on a non-empty vector", function () { return assert.deepEqual([1, 2, 3], Vector_1.Vector.of(1, 2, 3, 4).init().toArray()); });

@@ -32,0 +33,0 @@ it("handles init correctly on an empty vector", function () { return assert.deepEqual([], Vector_1.Vector.empty().init().toArray()); });

2

package.json
{
"name": "prelude.ts",
"version": "0.7.11",
"version": "0.7.12",
"description": "A typescript functional programming library",

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

@@ -821,2 +821,6 @@ import { Option } from "./Option";

map<U>(fun:(x:T)=>U): Vector<U> {
if (this._length === 0) {
return Vector.empty<U>();
}
const leafNodes = this.getLeafNodes(this._length);

@@ -823,0 +827,0 @@ const newLeafNodes: U[][] = [];

@@ -46,2 +46,4 @@ import { Vector } from "../src/Vector";

});
it("map works on the empty vector", () => assert.ok(
Vector.empty<number>().equals(Vector.empty<number>().map(x=>x+1))));
it("handles init correctly on a non-empty vector", () => assert.deepEqual(

@@ -48,0 +50,0 @@ [1,2,3], Vector.of(1,2,3,4).init().toArray()));

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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