Socket
Socket
Sign inDemoInstall

@thi.ng/transducers

Package Overview
Dependencies
Maintainers
1
Versions
327
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.4.0 to 1.5.0

iter/keys.d.ts

11

CHANGELOG.md

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

<a name="1.5.0"></a>
# [1.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.4.0...@thi.ng/transducers@1.5.0) (2018-02-26)
### Features
* **transducers:** add keys()/vals() iterators, refactor pairs() ([9824844](https://github.com/thi-ng/umbrella/commit/9824844))
<a name="1.4.0"></a>

@@ -8,0 +19,0 @@ # [1.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@1.3.0...@thi.ng/transducers@1.4.0) (2018-02-23)

2

index.d.ts

@@ -105,2 +105,3 @@ export * from "./api";

export * from "./iter/iterate";
export * from "./iter/keys";
export * from "./iter/pairs";

@@ -114,1 +115,2 @@ export * from "./iter/range";

export * from "./iter/tuples";
export * from "./iter/vals";

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

__export(require("./iter/iterate"));
__export(require("./iter/keys"));
__export(require("./iter/pairs"));

@@ -119,1 +120,2 @@ __export(require("./iter/range"));

__export(require("./iter/tuples"));
__export(require("./iter/vals"));

3

iter/pairs.d.ts

@@ -1,1 +0,2 @@

export declare function pairs(x: any): IterableIterator<[string, any]>;
import { IObjectOf } from "@thi.ng/api/api";
export declare function pairs<T>(x: IObjectOf<T>): IterableIterator<[string, T]>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function* pairs(x) {
for (let k of Object.keys(x)) {
yield [k, x[k]];
for (let k in x) {
if (x.hasOwnProperty(k)) {
yield [k, x[k]];
}
}
}
exports.pairs = pairs;
{
"name": "@thi.ng/transducers",
"version": "1.4.0",
"version": "1.5.0",
"description": "Lightweight transducer implementations for ES6 / TypeScript",

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

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