[Pkg-javascript-commits] [node-is-windows] 01/04: New upstream version 1.0.1

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Jan 5 18:50:48 UTC 2018


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

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

commit 552e99efaa86d822bfc3b3f7e70560cf020ce631
Author: Pirate Praveen <praveen at debian.org>
Date:   Sat Jan 6 00:02:33 2018 +0530

    New upstream version 1.0.1
---
 .editorconfig               | 13 ++----------
 .eslintrc => .eslintrc.json |  7 ++-----
 .gitignore                  | 31 +++++++++++++++++++++--------
 .travis.yml                 | 18 +++++++++--------
 LICENSE                     |  2 +-
 README.md                   | 48 ++++++++++++++++++++++++++-------------------
 index.js                    | 10 ++++++----
 package.json                | 16 +++++++++++----
 8 files changed, 84 insertions(+), 61 deletions(-)

diff --git a/.editorconfig b/.editorconfig
index 991900b..818e072 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,4 +1,3 @@
-# http://editorconfig.org
 root = true
 
 [*]
@@ -9,14 +8,6 @@ indent_size = 2
 trim_trailing_whitespace = true
 insert_final_newline = true
 
-[*.md]
+[{**/{actual,fixtures,expected,templates}/**,*.md}]
 trim_trailing_whitespace = false
-insert_final_newline = false
-
-[test/**]
-trim_trailing_whitespace = false
-insert_final_newline = false
-
-[templates/**]
-trim_trailing_whitespace = false
-insert_final_newline = false
+insert_final_newline = false
\ No newline at end of file
diff --git a/.eslintrc b/.eslintrc.json
similarity index 95%
rename from .eslintrc
rename to .eslintrc.json
index 7b5d047..948dbdb 100644
--- a/.eslintrc
+++ b/.eslintrc.json
@@ -34,6 +34,7 @@
     "handle-callback-err": [2, "^(err|error)$" ],
     "indent": [2, 2, { "SwitchCase": 1 }],
     "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
+    "keyword-spacing": [2, { "before": true, "after": true }],
     "new-cap": [2, { "newIsCap": true, "capIsNew": false }],
     "new-parens": 2,
     "no-array-constructor": 2,
@@ -49,7 +50,6 @@
     "no-dupe-keys": 2,
     "no-duplicate-case": 2,
     "no-empty-character-class": 2,
-    "no-empty-label": 2,
     "no-eval": 2,
     "no-ex-assign": 2,
     "no-extend-native": 2,
@@ -71,7 +71,7 @@
     "no-multi-spaces": 2,
     "no-multi-str": 2,
     "no-multiple-empty-lines": [2, { "max": 1 }],
-    "no-native-reassign": 2,
+    "no-native-reassign": 0,
     "no-negated-in-lhs": 2,
     "no-new": 2,
     "no-new-func": 2,
@@ -108,13 +108,10 @@
     "radix": 2,
     "semi": [2, "always"],
     "semi-spacing": [2, { "before": false, "after": true }],
-    "space-after-keywords": [2, "always"],
     "space-before-blocks": [2, "always"],
     "space-before-function-paren": [2, "never"],
-    "space-before-keywords": [2, "always"],
     "space-in-parens": [2, "never"],
     "space-infix-ops": 2,
-    "space-return-throw-case": 2,
     "space-unary-ops": [2, { "words": true, "nonwords": false }],
     "spaced-comment": [0, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }],
     "use-isnan": 2,
diff --git a/.gitignore b/.gitignore
index 80a228c..473e254 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,15 +1,30 @@
+# always ignore files
 *.DS_Store
 *.sublime-*
-_gh_pages
-bower_components
+
+# test related, or directories generated by tests
+test/actual
+actual
+coverage
+.nyc*
+
+# npm
 node_modules
 npm-debug.log
-actual
-test/actual
+
+# yarn
+yarn.lock
+yarn-error.log
+
+# misc
+_gh_pages
+_draft
+_drafts
+bower_components
+vendor
 temp
 tmp
 TODO.md
-vendor
-.idea
-benchmark
-coverage
+
+examples/*/dist
+examples/*/site
diff --git a/.travis.yml b/.travis.yml
index 6caa76a..58dcd48 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,11 +1,13 @@
 sudo: false
+os:
+  - linux
+  - osx
 language: node_js
 node_js:
-  - "stable"
-  - "4"
-  - "0.12"
-  - "0.10"
-matrix:
-  fast_finish: true
-  allow_failures:
-    - node_js: "0.10"
+  - node
+  - '7'
+  - '6'
+  - '5'
+  - '4'
+  - '0.12'
+  - '0.10'
diff --git a/LICENSE b/LICENSE
index 65f90ac..83b56e7 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2015, Jon Schlinkert.
+Copyright (c) 2015-2017, Jon Schlinkert
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index cb8b5ed..3a73186 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,13 @@
-# is-windows [![NPM version](https://img.shields.io/npm/v/is-windows.svg?style=flat)](https://www.npmjs.com/package/is-windows) [![NPM downloads](https://img.shields.io/npm/dm/is-windows.svg?style=flat)](https://npmjs.org/package/is-windows) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-windows.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-windows)
+# is-windows [![NPM version](https://img.shields.io/npm/v/is-windows.svg?style=flat)](https://www.npmjs.com/package/is-windows) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-windows.svg?style=flat)](https://npmjs.org/package/is-windows)  [![NPM total downloads](https://img.shields.io/npm/dt/is-windows.svg?style=flat)](https://npmjs.org/package/is-windows) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-windows.svg?style=flat&label=Travis)](https://travi [...]
 
-Returns true if the platform is windwows.
+> Returns true if the platform is windows.
 
 ## Install
 
 Install with [npm](https://www.npmjs.com/):
 
 ```sh
-$ npm install is-windows --save
+$ npm install --save is-windows
 ```
 
 ## Heads up!
@@ -23,9 +23,9 @@ isWindows();
 //=> returns true if the platform is windows
 ```
 
-## Related projects
+## About
 
-You might also be interested in these projects:
+### Related projects
 
 * [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute "Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.")
 * [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet")
@@ -33,40 +33,48 @@ You might also be interested in these projects:
 * [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.")
 * [window-size](https://www.npmjs.com/package/window-size): Reliable way to to get the height and width of the terminal/console in a node.js… [more](https://github.com/jonschlinkert/window-size) | [homepage](https://github.com/jonschlinkert/window-size "Reliable way to to get the height and width of the terminal/console in a node.js environment.")
 
-## Contributing
+### Contributing
 
-This document was generated by [verb](https://github.com/verbose/verb), please don't edit directly. Any changes to the readme must be made in [.verb.md](.verb.md). See [Building Docs](#building-docs).
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
 
-Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-windows/issues/new).
+### Contributors
 
-## Building docs
+| **Commits** | **Contributor** | 
+| --- | --- |
+| 11 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 1 | [SimenB](https://github.com/SimenB) |
+| 1 | [gucong3000](https://github.com/gucong3000) |
 
-Generate readme and API documentation with [verb](https://github.com/verbose/verb):
+### Building docs
+
+_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
+
+To generate the readme, run the following command:
 
 ```sh
-$ npm install -g verb verb-readme-generator && verb
+$ npm install -g verbose/verb#dev verb-generate-readme && verb
 ```
 
-## Running tests
+### Running tests
 
-Install dev dependencies:
+Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
 
 ```sh
-$ npm install -d && npm test
+$ npm install && npm test
 ```
 
-## Author
+### Author
 
 **Jon Schlinkert**
 
 * [github/jonschlinkert](https://github.com/jonschlinkert)
-* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
 
-## License
+### License
 
-Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
-Released under the [MIT license](https://github.com/jonschlinkert/is-windows/blob/master/LICENSE).
+Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT License](LICENSE).
 
 ***
 
-_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on June 05, 2016._
\ No newline at end of file
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on April 28, 2017._
\ No newline at end of file
diff --git a/index.js b/index.js
index e0480ed..60d7977 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
-/*! is-windows v0.2.0 | MIT LICENSE (c) 2015 | https://github.com/jonschlinkert/is-windows */
-(function (root, factory) {
+/*! is-windows v1.0.0 | MIT LICENSE (c) 2015-2016 | https://github.com/jonschlinkert/is-windows */
+(function(root, factory) {
   if (typeof define === 'function' && define.amd) {
     // AMD
     define(factory);
@@ -10,13 +10,15 @@
     // Browser
     root.isWindows = factory;
   }
-}(this, function () {
+}(this, function() {
   'use strict';
 
   return (function isWindows() {
     if (typeof process === 'undefined' || !process) {
       return false;
     }
-    return process.platform === 'win32';
+    return process.platform === 'win32' ||
+    process.env.OSTYPE === 'cygwin' ||
+    process.env.OSTYPE === 'msys';
   }());
 }));
diff --git a/package.json b/package.json
index 112b138..4764cbd 100644
--- a/package.json
+++ b/package.json
@@ -1,9 +1,14 @@
 {
   "name": "is-windows",
-  "description": "Returns true if the platform is windwows.",
-  "version": "0.2.0",
+  "description": "Returns true if the platform is windows.",
+  "version": "1.0.1",
   "homepage": "https://github.com/jonschlinkert/is-windows",
   "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
+  "contributors": [
+    "Jon Schlinkert <jon.schlinkert at sellside.com> (http://twitter.com/jonschlinkert)",
+    "Simen Bekkhus <sbekkhus91 at gmail.com> (https://github.com/SimenB)",
+    "刘祺 <gucong at gmail.com> (gucong.co.cc)"
+  ],
   "repository": "jonschlinkert/is-windows",
   "bugs": {
     "url": "https://github.com/jonschlinkert/is-windows/issues"
@@ -20,14 +25,17 @@
     "test": "mocha"
   },
   "devDependencies": {
-    "gulp-format-md": "^0.1.9",
-    "mocha": "*"
+    "gulp-format-md": "^0.1.11",
+    "mocha": "^3.2.0"
   },
   "keywords": [
     "check",
+    "cywin",
     "is",
     "is-windows",
     "nix",
+    "operating system",
+    "os",
     "platform",
     "process",
     "unix",

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



More information about the Pkg-javascript-commits mailing list