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

treenode

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

treenode - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

3

dist/treenode.js

@@ -146,3 +146,2 @@ (function (global, factory) {

exports.TreeNode = TreeNode;
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRyZWVub2RlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztRQUlhLFFBQVE7Ozs7Ozs7Ozs7QUFTTixpQkFURixRQUFRLENBU0wsSUFBSSxFQUFFLE1BQU0sRUFBRTtrQ0FUakIsUUFBUTs7QUFVYixnQkFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7QUFDakIsZ0JBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO0FBQ3JCLGdCQUFJLENBQUMsUUFBUSxHQUFHLEVBQUUsQ0FBQztBQUNuQixtQkFBTyxJQUFJLENBQUM7U0FDZjs7cUJBZFEsUUFBUTs7Ozs7Ozs7bUJBcUJULGtCQUFDLElBQUksRUFBRTtBQUNYLG9CQUFJLEtBQUssR0FBRyxJQUFJLFFBQVEsQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLENBQUM7QUFDckMsb0JBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQzFCLHVCQUFPLEtBQUssQ0FBQzthQUNoQjs7Ozs7Ozs7O21CQU9HLGNBQUMsSUFBSSxFQUFFO0FBQ1Asb0JBQUksSUFBSSxLQUFLLElBQUksQ0FBQyxJQUFJLEVBQUU7QUFDcEIsMkJBQU8sSUFBSSxDQUFDO2lCQUNmOztBQUVELHFCQUFLLElBQ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50IG5vZGUgYWZ0ZXJ3YXJkcy5cbiAgICAgKlxuICAgICAqIEBwYXJhbSBjYWxsYmFjayBBIGZ1bmN0aW9uIHdoaWNoIHdpbGwgdGFrZSBlYWNoIG5vZGUgYXMgYSBwYXJhbWV0ZXIuXG4gICAgICogQHJldHVybnMge1RyZWVOb2RlfVxuICAgICAqL1xuICAgIGZvckVhY2goY2FsbGJhY2spIHtcbiAgICAgICAgaWYgKHR5cGVvZiBjYWxsYmFjayAhPT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcignZm9yRWFjaCgpIGNhbGxiYWNrIG11c3QgYmUgYSBmdW5jdGlvbicpO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gcnVuIHRoaXMgbm9kZSB0aHJvdWdoIGZ1bmN0aW9uXG4gICAgICAgIGNhbGxiYWNrKHRoaXMpO1xuXG4gICAgICAgIC8vIGRvIHRoZSBzYW1lIGZvciBhbGwgY2hpbGRyZW5cbiAgICAgICAgZm9yIChsZXQgaSA9IDAsIGxlbmd0aCA9IHRoaXMuY2hpbGRyZW4ubGVuZ3RoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgIGNhbGxiYWNrKHRoaXMuY2hpbGRyZW5baV0pO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxufSJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
});

@@ -24,3 +24,3 @@ // vars and includes

// deletes css and js/dist directories as well as all their contents
// deletes dist directories as well as all their contents
gulp.task('dev:clean', function() {

@@ -57,5 +57,6 @@ var directories = [

// *** PROD ***
gulp.task('prod', ['prod:js']);
gulp.task('prod', ['prod:jsmin']);
gulp.task('prod:js', ['dev:js'], function() {
// concats the JS source files into a single app.js file, minified. Performs JS linting and ES6->ES5 transpilation
gulp.task('prod:jsmin', ['prod:js'], function() {
var appFiles = './source/**/*.js',

@@ -76,9 +77,26 @@ destPath = './dist',

// concats the JS source files into a single app.js file, non-minified. Performs JS linting and ES6->ES5 transpilation
gulp.task('prod:js', ['dev:clean'], function() {
var appFiles = './source/**/*.js',
destPath = './dist',
stream = streamqueue({ objectMode: true });
stream.queue(
gulp.src(appFiles).pipe(eslint()).pipe(eslint.format())
);
return stream.done()
.pipe(babel({ modules: "umd" }))
.pipe(concat('treenode.js'))
.pipe(gulp.dest(destPath))
});
// *** TEST ***
gulp.task('test', ['test:jasmine']);
gulp.task('test:jasmine', function() {
gulp.task('test:jasmine', ['dev:js'], function() {
return gulp.src('./test/**/*.spec.js')
.pipe(jasmine());
});
{
"name": "treenode",
"version": "0.2.0",
"version": "0.2.1",
"description": "Very simple tree data structure in JS",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -57,2 +57,3 @@ Tree Node

* 0.2.1 Remove sourcemaps from non-minified prod file
* 0.2.0 Add forEach() to execute a function on each node in a tree

@@ -59,0 +60,0 @@ * 0.1.4 Better module export syntax

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