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

airtight

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airtight - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

1

out/main/coerce.d.ts
import { SchemaDefType } from './schema-def.js';
export declare function coerce(desiredType: SchemaDefType, value: unknown): any | undefined;
export declare function objectToString(val: object): string;

@@ -36,2 +36,3 @@ import { getType } from './util.js';

boolean: (val) => val.toString(),
object: (val) => objectToString(val),
},

@@ -62,1 +63,7 @@ array: {

}
export function objectToString(val) {
if (val.toString === Object.prototype.toString) {
return JSON.stringify(val);
}
return val.toString();
}

2

package.json
{
"name": "airtight",
"version": "4.2.0",
"version": "4.3.0",
"description": "JSON Schema inspired library for validating and decoding messages",

@@ -5,0 +5,0 @@ "type": "module",

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