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

gulp-ssg

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-ssg - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

3

index.js

@@ -55,7 +55,6 @@ 'use strict';

}
Object.keys(buffer).forEach(function(url) {
var file = buffer[url];
file.data = extend({
root: buffer['/'] || null,
root: buffer[options.baseUrl] || null,
parent: parent(url),

@@ -62,0 +61,0 @@ children: children(url),

{
"name": "gulp-ssg",
"version": "2.2.0",
"version": "2.2.1",
"main": "index.js",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/paulwib/gulp-ssg",

@@ -60,2 +60,4 @@ 'use strict';

expect(p2_1.data.root.data.url).to.equal('/');
expect(p2_1.data.root.data.children).not.to.be.null;
expect(p2_1.data.root.data.children.length).to.equal(2);
done();

@@ -212,2 +214,3 @@ });

stream.on('end', function() {
// Check page URLs
expect(h.data.url).to.equal('/path/to/site/');

@@ -217,2 +220,7 @@ expect(p1.data.url).to.equal('/path/to/site/hello.html');

expect(p2_1.data.url).to.equal('/path/to/site/foo/bar.html');
// Check reference to root
expect(p2_1.data.root.data.url).to.equal('/path/to/site/');
expect(p2_1.data.root.data.children).not.to.be.null;
expect(p2_1.data.root.data.children.length).to.equal(2);
done();

@@ -340,3 +348,3 @@ });

it('should give not break if there is no root file', function(done) {
it('should not break if there is no root file', function(done) {

@@ -343,0 +351,0 @@ var stream = ssg();

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