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

ypkgfiles

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ypkgfiles - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

2

bin/ypkgfiles.js

@@ -9,2 +9,3 @@ #!/usr/bin/env node

.boolean('check')
.boolean('strict')
.argv;

@@ -18,2 +19,3 @@

check: argv.check,
strict: argv.strict,
});

@@ -20,0 +22,0 @@ } catch (err) {

1.5.0 / 2017-10-12
==================
* feat: enable strict mode with --strict (#10)
1.4.0 / 2017-04-14

@@ -3,0 +8,0 @@ ==================

7

index.js

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

check: false,
strict: false,
};

@@ -35,3 +36,3 @@

if (isCheck) return check(files, pkg.files || []);
if (isCheck) return check(files, pkg.files || [], options.strict);

@@ -101,5 +102,5 @@ pkg.files = files;

function check(files, originalFiles) {
function check(files, originalFiles, strict) {
const msg = `pkg.files should equal to ${toArray(files)}, but got ${toArray(originalFiles)}`;
assert(files.length === originalFiles.length, msg);
if (strict) assert(files.length === originalFiles.length, msg);
for (const file of files) {

@@ -106,0 +107,0 @@ assert(originalFiles.indexOf(file) > -1, msg);

{
"name": "ypkgfiles",
"version": "1.4.0",
"version": "1.5.0",
"description": "Yet another pkgfiles that generate pkg.files automatically",

@@ -5,0 +5,0 @@ "dependencies": {

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