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

configer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configer - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

test/ini/test_string_value.ini

13

lib/clean.js

@@ -10,5 +10,14 @@ /* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */

for (var i = 0; i < s.length; i++) {
var t = s.substr(i, 1);
if ((t !== "'" && t !== '"') || t !== s.substr(i - i, 1)) {
break;
}
}
if (i > 0) {
s = s.substr(i, s.length - i - i);
}
var _me = [];
s = s.replace(/^("|')+/, '').replace(/("|')+$/, '');
for (var i = 0; i < s.length; i++) {

@@ -15,0 +24,0 @@ var the = s.slice(i, i + 1);

28

package.json
{
"name": "configer",
"version": "0.1.0",
"version": "0.1.1",
"author": "Aleafs Zhang (zhangxc83@gmail.com)",
"contributors": [],
"homepage": "git@github.com:aleafs/configer.git",
"homepage": "https://github.com/aleafs/configer",
"repository": {
"type": "git",
"url": "git@github.com:aleafs/configer.git"
},
"description": "Configer is a reader for local file configuration.",
"keywords": [ "config", "reader" ],
"dependencies": {
"clone" : "=0.1.9",
"clone" : "=0.1.18",
"fasttrim" : "=0.1.0"

@@ -18,8 +22,20 @@ },

"mocha" : ">=0.9.0",
"should" : ">=0.4.2"
"should" : ">=4.0.0",
"blanket": "*",
"coveralls" : "*",
"travis-cov": "*",
"mocha-lcov-reporter": "*"
},
"main": "./index.js",
"scripts": {
"test": "make test"
"main" : "index.js",
"test" : "make test"
},
"config" : {
"blanket": {
"pattern": "//^((?!(node_modules|test)).)*$/"
},
"travis-cov": {
"threshold": 90
}
}
}
[![Build Status](https://secure.travis-ci.org/aleafs/configer.png?branch=master)](http://travis-ci.org/aleafs/configer)
[![Dependency Status](https://gemnasium.com/aleafs/configer.png)](https://gemnasium.com/aleafs/configer)
[![Coverage Status](https://coveralls.io/repos/aleafs/configer/badge.png)](https://coveralls.io/r/aleafs/configer)

@@ -4,0 +5,0 @@ ## About

@@ -15,3 +15,3 @@ /* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */

} catch (e) {
e.toString().should.include('UndefinedConfigParser');
e.toString().should.containEql('UndefinedConfigParser');
}

@@ -23,3 +23,3 @@

} catch (e) {
e.toString().should.include('no such file or directory \'./i_am_not_found.ini\'');
e.toString().should.containEql('no such file or directory \'./i_am_not_found.ini\'');
}

@@ -92,2 +92,9 @@ });

/**
* XXX: this is a bug case
*/
it('should_parse_ini_string_value_works_fine', function () {
config.create(__dirname + '/ini/test_string_value.ini').get('key1').should.eql('abcd=\'aaa\'');
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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