+7
-0
| # Changelog | ||
| ## [v0.11.0] | ||
| > Jan 1, 2016 | ||
| - Implement `scour#equal()`. | ||
| ## [v0.10.0] | ||
@@ -98,1 +103,3 @@ > Jan 1, 2016 | ||
| [v0.9.3]: https://github.com/rstacruz/scour/compare/v0.9.1...v0.9.3 | ||
| [v0.10.0]: https://github.com/rstacruz/scour/compare/v0.9.3...v0.10.0 | ||
| [v0.11.0]: https://github.com/rstacruz/scour/compare/v0.10.0...v0.11.0 |
+13
-0
@@ -681,2 +681,15 @@ /* eslint-disable new-cap */ | ||
| }, | ||
| /** | ||
| * Checks for equality between two Scour-wrapped objects. | ||
| * | ||
| * a = scour(data) | ||
| * b = scour(data) | ||
| * | ||
| * a.equal(b) // => true | ||
| */ | ||
| equal: function equal(other) { | ||
| return this.value === other.value && this.keypath.join('.') === other.keypath.join('.'); | ||
| }, | ||
| toString: function toString() { | ||
@@ -683,0 +696,0 @@ return '[scour (' + this.keys().join(', ') + ')]'; |
+1
-1
| { | ||
| "name": "scourjs", | ||
| "description": "Traverse objects and arrays", | ||
| "version": "0.10.0", | ||
| "version": "0.11.0", | ||
| "author": "Rico Sta. Cruz <rico@ricostacruz.com>", | ||
@@ -6,0 +6,0 @@ "babel": { |
+13
-0
@@ -728,2 +728,15 @@ # scour.js | ||
| ### equal | ||
| > `equal(other)` | ||
| Checks for equality between two Scour-wrapped objects. | ||
| ```js | ||
| a = scour(data) | ||
| b = scour(data) | ||
| a.equal(b) // => true | ||
| ``` | ||
| ## Iteration methods | ||
@@ -730,0 +743,0 @@ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
534218
0.12%4347
0.25%1143
1.15%