Socket
Socket
Sign inDemoInstall

dustjs-linkedin

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dustjs-linkedin - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

dist/dust-core-2.1.4.js

2

lib/dust.js

@@ -206,3 +206,3 @@ var dust = {};

for (;fromIndex < length; fromIndex++) {
if (this[fromIndex] === item) {
if (arr[fromIndex] === item) {
return fromIndex;

@@ -209,0 +209,0 @@ }

{
"name": "dustjs-linkedin",
"version": "2.1.3",
"version": "2.1.4",
"author": "Aleksander Williams",

@@ -5,0 +5,0 @@ "description": "Asynchronous templates for the browser and node.js ( LinkedIn fork )",

@@ -106,2 +106,19 @@ (function(exports){

});
suite.test("indexInArray", function() {
var unit = this,
arr = ["hello", "world"],
indexOf;
indexOf = dust.indexInArray(arr, "world");
unit.equals(indexOf, 1);
indexOf = dust.indexInArray(arr, "foo");
unit.equals(indexOf, -1);
Array.prototype.indexOf = undefined;
// test indexOf when the array indexOf function is undefined (IE lte 8)
indexOf = dust.indexInArray(arr, "world");
unit.equals(indexOf, 1);
indexOf = dust.indexInArray(arr, "foo");
unit.equals(indexOf, -1);
unit.pass();
});
}

@@ -108,0 +125,0 @@

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