diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/is-windows | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) | |
download | wallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz |
update packages
Diffstat (limited to 'node_modules/is-windows')
-rw-r--r-- | node_modules/is-windows/LICENSE | 2 | ||||
-rw-r--r-- | node_modules/is-windows/index.js | 43 | ||||
-rw-r--r-- | node_modules/is-windows/package.json | 16 |
3 files changed, 37 insertions, 24 deletions
diff --git a/node_modules/is-windows/LICENSE b/node_modules/is-windows/LICENSE index 65f90aca8..f8de06305 100644 --- a/node_modules/is-windows/LICENSE +++ b/node_modules/is-windows/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015, Jon Schlinkert. +Copyright (c) 2015-2018, 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/node_modules/is-windows/index.js b/node_modules/is-windows/index.js index e0480edcb..55d43e092 100644 --- a/node_modules/is-windows/index.js +++ b/node_modules/is-windows/index.js @@ -1,22 +1,27 @@ -/*! is-windows v0.2.0 | MIT LICENSE (c) 2015 | https://github.com/jonschlinkert/is-windows */ -(function (root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD - define(factory); - } else if (typeof exports === 'object') { - // Node.js - module.exports = factory; +/*! + * is-windows <https://github.com/jonschlinkert/is-windows> + * + * Copyright © 2015-2018, Jon Schlinkert. + * Released under the MIT License. + */ + +(function(factory) { + if (exports && typeof exports === 'object' && typeof module !== 'undefined') { + module.exports = factory(); + } else if (typeof define === 'function' && define.amd) { + define([], factory); + } else if (typeof window !== 'undefined') { + window.isWindows = factory(); + } else if (typeof global !== 'undefined') { + global.isWindows = factory(); + } else if (typeof self !== 'undefined') { + self.isWindows = factory(); } else { - // Browser - root.isWindows = factory; + this.isWindows = factory(); } -}(this, function () { +})(function() { 'use strict'; - - return (function isWindows() { - if (typeof process === 'undefined' || !process) { - return false; - } - return process.platform === 'win32'; - }()); -})); + return function isWindows() { + return process && (process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE)); + }; +}); diff --git a/node_modules/is-windows/package.json b/node_modules/is-windows/package.json index 112b13823..fca09f9c0 100644 --- a/node_modules/is-windows/package.json +++ b/node_modules/is-windows/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. UMD module, works with node.js, commonjs, browser, AMD, electron, etc.", + "version": "1.0.2", "homepage": "https://github.com/jonschlinkert/is-windows", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Jon Schlinkert (http://twitter.com/jonschlinkert)", + "Simen Bekkhus (https://github.com/SimenB)", + "刘祺 (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": "^1.0.0", + "mocha": "^3.5.3" }, "keywords": [ "check", + "cywin", "is", "is-windows", "nix", + "operating system", + "os", "platform", "process", "unix", |