New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

t-configurator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

t-configurator - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

6

Configurator.js

@@ -20,2 +20,8 @@ var ConfiguratorUtils_1 = require("./ConfiguratorUtils");

};
/**
* Returns a copy of the configuration.
*/
Configurator.prototype.getAll = function () {
return ConfiguratorUtils_1.ConfiguratorUtils.deepClone(this.configuration);
};
Configurator.prototype.replaceWithParameters = function (parameters) {

@@ -22,0 +28,0 @@ var _this = this;

@@ -43,4 +43,16 @@ var ConfiguratorUtils = (function () {

};
ConfiguratorUtils.deepClone = function (obj) {
var newObj = (obj instanceof Array) ? [] : {};
for (var i in obj) {
if (obj[i] && typeof obj[i] == "object") {
newObj[i] = this.deepClone(obj[i]);
}
else {
newObj[i] = obj[i];
}
}
return newObj;
};
return ConfiguratorUtils;
})();
exports.ConfiguratorUtils = ConfiguratorUtils;

2

package.json
{
"name": "t-configurator",
"version": "0.0.1",
"version": "0.0.2",
"description": "Allows to manage configuration files in your project",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -5,2 +5,3 @@ declare module 't-configurator/ConfiguratorUtils' {

static flatten(data: any): any;
static deepClone(obj: any): any;
}

@@ -14,2 +15,6 @@

get(key: string, searchFlattened?: boolean): any;
/**
* Returns a copy of the configuration.
*/
getAll(): any;
replaceWithParameters(parameters: any): any;

@@ -16,0 +21,0 @@ private normalizeType(value, originalValue);

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