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

@effect/schema

Package Overview
Dependencies
Maintainers
3
Versions
335
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/schema - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "@effect/schema",
"version": "0.2.0",
"version": "0.2.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

@@ -248,3 +248,3 @@ <h3 align="center">

// Age is a schema that can decode a string to a number and encode a number to a string
const Age = S.numerFromString(S.string);
const Age = S.numberFromString(S.string);

@@ -251,0 +251,0 @@ const Person = S.struct({

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

exports.transform = transform;
const attachPropertySignature = (key, value) => schema => transform(schema, (0, _Function.pipe)(schema, extend(struct({
const attachPropertySignature = (key, value) => schema => transform(schema, (0, _Function.pipe)(to(schema), extend(struct({
[key]: literal(value)

@@ -507,0 +507,0 @@ }))), a => ({

@@ -775,3 +775,3 @@ /**

schema,
pipe(schema, extend(struct({ [key]: literal(value) }))),
pipe(to(schema), extend(struct({ [key]: literal(value) }))),
(a) => ({ ...a, [key]: value }),

@@ -778,0 +778,0 @@ ({ [key]: _key, ...rest }) => rest

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