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

fixturify-project

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fixturify-project - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

7

index.js

@@ -6,2 +6,3 @@ 'use strict';

const fs = require('fs');
const path = require('path');

@@ -52,3 +53,3 @@ tmp.setGracefulCleanup();

get baseDir() {
return `${this._root}/${this.name}`;
return path.join(this._root, this.name);
}

@@ -148,3 +149,3 @@

if (typeof name === 'string') {
dep = this._dependencies[name] = new this.constructor(name, version, null, `${this.root}/${this.name}/node_modules`);
dep = this._dependencies[name] = new this.constructor(name, version, null, path.join(this.root, this.name, 'node_modules'));
} else if (name.isDependency) {

@@ -175,3 +176,3 @@ dep = this._dependencies[name.name] = name;

if (typeof name === 'string') {
dep = this._devDependencies[name] = new this.constructor(name, version, null, `${this.root}/${this.name}/node_modules`);
dep = this._devDependencies[name] = new this.constructor(name, version, null, path.join(this.root, this.name, 'node_modules'));
} else if (name.isDependency) {

@@ -178,0 +179,0 @@ dep = this._devDependencies[name.name] = name;

{
"name": "fixturify-project",
"version": "1.6.0",
"version": "1.7.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": "git@github.com:stefanpenner/node-fixturify-project",

@@ -7,2 +7,3 @@ 'use strict';

const fs = require('fs-extra');
const path = require('path');

@@ -34,6 +35,6 @@ describe('Project', function() {

expect(rsvp.root).to.eql(`${project.root}/rsvp/node_modules/ember-cli/node_modules`);
expect(source.root).to.eql(`${project.root}/rsvp/node_modules`);
expect(rsvp.baseDir).to.eql(`${project.root}/rsvp/node_modules/ember-cli/node_modules/rsvp`);
expect(source.baseDir).to.eql(`${project.root}/rsvp/node_modules/ember-source`);
expect(rsvp.root).to.eql(path.normalize(`${project.root}/rsvp/node_modules/ember-cli/node_modules`));
expect(source.root).to.eql(path.normalize(`${project.root}/rsvp/node_modules`));
expect(rsvp.baseDir).to.eql(path.normalize(`${project.root}/rsvp/node_modules/ember-cli/node_modules/rsvp`));
expect(source.baseDir).to.eql(path.normalize(`${project.root}/rsvp/node_modules/ember-source`));

@@ -40,0 +41,0 @@ expect(read(`${project.root}/rsvp/index.js`)).to.eql(`module.exports = "Hello, World!";`);

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