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

@run-crank/utilities

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@run-crank/utilities - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

6

dist/src/utils/assert.js

@@ -50,3 +50,3 @@ "use strict";

};
const SUCCESS_MESSAGES = {
const FAIL_MESSAGES = {
'be': (actual, expected, field) => `Expected ${field} field to be ${expected}, but it was actually ${actual}`,

@@ -63,3 +63,3 @@ 'not be': (actual, expected, field) => `Expected ${field} field not to be ${expected}, but it was also ${actual}`,

};
const FAIL_MESSAGES = {
const SUCCESS_MESSAGES = {
'be': (expected, field) => `The ${field} field was set to ${expected}, as expected`,

@@ -88,3 +88,3 @@ 'not be': (expected, field) => `The ${field} field was not set to ${expected}, as expected`,

result.valid = COMPARERS[operator](actualValue, expectedValue);
result.message = result.valid ? SUCCESS_MESSAGES[operator](actualValue, expectedValue, field) : FAIL_MESSAGES[operator](expectedValue, field);
result.message = result.valid ? SUCCESS_MESSAGES[operator](expectedValue, field) : FAIL_MESSAGES[operator](actualValue, expectedValue, field);
return result;

@@ -91,0 +91,0 @@ }

{
"name": "@run-crank/utilities",
"version": "0.4.0",
"version": "0.4.1",
"description": "Utility methods and functionality to be shared across all Cogs written in Typescript.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/run-crank/typescript-cog-utilities#readme",

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