@betterer/constraints
Advanced tools
Comparing version 1.0.0 to 1.0.2
import { ConstraintResult } from './constraint-result'; | ||
export declare function bigger(current: number, previous: number): ConstraintResult; | ||
export declare function bigger(result: number, expected: number): ConstraintResult; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.bigger = void 0; | ||
var constraint_result_1 = require("./constraint-result"); | ||
function bigger(current, previous) { | ||
if (current === previous) { | ||
function bigger(result, expected) { | ||
if (result === expected) { | ||
return constraint_result_1.ConstraintResult.same; | ||
} | ||
if (current > previous) { | ||
if (result > expected) { | ||
return constraint_result_1.ConstraintResult.better; | ||
@@ -10,0 +11,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ConstraintResult = void 0; | ||
var ConstraintResult; | ||
@@ -4,0 +5,0 @@ (function (ConstraintResult) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var constraint_result_1 = require("./constraint-result"); | ||
exports.ConstraintResult = constraint_result_1.ConstraintResult; | ||
Object.defineProperty(exports, "ConstraintResult", { enumerable: true, get: function () { return constraint_result_1.ConstraintResult; } }); | ||
var bigger_1 = require("./bigger"); | ||
exports.bigger = bigger_1.bigger; | ||
Object.defineProperty(exports, "bigger", { enumerable: true, get: function () { return bigger_1.bigger; } }); | ||
var smaller_1 = require("./smaller"); | ||
exports.smaller = smaller_1.smaller; | ||
Object.defineProperty(exports, "smaller", { enumerable: true, get: function () { return smaller_1.smaller; } }); | ||
//# sourceMappingURL=index.js.map |
import { ConstraintResult } from './constraint-result'; | ||
export declare function smaller(current: number, previous: number): ConstraintResult; | ||
export declare function smaller(result: number, expected: number): ConstraintResult; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.smaller = void 0; | ||
var constraint_result_1 = require("./constraint-result"); | ||
function smaller(current, previous) { | ||
if (current === previous) { | ||
function smaller(result, expected) { | ||
if (result === expected) { | ||
return constraint_result_1.ConstraintResult.same; | ||
} | ||
if (current < previous) { | ||
if (result < expected) { | ||
return constraint_result_1.ConstraintResult.better; | ||
@@ -10,0 +11,0 @@ } |
{ | ||
"name": "@betterer/constraints", | ||
"description": "default constraints for @betterer/betterer", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"license": "MIT", | ||
@@ -27,5 +27,5 @@ "publishConfig": { | ||
"dependencies": { | ||
"tslib": "^1.10.0" | ||
"tslib": "^2.0.0" | ||
}, | ||
"gitHead": "1ce8729fb53a9a138624c2d30282092bbe931ddf" | ||
"gitHead": "db78ef726ff97b65fc4922acdf65a97e6aa7cc31" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
6290
57
+ Addedtslib@2.8.1(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.0.0