@renovatebot/ruby-semver
Advanced tools
Comparing version 0.2.1 to 1.0.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.prerelease = exports.patch = exports.minor = exports.major = exports.minSatisfying = exports.maxSatisfying = exports.satisfies = exports.valid = exports.lte = exports.lt = exports.gte = exports.gt = exports.eq = void 0; | ||
const version_1 = require("./ruby/version"); | ||
@@ -4,0 +5,0 @@ const requirement_1 = require("./ruby/requirement"); |
@@ -10,3 +10,3 @@ import { Version } from './version'; | ||
static default(): Requirement; | ||
static parse(obj: any): ParsedRequirement; | ||
static parse(obj: unknown): ParsedRequirement; | ||
constructor(...requirements: RawRequirement[]); | ||
@@ -13,0 +13,0 @@ concat(newReqs: RawRequirement[]): void; |
"use strict"; | ||
// https://github.com/ruby/ruby/blob/d4a86e407ec2057c2c7ad757aa76dad757f34c3a/lib/rubygems/requirement.rb | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parse = exports.Requirement = void 0; | ||
// import { Version } from "./version"; | ||
@@ -37,5 +38,3 @@ // # frozen_string_literal: true | ||
function uniq(array, eql = defaultEql) { | ||
return array.filter((x, idx, arr) => { | ||
return arr.findIndex((y) => eql(x, y)) === idx; | ||
}); | ||
return array.filter((x, idx, arr) => arr.findIndex((y) => eql(x, y)) === idx); | ||
} | ||
@@ -409,2 +408,3 @@ function reqsEql(xReqs, yReqs, eql) { | ||
} | ||
exports.Requirement = Requirement; | ||
// OPS = { #:nodoc: | ||
@@ -433,3 +433,2 @@ // "=" => lambda { |v, r| v == r }, | ||
Requirement.DEFAULT_REQUIREMENT = ['>=', new version_1.Version('0')]; | ||
exports.Requirement = Requirement; | ||
exports.parse = Requirement.parse; |
@@ -7,5 +7,5 @@ export declare type SegmentElement = string | number; | ||
toString(): string; | ||
static isCorrect(version: any): boolean; | ||
static create(input: any): Version | null; | ||
constructor(version: any); | ||
static isCorrect(version: unknown): boolean; | ||
static create(input: unknown): Version | null; | ||
constructor(version: unknown); | ||
bump(): Version; | ||
@@ -12,0 +12,0 @@ strictEql(other: Version): boolean; |
"use strict"; | ||
// https://github.com/ruby/ruby/blob/d4a86e407ec2057c2c7ad757aa76dad757f34c3a/lib/rubygems/version.rb | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.create = exports.Version = void 0; | ||
const copystr = (x) => (' ' + x).slice(1); | ||
@@ -379,6 +380,6 @@ // class Gem::Version | ||
} // end | ||
exports.Version = Version; | ||
// VERSION_PATTERN = '[0-9]+(?>\.[0-9a-zA-Z]+)*(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?'.freeze # :nodoc: | ||
// ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/.freeze # :nodoc: | ||
Version.ANCHORED_VERSION_PATTERN = /^\s*([0-9]+(\.[0-9a-zA-Z]+)*(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?)?\s*$/; | ||
exports.Version = Version; | ||
exports.create = Version.create; |
{ | ||
"name": "@renovatebot/ruby-semver", | ||
"version": "0.2.1", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
@@ -29,24 +29,24 @@ "description": "Ruby SemVer in TypeScript.", | ||
"dependencies": { | ||
"tslib": "2.0.0" | ||
"tslib": "2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "26.0.4", | ||
"@typescript-eslint/eslint-plugin": "3.6.0", | ||
"@typescript-eslint/parser": "3.6.0", | ||
"babel-jest": "26.1.0", | ||
"@types/jest": "26.0.20", | ||
"@typescript-eslint/eslint-plugin": "4.15.2", | ||
"@typescript-eslint/parser": "4.15.2", | ||
"babel-jest": "26.6.3", | ||
"babel-plugin-dynamic-import-node": "2.3.3", | ||
"codecov": "3.7.0", | ||
"eslint": "7.4.0", | ||
"eslint-config-airbnb-typescript": "8.0.2", | ||
"eslint-config-prettier": "6.11.0", | ||
"eslint-plugin-import": "2.22.0", | ||
"eslint-plugin-promise": "4.2.1", | ||
"jest": "26.1.0", | ||
"jest-junit": "11.0.1", | ||
"jest-silent-reporter": "0.2.1", | ||
"codecov": "3.8.1", | ||
"eslint": "7.20.0", | ||
"eslint-config-airbnb-typescript": "12.3.1", | ||
"eslint-config-prettier": "8.1.0", | ||
"eslint-plugin-import": "2.22.1", | ||
"eslint-plugin-promise": "4.3.1", | ||
"jest": "26.6.3", | ||
"jest-junit": "12.0.0", | ||
"jest-silent-reporter": "0.4.0", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "2.0.5", | ||
"ts-jest": "26.1.1", | ||
"typescript": "3.9.6" | ||
"prettier": "2.2.1", | ||
"ts-jest": "26.5.1", | ||
"typescript": "4.1.5" | ||
} | ||
} |
@@ -1,1 +0,5 @@ | ||
# @renovate/ruby-semver | ||
![build](https://github.com/renovatebot/ruby-semver/workflows/build/badge.svg) | ||
# ruby-semver | ||
Ruby SemVer in TypeScript. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
37384
1060
1
6
+ Addedtslib@2.1.0(transitive)
- Removedtslib@2.0.0(transitive)
Updatedtslib@2.1.0