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

cpy

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpy - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

6

index.js

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

const globby = require('globby');
const isGlob = require('is-glob');
const hasGlob = require('has-glob');
const cpFile = require('cp-file');

@@ -74,5 +74,3 @@ const junk = require('junk');

const sourcePaths = source.filter(value => !isGlob(value));
if (files.length === 0 || (sourcePaths.length > 0 && !sourcePaths.every(value => files.includes(value)))) {
if (files.length === 0 && !hasGlob(source)) {
throw new CpyError(`Cannot copy \`${source}\`: the file doesn't exist`);

@@ -79,0 +77,0 @@ }

{
"name": "cpy",
"version": "8.0.0",
"version": "8.0.1",
"description": "Copy files",

@@ -49,3 +49,3 @@ "license": "MIT",

"globby": "^9.2.0",
"is-glob": "^4.0.1",
"has-glob": "^1.0.0",
"junk": "^3.1.0",

@@ -52,0 +52,0 @@ "nested-error-stacks": "^2.1.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