Socket
Socket
Sign inDemoInstall

yallist

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.0.3

10

iterator.js
'use strict'
var Yallist = require('./yallist.js')
Yallist.prototype[Symbol.iterator] = function* () {
for (let walker = this.head; walker; walker = walker.next) {
yield walker.value
module.exports = function (Yallist) {
Yallist.prototype[Symbol.iterator] = function* () {
for (let walker = this.head; walker; walker = walker.next) {
yield walker.value
}
}
}
{
"name": "yallist",
"version": "3.0.2",
"version": "3.0.3",
"description": "Yet Another Linked List",

@@ -15,3 +15,3 @@ "main": "yallist.js",

"devDependencies": {
"tap": "^10.3.0"
"tap": "^12.1.0"
},

@@ -18,0 +18,0 @@ "scripts": {

@@ -374,4 +374,4 @@ 'use strict'

try {
// add if support or Symbol.iterator is present
require('./iterator.js')
// add if support for Symbol.iterator is present
require('./iterator.js')(Yallist)
} catch (er) {}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc