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

@twotaps/site-utils

Package Overview
Dependencies
Maintainers
3
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twotaps/site-utils - npm Package Compare versions

Comparing version 0.0.28 to 0.0.29

28

dist/page/page.service.js

@@ -73,6 +73,2 @@ import { Client } from "@urql/core";

}
else if (field.type === TTSchemaFieldType.Text) {
curFlattenedProps[field.name] = field.hasMultipleValues ? prop.value : prop.value[0];
// If the field is Schema type, recursively add
}
else if (field.type === TTSchemaFieldType.Schema) {

@@ -189,11 +185,17 @@ let schema = schemas.find((_schema) => _schema.id === field.typeTTSchema.id);

const { publishedRevision, ...rest } = page;
let schema = publishedRevision.schema.reduce((accum, current) => {
return ([...accum, {
...current.ttschema,
id: current.id,
ttschemaId: current.ttschema.id,
sortOrder: current.sortOrder,
properties: propertyMapping(current.properties, current.ttschema.fields, current.ttschema.subSchemas),
}]);
}, []);
let schema;
if (publishedRevision) {
schema = publishedRevision.schema.reduce((accum, current) => {
return ([...accum, {
...current.ttschema,
id: current.id,
ttschemaId: current.ttschema.id,
sortOrder: current.sortOrder,
properties: propertyMapping(current.properties, current.ttschema.fields, current.ttschema.subSchemas),
}]);
}, []);
}
else {
schema = [];
}
return {

@@ -200,0 +202,0 @@ ...rest,

{
"name": "@twotaps/site-utils",
"version": "0.0.28",
"version": "0.0.29",
"description": "This package provides helper code for building twotaps public sites",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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