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

mako-tree

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mako-tree - npm Package Compare versions

Comparing version 0.15.0 to 0.15.1

6

HISTORY.md
0.15.1 / 2016-08-30
===================
* cloning should preserve the root
* chore(package): update standard to version 8.0.0 (#18)
0.15.0 / 2016-08-10

@@ -3,0 +9,0 @@ ===================

2

lib/tree.js

@@ -291,3 +291,3 @@ 'use strict'

let timer = utils.timer()
let tree = new Tree()
let tree = new Tree(this.root)
tree.graph = this.graph.clone(file => file.clone(tree), value => value)

@@ -294,0 +294,0 @@ debug('cloned tree (took %s)', timer())

{
"name": "mako-tree",
"version": "0.15.0",
"version": "0.15.1",
"main": "./lib/tree",

@@ -31,3 +31,3 @@ "description": "The build tree structure used internally by mako",

"mocha": "^3.0.0",
"standard": "^7.1.2"
"standard": "^8.0.0"
},

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

@@ -474,3 +474,3 @@ /* eslint-env mocha */

// <- c.js
let tree = new Tree()
let tree = new Tree('/some/root')
let a = tree.addFile('a.js')

@@ -485,7 +485,12 @@ let b = tree.addFile('b.js')

assert.notStrictEqual(tree, clone)
assert.notStrictEqual(clone, tree)
assert.instanceOf(clone, Tree)
assert.strictEqual(tree.size(), clone.size())
assert.deepEqual(tree.getFiles({ topolical: true }), clone.getFiles({ topolical: true }))
assert.strictEqual(clone.size(), tree.size())
assert.deepEqual(clone.getFiles({ topological: true }), tree.getFiles({ topological: true }))
})
it('should preserve the root', function () {
let clone = tree.clone()
assert.strictEqual(clone.root, tree.root)
})
})

@@ -492,0 +497,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