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

appcd-config

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appcd-config - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# v3.0.1 (Dec 1, 2020)
* refactor: Cleaned up AppcdConfig constructor.
* chore: Updated dependencies.
# v3.0.0 (Jun 12, 2020)

@@ -2,0 +7,0 @@

41

dist/config.js

@@ -41,22 +41,23 @@ "use strict";

constructor(opts = {}) {
const {
file
} = opts;
delete opts.file;
opts.allowNulls = opts.allowNulls !== false;
super(opts);
this.layers.add({
file,
id: AppcdConfig.User,
order: 1e9,
static: true
if (!opts || typeof opts !== 'object') {
throw new TypeError('Expected options to be an object');
}
super({ ...opts,
allowNulls: opts.allowNulls !== false,
file: undefined,
layers: [{
file: opts.file,
id: AppcdConfig.User,
order: 1e9,
static: true
}, {
id: AppcdConfig.Runtime,
order: Infinity,
static: true,
store: new _configKit.JSONStore({
data: opts.data
})
}]
});
this.layers.add({
id: AppcdConfig.Runtime,
order: Infinity,
static: true,
store: new _configKit.JSONStore({
data: opts.data
})
});
}

@@ -86,2 +87,2 @@ /**

_defineProperty(AppcdConfig, "User", Symbol('user'));
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbmZpZy5qcyJdLCJuYW1lcyI6WyJFcnJvciIsInByZXBhcmVTdGFja1RyYWNlIiwicmVxdWlyZSIsIkFwcGNkQ29uZmlnIiwiQ29uZmlnIiwiY29uc3RydWN0b3IiLCJvcHRzIiwiZmlsZSIsImFsbG93TnVsbHMiLCJsYXllcnMiLCJhZGQiLCJpZCIsIlVzZXIiLCJvcmRlciIsInN0YXRpYyIsIlJ1bnRpbWUiLCJJbmZpbml0eSIsInN0b3JlIiwiSlNPTlN0b3Jl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cdFx0XHR9XG5cdFx0XHRdXG5cdFx0fSk7XG5cdH1cblxuXHQvKipcblx0ICogUmVzb2x2ZXMgdGhlIGRlZmF1bHQgY29uZmlnIGxheWVyLlxuXHQgKlxuXHQgKiBAcGFyYW0ge09iamVjdH0gW29wdHNdIC0gVmFyaW91cyBvcHRpb25zLlxuXHQgKiBAcGFyYW0ge1N0cmluZ30gW29wdHMuYWN0aW9uXSAtIFRoZSBhY3Rpb24gYmVpbmcgcGVyZm9ybWVkLlxuXHQgKiBAcmV0dXJucyB7U3ltYm9sfEFycmF5LjxTeW1ib2w+fVxuXHQgKiBAYWNjZXNzIHB1YmxpY1xuXHQgKi9cblx0cmVzb2x2ZSh7IGFjdGlvbiB9ID0ge30pIHtcblx0XHRyZXR1cm4gYWN0aW9uID09PSAnbG9hZCcgfHwgYWN0aW9uID09PSAnc2F2ZScgPyBBcHBjZENvbmZpZy5Vc2VyIDogWyBBcHBjZENvbmZpZy5SdW50aW1lLCBBcHBjZENvbmZpZy5Vc2VyIF07XG5cdH1cbn1cbiJdLCJmaWxlIjoiY29uZmlnLmpzIn0=
{
"name": "appcd-config",
"version": "3.0.0",
"version": "3.0.1",
"description": "Library for config files with metadata.",

@@ -19,7 +19,7 @@ "main": "./dist/config",

"dependencies": {
"config-kit": "^1.0.1",
"config-kit": "^1.4.2",
"source-map-support": "^0.5.19"
},
"devDependencies": {
"appcd-gulp": "^3.0.1"
"appcd-gulp": "^3.1.0"
},

@@ -26,0 +26,0 @@ "homepage": "https://github.com/appcelerator/appc-daemon",

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