Hello community,
here is the log from the commit of package nodejs-read-package-json for
openSUSE:Factory checked in at 2015-07-19 11:45:35
Comparing /work/SRC/openSUSE:Factory/nodejs-read-package-json (Old)
and /work/SRC/openSUSE:Factory/.nodejs-read-package-json.new (New)
Package is "nodejs-read-package-json"
Changes:
---
/work/SRC/openSUSE:Factory/nodejs-read-package-json/nodejs-read-package-json.changes
2015-04-27 13:02:31.0 +0200
+++
/work/SRC/openSUSE:Factory/.nodejs-read-package-json.new/nodejs-read-package-json.changes
2015-07-19 11:45:37.0 +0200
@@ -1,0 +2,5 @@
+Fri Apr 24 12:42:23 UTC 2015 - hvo...@suse.com
+
+- Update to version 2.0.0
+
+---
Old:
read-package-json-1.2.7.tgz
New:
read-package-json-2.0.0.tgz
Other differences:
--
++ nodejs-read-package-json.spec ++
--- /var/tmp/diff_new_pack.eFSWQO/_old 2015-07-19 11:45:38.0 +0200
+++ /var/tmp/diff_new_pack.eFSWQO/_new 2015-07-19 11:45:38.0 +0200
@@ -19,7 +19,7 @@
%define base_name read-package-json
Name: nodejs-read-package-json
-Version:1.2.7
+Version:2.0.0
Release:0
Summary:Read package.json files
License:ISC
++ read-package-json-1.2.7.tgz -> read-package-json-2.0.0.tgz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/package.json new/package/package.json
--- old/package/package.json2014-08-29 02:29:03.0 +0200
+++ new/package/package.json2015-04-07 06:21:12.0 +0200
@@ -1,6 +1,6 @@
{
"name": "read-package-json",
- "version": "1.2.7",
+ "version": "2.0.0",
"author": "Isaac Z. Schlueter (http://blog.izs.me/)",
"description": "The thing npm uses to read package.json files with semantics
and defaults and validation",
"repository": {
@@ -9,17 +9,16 @@
},
"main": "read-json.js",
"scripts": {
-"test": "tap test/*.js"
+"test": "standard && tap test/*.js"
},
"dependencies": {
-"github-url-from-git": "^1.3.0",
-"github-url-from-username-repo": "~1.0.0",
-"glob": "^4.0.2",
-"lru-cache": "2",
-"normalize-package-data": "^1.0.0"
+"glob": "^5.0.3",
+"json-parse-helpfulerror": "^1.0.2",
+"normalize-package-data": "^2.0.0"
},
"devDependencies": {
-"tap": "~0.2.5"
+"standard": "^3.3.1",
+"tap": "^0.7.1"
},
"optionalDependencies": {
"graceful-fs": "2 || 3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/read-json.js new/package/read-json.js
--- old/package/read-json.js2014-06-10 07:39:53.0 +0200
+++ new/package/read-json.js2015-04-07 06:18:57.0 +0200
@@ -1,382 +1,383 @@
-// vim: set softtabstop=16 shiftwidth=16:
-
+var fs
try {
-var fs = require("graceful-fs")
+ fs = require('graceful-fs')
} catch (er) {
-var fs = require("fs")
+ fs = require('fs')
}
+var path = require('path')
-module.exports = readJson
+var glob = require('glob')
+var normalizeData = require('normalize-package-data')
+var safeJSON = require('json-parse-helpfulerror')
-var LRU = require("lru-cache")
-readJson.cache = new LRU({max: 1000})
-var path = require("path")
-var glob = require("glob")
-var normalizeData = require("normalize-package-data")
+module.exports = readJson
// put more stuff on here to customize.
readJson.extraSet = [
-gypfile,
-serverjs,
-scriptpath,
-authors,
-readme,
-mans,
-bins,
-githead
+ gypfile,
+ serverjs,
+ scriptpath,
+ authors,
+ readme,
+ mans,
+ bins,
+ githead
]
var typoWarned = {}
-
function readJson (file, log_, strict_, cb_) {
-var log, strict, cb
-for (var i = 1; i < arguments.length - 1; i++) {
-if (typeof arguments[i] === 'boolean')
-strict = arguments[i]
-else if (typeof arguments[i] === 'function')
-log = arguments[i]
-}
-if (!log) log = function () {};
-cb = arguments[ arguments.length - 1 ]
-
-var c = readJson.cache.get(file)
-if (c) {
-cb = cb.bind(null, null, c)
-return process.nextTick(cb);
-}
-cb = (function (orig) { return function (er, data) {
-if (data) readJson.cache