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

@percy/config

Package Overview
Dependencies
Maintainers
6
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/config - npm Package Compare versions

Comparing version 1.0.0-beta.71 to 1.0.0-beta.72

8

dist/defaults.js

@@ -6,3 +6,4 @@ "use strict";

});
exports.default = getDefaults;
exports.default = void 0;
exports.getDefaults = getDefaults;

@@ -49,2 +50,5 @@ var _utils = require("./utils");

});
}
}
var _default = getDefaults;
exports.default = _default;

@@ -6,3 +6,81 @@ "use strict";

});
Object.defineProperty(exports, "addMigration", {
enumerable: true,
get: function () {
return _migrate.addMigration;
}
});
Object.defineProperty(exports, "addSchema", {
enumerable: true,
get: function () {
return _validate.addSchema;
}
});
Object.defineProperty(exports, "cache", {
enumerable: true,
get: function () {
return _load.cache;
}
});
Object.defineProperty(exports, "clearMigrations", {
enumerable: true,
get: function () {
return _migrate.clearMigrations;
}
});
exports.default = void 0;
Object.defineProperty(exports, "explorer", {
enumerable: true,
get: function () {
return _load.explorer;
}
});
Object.defineProperty(exports, "getDefaults", {
enumerable: true,
get: function () {
return _defaults.default;
}
});
Object.defineProperty(exports, "load", {
enumerable: true,
get: function () {
return _load.default;
}
});
Object.defineProperty(exports, "migrate", {
enumerable: true,
get: function () {
return _migrate.default;
}
});
Object.defineProperty(exports, "normalize", {
enumerable: true,
get: function () {
return _normalize.default;
}
});
Object.defineProperty(exports, "resetSchema", {
enumerable: true,
get: function () {
return _validate.resetSchema;
}
});
Object.defineProperty(exports, "search", {
enumerable: true,
get: function () {
return _load.search;
}
});
Object.defineProperty(exports, "stringify", {
enumerable: true,
get: function () {
return _stringify.default;
}
});
Object.defineProperty(exports, "validate", {
enumerable: true,
get: function () {
return _validate.default;
}
});

@@ -27,3 +105,3 @@ var _load = _interopRequireWildcard(require("./load"));

// Export a single object that can be imported as PercyConfig
// mirror the namespace as the default export
var _default = {

@@ -30,0 +108,0 @@ load: _load.default,

@@ -6,5 +6,4 @@ "use strict";

});
exports.cache = void 0;
exports.default = load;
exports.explorer = void 0;
exports.explorer = exports.default = exports.cache = void 0;
exports.load = load;
exports.search = search;

@@ -44,4 +43,8 @@

function search(path) {
let result = !path || (0, _fs.statSync)(path).isDirectory() ? explorer.search(path) : explorer.load(path);
return result !== null && result !== void 0 && result.config ? result : {};
try {
let result = path && !(0, _fs.statSync)(path).isDirectory() ? explorer.load(path) : explorer.search(path);
return result || {};
} catch (error) {
if (error.code === 'ENOENT') return {};else throw error;
}
} // Finds and loads a config file using cosmiconfig, merges it with optional

@@ -76,3 +79,3 @@ // inputs, validates the combined config according to the schema, and returns

if (result.config) {
if (result !== null && result !== void 0 && result.config) {
log[infoDebug](`Found config file: ${(0, _path.relative)('', result.filepath)}`);

@@ -95,5 +98,7 @@ let version = parseInt(result.config.version, 10);

log[infoDebug]('Config file not found');
if (bail) return;
}
} catch (error) {
log[errorDebug](error);
if (bail) return;
}

@@ -123,2 +128,5 @@ } // normalize and merge with overrides then validate

return (0, _defaults.default)(config);
}
}
var _default = load;
exports.default = _default;

@@ -8,3 +8,4 @@ "use strict";

exports.clearMigrations = clearMigrations;
exports.default = migrate;
exports.default = void 0;
exports.migrate = migrate;

@@ -95,2 +96,5 @@ var _logger = _interopRequireDefault(require("@percy/logger"));

return config;
}
}
var _default = migrate;
exports.default = _default;

@@ -6,3 +6,6 @@ "use strict";

});
exports.default = normalize;
exports.camelcase = camelcase;
exports.default = void 0;
exports.kebabcase = kebabcase;
exports.normalize = normalize;

@@ -50,2 +53,5 @@ var _validate = require("./validate");

});
}
}
var _default = normalize;
exports.default = _default;

@@ -6,4 +6,5 @@ "use strict";

});
exports.default = stringify;
exports.default = void 0;
exports.inspect = inspect;
exports.stringify = stringify;

@@ -43,2 +44,5 @@ var _util = _interopRequireDefault(require("util"));

}
}
}
var _default = stringify;
exports.default = _default;

@@ -7,5 +7,6 @@ "use strict";

exports.addSchema = addSchema;
exports.default = validate;
exports.default = void 0;
exports.getSchema = getSchema;
exports.resetSchema = resetSchema;
exports.validate = validate;

@@ -253,2 +254,5 @@ var _ajv = _interopRequireDefault(require("ajv"));

}
}
}
var _default = validate;
exports.default = _default;
{
"name": "@percy/config",
"version": "1.0.0-beta.71",
"version": "1.0.0-beta.72",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/percy/cli",
"directory": "packages/config"
},
"publishConfig": {
"access": "public"
},
"main": "dist/index.js",

@@ -21,7 +29,4 @@ "types": "types/index.d.ts",

},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@percy/logger": "1.0.0-beta.71",
"@percy/logger": "1.0.0-beta.72",
"ajv": "^8.6.2",

@@ -34,8 +39,3 @@ "cosmiconfig": "^7.0.0",

},
"repository": {
"type": "git",
"url": "https://github.com/percy/cli",
"directory": "packages/config"
},
"gitHead": "364d1df717fb19a26ccb024458df6e78a9c11f99"
"gitHead": "6219287e18a0cacb609d0c2696a5785abc9009b9"
}
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