Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@betterer/constraints

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@betterer/constraints - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

2

dist/bigger.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc