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

iterate-iterator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iterate-iterator - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.eslintignore

25

CHANGELOG.md

@@ -10,2 +10,27 @@ # Changelog

## [v1.0.2](https://github.com/ljharb/iterate-iterator/compare/v1.0.1...v1.0.2) - 2021-10-01
### Commits
- [Tests] migrate tests to Github Actions [`13a9d00`](https://github.com/ljharb/iterate-iterator/commit/13a9d00a301607a65f9ff2aa8f638ba6a5e041c2)
- [meta] do not publish Github Actions workflows [`15d4556`](https://github.com/ljharb/iterate-iterator/commit/15d4556fa2af40c4e2b8553fb2d88c573ece6400)
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`a23decd`](https://github.com/ljharb/iterate-iterator/commit/a23decd18d5d290c174b66357d505bdded02586a)
- [Tests] run `nyc` on all tests; use `tape` runner [`86adda1`](https://github.com/ljharb/iterate-iterator/commit/86adda11de9a9cce0866c3ab1a48320527aeb0de)
- [Tests] fix tests in IE 8 [`9c44f28`](https://github.com/ljharb/iterate-iterator/commit/9c44f282d527869a0cbf178a1cbb53d62d02b989)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `es-get-iterator`, `object-inspect`, `tape` [`7887af7`](https://github.com/ljharb/iterate-iterator/commit/7887af72e52764d6faf7b4eaf76304b005261dd4)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `auto-changelog`, `object-inspect`, `tape` [`21975ca`](https://github.com/ljharb/iterate-iterator/commit/21975ca582cf812efb87726e23056c12df1956d2)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `es-get-iterator`, `object-inspect`, `tape` [`a42d8cd`](https://github.com/ljharb/iterate-iterator/commit/a42d8cd001fd5a866375ba54d24ab82e71c8ad66)
- [actions] add "Allow Edits" workflow [`a23d108`](https://github.com/ljharb/iterate-iterator/commit/a23d108df3c60295deac052c640a3896583aa31e)
- [readme] remove travis badge [`dc38174`](https://github.com/ljharb/iterate-iterator/commit/dc3817435c3555991e84879e775792a05ea3d7e1)
- [Dev Deps] update `@ljharb/eslint-config`, `es-get-iterator` [`970e212`](https://github.com/ljharb/iterate-iterator/commit/970e212b70ac475b92476900c2f85dbfe1285b08)
- [readme] add actions and codecov badges [`1a41785`](https://github.com/ljharb/iterate-iterator/commit/1a417854e3d6d395e4226332706fcd37a67f9bb4)
- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`9e5bcbf`](https://github.com/ljharb/iterate-iterator/commit/9e5bcbfd891f4ba0069f48a1d7c34e9367c1e921)
- [Dev Deps] update `aud`, `auto-changelog` [`63f0b43`](https://github.com/ljharb/iterate-iterator/commit/63f0b4354ce3e6114edfefd16dc451f9408038a2)
- [Dev Deps] update `auto-changelog`, `tape` [`2186bf5`](https://github.com/ljharb/iterate-iterator/commit/2186bf55ba6665243ebfe627ede6075323608b8f)
- [meta] add `package.json` to "exports" [`97a1ac2`](https://github.com/ljharb/iterate-iterator/commit/97a1ac25505d0b1e9d1fd39148f3c3b70be88a4f)
- [meta] use `prepublishOnly`, for npm 7+ [`b35c088`](https://github.com/ljharb/iterate-iterator/commit/b35c08895e53a2f54a7ac5e69b652194c041c952)
- [Tests] only audit prod deps [`15f9f7c`](https://github.com/ljharb/iterate-iterator/commit/15f9f7cc7e8a8098905021aae920069794d27481)
- [meta] add `funding` field [`ab52815`](https://github.com/ljharb/iterate-iterator/commit/ab52815bee18c7c7ef7034049ae1827c90a17142)
- [Dev Deps] update `tape` [`d044397`](https://github.com/ljharb/iterate-iterator/commit/d044397b05a45a9007205474d25150963f7eb08f)
## [v1.0.1](https://github.com/ljharb/iterate-iterator/compare/v1.0.0...v1.0.1) - 2020-01-18

@@ -12,0 +37,0 @@

34

package.json
{
"name": "iterate-iterator",
"version": "1.0.1",
"version": "1.0.2",
"description": "Iterate any JS iterator. Works robustly in all environments, all versions.",

@@ -12,13 +12,14 @@ "main": "index.js",

"./index.js"
]
],
"./package.json": "./package.json"
},
"scripts": {
"prepublish": "safe-publish-latest",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
"prelint": "evalmd README.md",
"lint": "eslint .",
"tests-only": "node test",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"coverage": "covert test",
"posttest": "npx aud",
"posttest": "aud --production",
"version": "auto-changelog && git add CHANGELOG.md",

@@ -42,2 +43,5 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""

"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",

@@ -49,12 +53,13 @@ "bugs": {

"devDependencies": {
"@ljharb/eslint-config": "^15.1.0",
"auto-changelog": "^1.16.2",
"covert": "^1.1.1",
"es-get-iterator": "^1.0.2",
"eslint": "^6.8.0",
"@ljharb/eslint-config": "^18.0.0",
"aud": "^1.1.5",
"auto-changelog": "^2.3.0",
"es-get-iterator": "^1.1.2",
"eslint": "^7.32.0",
"evalmd": "^0.0.19",
"for-each": "^0.3.3",
"object-inspect": "^1.7.0",
"nyc": "^10.3.2",
"object-inspect": "^1.11.0",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.0-next.3"
"tape": "^5.3.1"
},

@@ -67,3 +72,6 @@ "auto-changelog": {

"backfillLimit": false
},
"testling": {
"files": "test/index.js"
}
}
# iterate-iterator <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![Build Status][travis-svg]][travis-url]
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]

@@ -52,5 +53,3 @@ [![dev dependency status][dev-deps-svg]][dev-deps-url]

[package-url]: https://npmjs.org/package/iterate-iterator
[npm-version-svg]: http://versionbadg.es/ljharb/iterate-iterator.svg
[travis-svg]: https://travis-ci.org/ljharb/iterate-iterator.svg
[travis-url]: https://travis-ci.org/ljharb/iterate-iterator
[npm-version-svg]: https://versionbadg.es/ljharb/iterate-iterator.svg
[deps-svg]: https://david-dm.org/ljharb/iterate-iterator.svg

@@ -61,5 +60,9 @@ [deps-url]: https://david-dm.org/ljharb/iterate-iterator

[npm-badge-png]: https://nodei.co/npm/iterate-iterator.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/iterate-iterator.svg
[license-image]: https://img.shields.io/npm/l/iterate-iterator.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/iterate-iterator.svg
[downloads-url]: http://npm-stat.com/charts.html?package=iterate-iterator
[downloads-image]: https://img.shields.io/npm/dm/iterate-iterator.svg
[downloads-url]: https://npm-stat.com/charts.html?package=iterate-iterator
[codecov-image]: https://codecov.io/gh/ljharb/iterate-iterator/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/iterate-iterator/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/iterate-iterator
[actions-url]: https://github.com/ljharb/iterate-iterator/actions

@@ -9,2 +9,4 @@ 'use strict';

var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false
function testIteration(t, iterable, expected, message) {

@@ -37,5 +39,8 @@ t.deepEqual(iterate(getIterator(iterable)), expected, 'no callback: ' + message);

});
var sparse = [1, , 3]; // eslint-disable-line no-sparse-arrays
var actual = testIteration(t, sparse, [1, undefined, 3], debug(sparse));
t.ok(1 in actual, 'actual is not sparse');
t.test('sparse arrays', { skip: !canDistinguishSparseFromUndefined }, function (st) {
var sparse = [1, , 3]; // eslint-disable-line no-sparse-arrays
var actual = testIteration(st, sparse, [1, undefined, 3], debug(sparse));
st.ok(1 in actual, 'actual is not sparse');
st.end();
});

@@ -42,0 +47,0 @@ t.end();

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