[Pkg-javascript-commits] [node-osenv] 01/09: New upstream version 0.1.4

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Nov 10 07:18:20 UTC 2017


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

praveen pushed a commit to branch master
in repository node-osenv.

commit c9193f539b138c1bbe4d1a80b15cdb4106f09f4b
Author: Pirate Praveen <praveen at debian.org>
Date:   Fri Nov 10 12:18:50 2017 +0530

    New upstream version 0.1.4
---
 .travis.yml     |  9 +++++++++
 LICENSE         | 36 ++++++++++++------------------------
 osenv.js        |  9 ++++-----
 package.json    | 16 ++++++++--------
 test/unix.js    | 10 +++++-----
 test/windows.js |  5 ++---
 6 files changed, 40 insertions(+), 45 deletions(-)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..99f2bbf
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,9 @@
+language: node_js
+language: node_js
+node_js:
+  - '0.8'
+  - '0.10'
+  - '0.12'
+  - 'iojs'
+before_install:
+  - npm install -g npm at latest
diff --git a/LICENSE b/LICENSE
index 0c44ae7..19129e3 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,27 +1,15 @@
-Copyright (c) Isaac Z. Schlueter ("Author")
-All rights reserved.
+The ISC License
 
-The BSD License
+Copyright (c) Isaac Z. Schlueter and Contributors
 
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
 
-1. Redistributions of source code must retain the above copyright
-   notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
-   notice, this list of conditions and the following disclaimer in the
-   documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/osenv.js b/osenv.js
index 7836faf..702a95b 100644
--- a/osenv.js
+++ b/osenv.js
@@ -1,7 +1,8 @@
 var isWindows = process.platform === 'win32'
 var path = require('path')
 var exec = require('child_process').exec
-var os = require('os')
+var osTmpdir = require('os-tmpdir')
+var osHomedir = require('os-homedir')
 
 // looking up envs is a bit costly.
 // Also, sometimes we want to have a fallback
@@ -46,13 +47,11 @@ memo('hostname', function () {
 }, 'hostname')
 
 memo('tmpdir', function () {
-  return os.tmpDir()
+  return osTmpdir()
 })
 
 memo('home', function () {
-  return ( isWindows ? process.env.USERPROFILE
-         : process.env.HOME
-         )
+  return osHomedir()
 })
 
 memo('path', function () {
diff --git a/package.json b/package.json
index 4917e28..7f28053 100644
--- a/package.json
+++ b/package.json
@@ -1,21 +1,21 @@
 {
   "name": "osenv",
-  "version": "0.1.0",
+  "version": "0.1.4",
   "main": "osenv.js",
   "directories": {
     "test": "test"
   },
-  "dependencies": {},
+  "dependencies": {
+    "os-homedir": "^1.0.0",
+    "os-tmpdir": "^1.0.0"
+  },
   "devDependencies": {
-    "tap": "~0.4.9"
+    "tap": "^8.0.1"
   },
   "scripts": {
     "test": "tap test/*.js"
   },
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/isaacs/osenv"
-  },
+  "repository": "https://github.com/npm/osenv",
   "keywords": [
     "environment",
     "variable",
@@ -26,6 +26,6 @@
     "ps1"
   ],
   "author": "Isaac Z. Schlueter <i at izs.me> (http://blog.izs.me/)",
-  "license": "BSD",
+  "license": "ISC",
   "description": "Look up environment settings specific to different operating systems"
 }
diff --git a/test/unix.js b/test/unix.js
index f87cbfb..94d4aaa 100644
--- a/test/unix.js
+++ b/test/unix.js
@@ -2,13 +2,13 @@
 // pretending to be another platform is too hacky, since it breaks
 // how the underlying system looks up module paths and runs
 // child processes, and all that stuff is cached.
+var tap = require('tap')
+
+
 if (process.platform === 'win32') {
-  console.log('TAP Version 13\n' +
-              '1..0\n' +
-              '# Skip unix tests, this is not unix\n')
-  return
+  tap.plan(0, 'Skip unix tests, this is not unix')
+  process.exit(0)
 }
-var tap = require('tap')
 
 // like unix, but funny
 process.env.USER = 'sirUser'
diff --git a/test/windows.js b/test/windows.js
index 63ca453..c9d837a 100644
--- a/test/windows.js
+++ b/test/windows.js
@@ -3,9 +3,8 @@
 // how the underlying system looks up module paths and runs
 // child processes, and all that stuff is cached.
 if (process.platform !== 'win32') {
-  console.log('TAP Version 13\n' +
-              '1..0\n' +
-              '# Skip windows tests, this is not windows\n')
+  console.log('TAP version 13\n' +
+              '1..0 # Skip windows tests, this is not windows\n')
   return
 }
 

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



More information about the Pkg-javascript-commits mailing list