commit nodejs-npm-package-arg for openSUSE:Factory
Hello community, here is the log from the commit of package nodejs-npm-package-arg for openSUSE:Factory checked in at 2015-07-02 22:39:27 Comparing /work/SRC/openSUSE:Factory/nodejs-npm-package-arg (Old) and /work/SRC/openSUSE:Factory/.nodejs-npm-package-arg.new (New) Package is nodejs-npm-package-arg Changes: --- /work/SRC/openSUSE:Factory/nodejs-npm-package-arg/nodejs-npm-package-arg.changes 2015-04-27 13:03:05.0 +0200 +++ /work/SRC/openSUSE:Factory/.nodejs-npm-package-arg.new/nodejs-npm-package-arg.changes 2015-07-02 22:39:28.0 +0200 @@ -1,0 +2,10 @@ +Sat Jun 6 11:31:47 UTC 2015 - i...@marguerite.su + +- update version 4.0.1 + +--- +Fri Apr 24 12:28:49 UTC 2015 - hvo...@suse.com + +- Update to version 4.0.0 + +--- Old: npm-package-arg-2.1.3.tgz New: npm-package-arg-4.0.1.tgz Other differences: -- ++ nodejs-npm-package-arg.spec ++ --- /var/tmp/diff_new_pack.WkaIlb/_old 2015-07-02 22:39:28.0 +0200 +++ /var/tmp/diff_new_pack.WkaIlb/_new 2015-07-02 22:39:28.0 +0200 @@ -19,7 +19,7 @@ %define base_name npm-package-arg Name: nodejs-npm-package-arg -Version:2.1.3 +Version:4.0.1 Release:0 Summary:Parse things that can be arguments to `npm install` License:ISC ++ npm-package-arg-2.1.3.tgz - npm-package-arg-4.0.1.tgz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/README.md new/package/README.md --- old/package/README.md 2014-09-27 07:35:23.0 +0200 +++ new/package/README.md 2015-05-21 22:46:39.0 +0200 @@ -1,26 +1,54 @@ # npm-package-arg -Parse the things that can be arguments to `npm install` +Parse package name and specifier passed to commands like `npm install` or +`npm cache add`. This just parses the text given-- it's worth noting that +`npm` has further logic it applies by looking at your disk to figure out +what ambiguous specifiers are. If you want that logic, please see +[realize-package-specifier]. -Takes an argument like `foo@1.2`, or `foo@user/foo`, or -`http://x.com/foo.tgz`, or `git+https://github.com/user/foo`, and -figures out what type of thing it is. +[realize-package-specifier]: https://www.npmjs.org/package/realize-package-specifier -## USAGE +Arguments look like: `foo@1.2`, `@bar/foo@1.2`, `foo@user/foo`, `http://x.com/foo.tgz`, +`git+https://github.com/user/foo`, `bitbucket:user/foo`, `foo.tar.gz` or `bar` + +## EXAMPLES ```javascript var assert = require(assert) var npa = require(npm-package-arg) // Pass in the descriptor, and it'll return an object -var parsed = npa(foo@1.2) +var parsed = npa(@bar/foo@1.2) + +// Returns an object like: +{ + raw: '@bar/foo@1.2', // what was passed in + name: @bar/foo, // the name of the package + scope: @bar, // the private scope of the package, or null + type: range, // the type of specifier this is + spec: =1.2.0 1.3.0 // the expanded specifier + rawSpec: 1.2 // the specifier as passed in + } + +// Parsing urls pointing at hosted git services produces a variation: +var parsed = npa(git+https://github.com/user/foo;) // Returns an object like: -// { -// name: foo, // The bit in front of the @ -// type: range, // the type of descriptor this is -// spec: 1.2 // the specifier for this descriptor -// } +{ + raw: 'git+https://github.com/user/foo', + scope: null, + name: null, + rawSpec: 'git+https://github.com/user/foo', + spec: 'user/foo', + type: 'hosted', + hosted: { +type: 'github', +ssh: 'g...@github.com:user/foo.git', +sshurl: 'git+ssh://g...@github.com/user/foo.git', +https: 'https://github.com/user/foo.git', +directUrl: 'https://raw.githubusercontent.com/user/foo/master/package.json' + } +} // Completely unreasonable invalid garbage throws an error // Make sure you wrap this in a try/catch if you have not @@ -30,23 +58,41 @@ }) ``` -For more examples, see the test file. +## USING + +`var npa = require('npm-package-arg')` + +* var result = npa(*arg*) + +Parses *arg* and returns a result object detailing what *arg* is. + +*arg* -- a package descriptor, like: `foo@1.2`, or `foo@user/foo`, or +`http://x.com/foo.tgz`, or `git+https://github.com/user/foo` -## Result Objects +## RESULT OBJECT The objects that are returned by npm-package-arg contain the following -fields: +keys: * `name` - If known, the `name` field expected in the resulting pkg. * `type` - One of the following strings: * `git` - A git repo - * `github` - A github shorthand, like
commit nodejs-npm-package-arg for openSUSE:Factory
Hello community, here is the log from the commit of package nodejs-npm-package-arg for openSUSE:Factory checked in at 2015-04-27 13:03:04 Comparing /work/SRC/openSUSE:Factory/nodejs-npm-package-arg (Old) and /work/SRC/openSUSE:Factory/.nodejs-npm-package-arg.new (New) Package is nodejs-npm-package-arg Changes: --- /work/SRC/openSUSE:Factory/nodejs-npm-package-arg/nodejs-npm-package-arg.changes 2014-10-24 10:47:47.0 +0200 +++ /work/SRC/openSUSE:Factory/.nodejs-npm-package-arg.new/nodejs-npm-package-arg.changes 2015-04-27 13:03:05.0 +0200 @@ -1,0 +2,5 @@ +Sat Apr 4 06:43:53 UTC 2015 - dmuel...@suse.com + +- enable building for all arches + +--- Other differences: -- ++ nodejs-npm-package-arg.spec ++ --- /var/tmp/diff_new_pack.Lta8N2/_old 2015-04-27 13:03:05.0 +0200 +++ /var/tmp/diff_new_pack.Lta8N2/_new 2015-04-27 13:03:05.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package nodejs-npm-package-arg # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,7 +29,6 @@ BuildRequires: nodejs-packaging BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -ExclusiveArch: %{ix86} x86_64 %{arm} noarch %nodejs_find_provides_and_requires
commit nodejs-npm-package-arg for openSUSE:Factory
Hello community, here is the log from the commit of package nodejs-npm-package-arg for openSUSE:Factory checked in at 2014-10-24 10:47:44 Comparing /work/SRC/openSUSE:Factory/nodejs-npm-package-arg (Old) and /work/SRC/openSUSE:Factory/.nodejs-npm-package-arg.new (New) Package is nodejs-npm-package-arg Changes: --- /work/SRC/openSUSE:Factory/nodejs-npm-package-arg/nodejs-npm-package-arg.changes 2014-09-23 17:17:36.0 +0200 +++ /work/SRC/openSUSE:Factory/.nodejs-npm-package-arg.new/nodejs-npm-package-arg.changes 2014-10-24 10:47:47.0 +0200 @@ -1,0 +2,10 @@ +Fri Oct 10 15:30:34 UTC 2014 - jgleiss...@suse.com + +- update to version 2.1.3 + +--- +Thu Oct 9 15:08:25 UTC 2014 - jgleiss...@suse.com + +- use nodejs-packaging for building + +--- Old: npm-package-arg-2.1.2.tgz New: npm-package-arg-2.1.3.tgz Other differences: -- ++ nodejs-npm-package-arg.spec ++ --- /var/tmp/diff_new_pack.55cV8U/_old 2014-10-24 10:47:48.0 +0200 +++ /var/tmp/diff_new_pack.55cV8U/_new 2014-10-24 10:47:48.0 +0200 @@ -19,19 +19,19 @@ %define base_name npm-package-arg Name: nodejs-npm-package-arg -Version:2.1.2 +Version:2.1.3 Release:0 Summary:Parse things that can be arguments to `npm install` License:ISC Group: Development/Languages/Other Url:https://github.com/npm/npm-package-arg Source: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz -Requires: nodejs-semver -BuildRequires: nodejs +BuildRequires: nodejs-packaging BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%{?nodejs_requires} + +%nodejs_find_provides_and_requires %description Takes an argument like foo@1.2, or foo@user/foo, or http://x.com/foo.tgz, or git+https://github.com/user/foo, and figures out what type of thing it is. ++ npm-package-arg-2.1.2.tgz - npm-package-arg-2.1.3.tgz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/package.json new/package/package.json --- old/package/package.json2014-09-13 09:35:02.0 +0200 +++ new/package/package.json2014-09-29 18:40:39.0 +0200 @@ -1,13 +1,13 @@ { name: npm-package-arg, - version: 2.1.2, + version: 2.1.3, description: Parse the things that can be arguments to `npm install`, main: npa.js, directories: { test: test }, dependencies: { -semver: ^2.3.0 || 3.x || 4 +semver: 4 }, devDependencies: { tap: ^0.4.9 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/package.json~ new/package/package.json~ --- old/package/package.json~ 1970-01-01 01:00:00.0 +0100 +++ new/package/package.json~ 2014-09-29 17:42:29.0 +0200 @@ -0,0 +1,28 @@ +{ + name: npm-package-arg, + version: 2.1.2, + description: Parse the things that can be arguments to `npm install`, + main: npa.js, + directories: { +test: test + }, + dependencies: { +semver: ^2.3.0 || 3.x || 4 + }, + devDependencies: { +tap: ^0.4.9 + }, + scripts: { +test: tap test/*.js + }, + repository: { +type: git, +url: https://github.com/npm/npm-package-arg; + }, + author: Isaac Z. Schlueter i...@izs.me (http://blog.izs.me/), + license: ISC, + bugs: { +url: https://github.com/npm/npm-package-arg/issues; + }, + homepage: https://github.com/npm/npm-package-arg; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/test/basic.js new/package/test/basic.js --- old/package/test/basic.js 2014-09-13 09:28:13.0 +0200 +++ new/package/test/basic.js 2014-09-29 18:40:04.0 +0200 @@ -8,7 +8,7 @@ foo@1.2: { name: foo, type: range, - spec: =1.2.0-0 1.3.0-0, + spec: =1.2.0 1.3.0, raw: foo@1.2, rawSpec: 1.2 }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/package/test/basic.js~ new/package/test/basic.js~ --- old/package/test/basic.js~ 1970-01-01 01:00:00.0 +0100 +++ new/package/test/basic.js~ 2014-09-27 07:35:23.0 +0200 @@ -0,0 +1,203 @@ +var npa = require(../npa.js) +var path = require(path) + +require(tap).test(basic, function (t) { + t.setMaxListeners(999) + + var tests = { +foo@1.2: { + name: foo, + type: range, + spec: =1.2.0-0 1.3.0-0, + raw: foo@1.2, + rawSpec: 1.2 +}, + +@foo/bar: { + raw: @foo/bar,
commit nodejs-npm-package-arg for openSUSE:Factory
Hello community, here is the log from the commit of package nodejs-npm-package-arg for openSUSE:Factory checked in at 2014-09-23 17:17:35 Comparing /work/SRC/openSUSE:Factory/nodejs-npm-package-arg (Old) and /work/SRC/openSUSE:Factory/.nodejs-npm-package-arg.new (New) Package is nodejs-npm-package-arg Changes: New Changes file: --- /dev/null 2014-07-24 01:57:42.080040256 +0200 +++ /work/SRC/openSUSE:Factory/.nodejs-npm-package-arg.new/nodejs-npm-package-arg.changes 2014-09-23 17:17:36.0 +0200 @@ -0,0 +1,10 @@ +--- +Mon Sep 22 18:38:07 UTC 2014 - i...@marguerite.su + +- format specfile + +--- +Fri Sep 19 13:28:07 UTC 2014 - jgleiss...@suse.com + +- Initial build + New: nodejs-npm-package-arg.changes nodejs-npm-package-arg.spec npm-package-arg-2.1.2.tgz Other differences: -- ++ nodejs-npm-package-arg.spec ++ # # spec file for package nodejs-npm-package-arg # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An Open Source License is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define base_name npm-package-arg Name: nodejs-npm-package-arg Version:2.1.2 Release:0 Summary:Parse things that can be arguments to `npm install` License:ISC Group: Development/Languages/Other Url:https://github.com/npm/npm-package-arg Source: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz Requires: nodejs-semver BuildRequires: nodejs BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch ExclusiveArch: %{ix86} x86_64 %{arm} noarch %{?nodejs_requires} %description Takes an argument like foo@1.2, or foo@user/foo, or http://x.com/foo.tgz, or git+https://github.com/user/foo, and figures out what type of thing it is. %prep %setup -q -n package %build %install mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name} cp -pr package.json npa.js \ %{buildroot}%{nodejs_modulesdir}/%{base_name}/ %files %defattr(-,root,root,-) %doc README.md LICENSE %{nodejs_modulesdir}/%{base_name} %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org