-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add file: resolutions in a transitive with transitives to repr…
…o issue #268
- Loading branch information
1 parent
b6f647f
commit d667576
Showing
11 changed files
with
269 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
load("@aspect_rules_js//npm:defs.bzl", "npm_package") | ||
|
||
npm_package( | ||
name = "is-odd", | ||
srcs = [ | ||
"index.js", | ||
"package.json", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015-present, 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 | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*! | ||
* is-odd <https://github.com/jonschlinkert/is-odd> | ||
* | ||
* Copyright (c) 2015-2017, Jon Schlinkert. | ||
* Released under the MIT License. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const isNumber = require('is-number'); | ||
|
||
module.exports = function isOdd(value) { | ||
const n = Math.abs(value); | ||
if (!isNumber(n)) { | ||
throw new TypeError('expected a number'); | ||
} | ||
if (!Number.isInteger(n)) { | ||
throw new Error('expected an integer'); | ||
} | ||
if (!Number.isSafeInteger(n)) { | ||
throw new Error('value exceeds maximum safe integer'); | ||
} | ||
return (n % 2) === 1; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"name": "is-odd", | ||
"description": "Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.", | ||
"version": "3.0.1", | ||
"homepage": "https://github.com/jonschlinkert/is-odd", | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"contributors": [ | ||
"Dmitry Semigradsky (http://brainstorage.me/semigradsky)", | ||
"DYM (https://dym.sh)", | ||
"Jon Schlinkert (http://twitter.com/jonschlinkert)", | ||
"Rouven Weßling (www.rouvenwessling.de)" | ||
], | ||
"repository": "jonschlinkert/is-odd", | ||
"bugs": { | ||
"url": "https://github.com/jonschlinkert/is-odd/issues" | ||
}, | ||
"license": "MIT", | ||
"files": [ | ||
"index.js" | ||
], | ||
"main": "index.js", | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"dependencies": { | ||
"is-number": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"gulp-format-md": "^1.0.0", | ||
"mocha": "^3.5.3" | ||
}, | ||
"keywords": [ | ||
"array", | ||
"count", | ||
"even", | ||
"filter", | ||
"integer", | ||
"is", | ||
"math", | ||
"numeric", | ||
"odd", | ||
"string" | ||
], | ||
"verb": { | ||
"toc": false, | ||
"layout": "default", | ||
"tasks": [ | ||
"readme" | ||
], | ||
"plugins": [ | ||
"gulp-format-md" | ||
], | ||
"related": { | ||
"list": [ | ||
"exponential-moving-average", | ||
"is-even", | ||
"sma" | ||
] | ||
}, | ||
"lint": { | ||
"reflinks": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
load("@aspect_rules_js//npm:defs.bzl", "npm_package") | ||
|
||
npm_package( | ||
name = "semver-max", | ||
srcs = [ | ||
"index.js", | ||
"package.json", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Eugene Sharygin | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use strict' | ||
|
||
var semver = require('semver') | ||
|
||
var makeMax2 = function (op) { | ||
return function (v1, v2) { | ||
return semver[op](v2.clean, v1.clean) ? v2 : v1 | ||
} | ||
} | ||
|
||
var makeMax = function (op) { | ||
return function () { | ||
return [].filter | ||
.call(arguments, function (version) { | ||
return semver.valid(version, true) | ||
}) | ||
.map(function (version) { | ||
return { | ||
original: version, | ||
clean: semver.clean(version), | ||
} | ||
}) | ||
.reduce(makeMax2(op)).original | ||
} | ||
} | ||
|
||
module.exports = (function (max) { | ||
max.gt = max | ||
;['gte', 'lt', 'lte'].forEach(function (op) { | ||
max[op] = makeMax(op) | ||
}) | ||
|
||
return max | ||
})(makeMax('gt')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "semver-max", | ||
"version": "1.0.0", | ||
"description": "Find maximum (or minimum) version according to semver", | ||
"author": "Eugene Sharygin <eush77@gmail.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "tape test/*.js" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"homepage": "https://github.com/eush77/semver-max", | ||
"repository": "eush77/semver-max", | ||
"bugs": { | ||
"url": "https://github.com/eush77/semver-max/issues" | ||
}, | ||
"keywords": [ | ||
"semver", | ||
"version", | ||
"maximum", | ||
"minimum", | ||
"max", | ||
"min", | ||
"gt", | ||
"gte", | ||
"lt", | ||
"lte", | ||
"reduce" | ||
], | ||
"dependencies": { | ||
"semver": "^5.0.1", | ||
"is-odd": "3.0.1" | ||
}, | ||
"devDependencies": { | ||
"tape": "^4.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.