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

assets-manager

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets-manager - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

4

dist/Package.js

@@ -80,3 +80,5 @@ 'use strict';

value: function isInstalled() {
return _file3.default.isDirectory(this.path);
return _file3.default.isDirectory(this.path, {
cwd: _configure2.default.get('cwd', process.cwd())
});
}

@@ -83,0 +85,0 @@ }, {

@@ -67,3 +67,3 @@ 'use strict';

return _finder2.default.listFiles(this.getPackagePath(packageName), '**/*', options);
return _finder2.default.listFiles(this.getRelativePackagePath(packageName), '**/*', options);
}

@@ -89,3 +89,3 @@ }, {

var dir = this.getPackagePath(packageName);
var dir = this.getRelativePackagePath(packageName);

@@ -110,2 +110,7 @@ if (main === true) {

value: function getPackagePath(packageName) {
return _path2.default.join(this.options.dir, packageName);
}
}, {
key: 'getRelativePackagePath',
value: function getRelativePackagePath(packageName) {
return _path2.default.join(this.relative, this.options.dir, packageName);

@@ -112,0 +117,0 @@ }

@@ -64,5 +64,5 @@ 'use strict';

value: function getPackageInfo(packageName, key) {
var infoPath = _path2.default.join(this.getPackagePath(packageName), this.options.componentJson);
var infoPath = _path2.default.join(this.getRelativePackagePath(packageName), this.options.componentJson);
if (!_file2.default.exists(infoPath)) {
infoPath = _path2.default.join(this.getPackagePath(packageName), this.options.json);
infoPath = _path2.default.join(this.getRelativePackagePath(packageName), this.options.json);
}

@@ -69,0 +69,0 @@

@@ -62,3 +62,3 @@ 'use strict';

value: function getPackageInfo(packageName, key) {
var packagePath = this.getPackagePath(packageName);
var packagePath = this.getRelativePackagePath(packageName);

@@ -91,3 +91,3 @@ if (!_file2.default.isDirectory(packagePath)) {

value: function getPackageInstallCmd(packageName) {
var packagePath = this.getPackagePath(packageName);
var packagePath = this.getRelativePackagePath(packageName);
return 'check ' + packagePath + ' path';

@@ -94,0 +94,0 @@ }

@@ -65,3 +65,3 @@ 'use strict';

value: function getPackageInfo(packageName, key) {
var infoPath = _path2.default.join(this.getPackagePath(packageName), this.options.json);
var infoPath = _path2.default.join(this.getRelativePackagePath(packageName), this.options.json);
var info = {};

@@ -68,0 +68,0 @@

{
"name": "assets-manager",
"version": "0.2.6",
"version": "0.2.7",
"description": "Copy packages files based on manifest file",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/amazingSurge/assets-manager",

@@ -146,2 +146,6 @@ # assets-manager [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]

### dest
The destination path. It's relative path to cwd.
Defaults to `assets`.
### flattenPackages

@@ -148,0 +152,0 @@ Whether to remove all package path parts from generated dest paths.

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