From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/is-windows/LICENSE | 2 +- node_modules/is-windows/index.js | 43 ++++++++++++++++++++---------------- node_modules/is-windows/package.json | 16 ++++++++++---- 3 files changed, 37 insertions(+), 24 deletions(-) (limited to 'node_modules/is-windows') 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 + * + * 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", -- cgit v1.2.3