[Pkg-javascript-commits] [node-syntax-error] 09/47: upgrade tests, esprima-six

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:29:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-syntax-error.

commit 26ef1fb50e1418b47f151e00cc3afe2b2935d74b
Author: James Halliday <mail at substack.net>
Date:   Fri Jan 31 22:03:22 2014 -0800

    upgrade tests, esprima-six
---
 index.js      |  2 +-
 package.json  | 73 ++++++++++++++++++++++++++++-------------------------------
 test/check.js |  2 +-
 3 files changed, 37 insertions(+), 40 deletions(-)

diff --git a/index.js b/index.js
index 7e01c59..e0ccab8 100644
--- a/index.js
+++ b/index.js
@@ -1,4 +1,4 @@
-var esprima = require('esprima');
+var esprima = require('esprima-six');
 
 module.exports = function (src, file) {
     if (typeof src !== 'string') src = String(src);
diff --git a/package.json b/package.json
index b965476..d614b3a 100644
--- a/package.json
+++ b/package.json
@@ -1,40 +1,37 @@
 {
-    "name" : "syntax-error",
-    "version" : "0.0.1",
-    "description" : "detect and report syntax errors in source code strings",
-    "main" : "index.js",
-    "bin" : {},
-    "directories" : {
-        "example" : "example",
-        "test" : "test"
-    },
-    "dependencies" : {
-        "esprima" : "~0.9.9"
-    },
-    "devDependencies" : {
-        "tap" : "~0.3.0"
-    },
-    "scripts" : {
-        "test" : "tap test/*.js"
-    },
-    "repository" : {
-        "type" : "git",
-        "url" : "git://github.com/substack/node-syntax-error.git"
-    },
-    "homepage" : "https://github.com/substack/node-syntax-error",
-    "keywords" : [
-        "syntax",
-        "error",
-        "esprima",
-        "stack",
-        "line",
-        "column"
-    ],
-    "author" : {
-        "name" : "James Halliday",
-        "email" : "mail at substack.net",
-        "url" : "http://substack.net"
-    },
-    "license" : "MIT",
-    "engine" : { "node" : ">=0.6" }
+  "name": "syntax-error",
+  "version": "0.0.1",
+  "description": "detect and report syntax errors in source code strings",
+  "main": "index.js",
+  "dependencies": {
+    "esprima-six": "0.0.3"
+  },
+  "devDependencies": {
+    "tape": "~2.4.1"
+  },
+  "scripts": {
+    "test": "tape test/*.js"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git://github.com/substack/node-syntax-error.git"
+  },
+  "homepage": "https://github.com/substack/node-syntax-error",
+  "keywords": [
+    "syntax",
+    "error",
+    "esprima",
+    "stack",
+    "line",
+    "column"
+  ],
+  "author": {
+    "name": "James Halliday",
+    "email": "mail at substack.net",
+    "url": "http://substack.net"
+  },
+  "license": "MIT",
+  "engine": {
+    "node": ">=0.6"
+  }
 }
diff --git a/test/check.js b/test/check.js
index f28e51e..d84f459 100644
--- a/test/check.js
+++ b/test/check.js
@@ -1,4 +1,4 @@
-var test = require('tap').test;
+var test = require('tape');
 
 var fs = require('fs');
 var check = require('../');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-syntax-error.git



More information about the Pkg-javascript-commits mailing list