[Pkg-javascript-commits] [node-coveralls] 48/332: use a native js yaml parser instead of a C library
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Nov 9 13:53:39 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-coveralls.
commit a1f1feb05c0010216c8bdd7a8d9040ef56eff7fa
Author: Arpad Borsos <arpad.borsos at googlemail.com>
Date: Fri Jun 7 17:32:39 2013 +0200
use a native js yaml parser instead of a C library
---
lib/getOptions.js | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/getOptions.js b/lib/getOptions.js
index f314b00..735ac9d 100644
--- a/lib/getOptions.js
+++ b/lib/getOptions.js
@@ -1,6 +1,6 @@
var fs = require('fs');
var path = require('path');
-var YAML = require('libyaml');
+var yaml = require('yaml');
var logger = require('./logger');
var getOptions = function(){
@@ -25,7 +25,7 @@ var getOptions = function(){
var yml = path.join(process.cwd(), '.coveralls.yml');
try {
if (fs.statSync(yml).isFile()) {
- options.repo_token = YAML.readFileSync(yml)[0].repo_token;
+ options.repo_token = yaml.eval(fs.readFileSync(yml, 'utf8')).repo_token;
}
} catch(ex){
logger.warn("Repo token could not be determined. Continuing without it.");
diff --git a/package.json b/package.json
index 13c820c..f17edbb 100644
--- a/package.json
+++ b/package.json
@@ -25,7 +25,7 @@
"Arpad Borsos <arpad.borsos at googlemail.com> (http://swatinem.de/)"
],
"dependencies": {
- "libyaml": "0.2.2",
+ "yaml": "0.2.3",
"request": "2.16.2",
"lcov-parse": "0.0.4",
"log-driver": "1.2.1"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git
More information about the Pkg-javascript-commits
mailing list