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

low

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

low - npm Package Compare versions

Comparing version 1.1.10 to 1.1.12

10

lib/object-compiler.js

@@ -38,2 +38,5 @@ "use strict";

const resolvedProperty = ObjectCompiler.resolvePointer(property, context);
if (typeof property === 'object' && property !== null && '__pointer' in property && '__doNotCompile' in property) {
return resolvedProperty;
}
if (ObjectCompiler.isTemplate(resolvedProperty)) {

@@ -91,3 +94,8 @@ const renderer = context.env.getRenderer(resolvedProperty.__renderer || 'Renderer');

if (typeof value === 'undefined') {
throw new Error(`Could not resolve pointer "${property.__pointer}"`);
if ('__default' in property) {
return property.__default;
}
else {
throw new Error(`Could not resolve pointer "${property.__pointer}"`);
}
}

@@ -94,0 +102,0 @@ return value;

4

package.json
{
"name": "low",
"version": "1.1.10",
"version": "1.1.12",
"description": "a templating driven low-code framework for rapid systems development",

@@ -25,3 +25,3 @@ "main": "lib/index.js",

},
"gitHead": "5f0ed8043b589340630ac0729cec91f23a1f8d4f",
"gitHead": "87c5071b1087b54916135d9254afaba19f10db7e",
"devDependencies": {

@@ -28,0 +28,0 @@ "@types/jest": "^24.9.0",

@@ -33,2 +33,6 @@

if (typeof property === 'object' && property !== null && '__pointer' in property && '__doNotCompile' in property) {
return resolvedProperty;
}
if (ObjectCompiler.isTemplate(resolvedProperty)) {

@@ -78,2 +82,3 @@ const renderer = context.env.getRenderer(resolvedProperty.__renderer || 'Renderer');

}
return output;

@@ -88,6 +93,9 @@ }

const value = ObjectCompiler.objectPath(context, property.__pointer);
if (typeof value === 'undefined') {
throw new Error(`Could not resolve pointer "${property.__pointer}"`);
if ('__default' in property) {
return property.__default;
} else {
throw new Error(`Could not resolve pointer "${property.__pointer}"`);
}
}

@@ -94,0 +102,0 @@

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