New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rc-js-util

Package Overview
Dependencies
Maintainers
1
Versions
260
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-js-util - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

1

bin/test-utils.d.ts
export declare function itShouldCallAssert(times: number, runTest: () => void): void;
export declare function itShouldNotRunDebugWhenDebugIsFalse(runTest: () => void): void;
export declare function expectValueToBeNearTo(value: number, expectation: number, variance?: number): void;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.itShouldNotRunDebugWhenDebugIsFalse = exports.itShouldCallAssert = void 0;
exports.expectValueToBeNearTo = exports.itShouldNotRunDebugWhenDebugIsFalse = exports.itShouldCallAssert = void 0;
var _debug_1 = require("./debug/_debug");

@@ -25,2 +25,8 @@ function itShouldCallAssert(times, runTest) {

exports.itShouldNotRunDebugWhenDebugIsFalse = itShouldNotRunDebugWhenDebugIsFalse;
function expectValueToBeNearTo(value, expectation, variance) {
if (variance === void 0) { variance = 10E-7; }
expect(value).toBeLessThan(expectation + variance);
expect(value).toBeGreaterThan(expectation - variance);
}
exports.expectValueToBeNearTo = expectValueToBeNearTo;
//# sourceMappingURL=test-utils.js.map

4

package.json
{
"name": "rc-js-util",
"version": "1.0.1",
"version": "1.1.0",
"license": "MIT",

@@ -17,5 +17,5 @@ "scripts": {

"typescript": "~3.9.2",
"rc-lint-rules": "^4.0.0"
"rc-lint-rules": "^5.0.0"
},
"private": false
}

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