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

@thi.ng/transducers

Package Overview
Dependencies
Maintainers
1
Versions
331
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/transducers - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

<a name="1.7.1"></a>
## [1.7.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.7.0...@thi.ng/transducers@1.7.1) (2018-03-21)
**Note:** Version bump only for package @thi.ng/transducers
<a name="1.7.0"></a>

@@ -8,0 +16,0 @@ # [1.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.6.2...@thi.ng/transducers@1.7.0) (2018-03-19)

3

func/comp.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@thi.ng/api/error");
function comp(...fns) {

@@ -7,3 +8,3 @@ let [a, b, c, d, e, f, g, h, i, j] = fns;

case 0:
throw new Error("no fn args given");
error_1.illegalArity(0);
case 1:

@@ -10,0 +11,0 @@ return a;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@thi.ng/api/error");
function ensureIterable(x) {
if (!(x != null && x[Symbol.iterator])) {
throw new Error(`value is not iterable: ${x}`);
error_1.illegalArgs(`value is not iterable: ${x}`);
}

@@ -7,0 +8,0 @@ return x;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const range_1 = require("./range");
const error_1 = require("@thi.ng/api/error");
const is_array_1 = require("@thi.ng/checks/is-array");
const is_string_1 = require("@thi.ng/checks/is-string");
const range_1 = require("./range");
function* permutations(...src) {

@@ -49,3 +50,3 @@ const n = src.length - 1;

if (offsets && offsets.length < n) {
throw new Error("not sufficient offsets given");
error_1.illegalArgs(`insufficient offsets, got ${offsets.length}, but needed ${n}`);
}

@@ -52,0 +53,0 @@ const seqs = [];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@thi.ng/api/error");
const range_1 = require("./range");

@@ -18,3 +19,3 @@ function* range2d(...args) {

default:
throw new Error(`invalid arity: ${args.length}`);
error_1.illegalArity(args.length);
}

@@ -21,0 +22,0 @@ for (let y of range_1.range(fromY, toY, stepY)) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@thi.ng/api/error");
const range_1 = require("./range");

@@ -19,3 +20,3 @@ function* range3d(...args) {

default:
throw new Error(`invalid arity: ${args.length}`);
error_1.illegalArity(args.length);
}

@@ -22,0 +23,0 @@ for (let z of range_1.range(fromZ, toZ, stepZ)) {

{
"name": "@thi.ng/transducers",
"version": "1.7.0",
"version": "1.7.1",
"description": "Lightweight transducer implementations for ES6 / TypeScript",

@@ -29,3 +29,3 @@ "main": "./index.js",

"dependencies": {
"@thi.ng/api": "^2.0.4"
"@thi.ng/api": "^2.1.0"
},

@@ -32,0 +32,0 @@ "keywords": [

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@thi.ng/api/error");
const reduced_1 = require("./reduced");

@@ -15,3 +16,3 @@ function reduce(...args) {

default:
throw new Error(`illegal arity ${args.length}`);
error_1.illegalArity(args.length);
}

@@ -18,0 +19,0 @@ const [init, complete, reduce] = args[0];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@thi.ng/api/error");
const reduce_1 = require("./reduce");

@@ -18,3 +19,3 @@ const map_1 = require("./xform/map");

default:
throw new Error(`illegal arity ${args.length}`);
error_1.illegalArity(args.length);
}

@@ -21,0 +22,0 @@ const _rfn = args[0](args[1]);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@thi.ng/api/error");
const transduce_1 = require("../transduce");

@@ -39,3 +40,3 @@ const range2d_1 = require("../iter/range2d");

default:
throw new Error(`illegal arity: ${args.length + 3}`);
error_1.illegalArity(args.length + 3);
}

@@ -42,0 +43,0 @@ return map_1.map(([x, y]) => transduce_1.transduce(map_1.map(kernelLookup2d(src, x, y, width, height, wrap)), add_1.add(), kernel));

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