Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@stackbit/datocms-plugin-typed-list

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackbit/datocms-plugin-typed-list - npm Package Compare versions

Comparing version
0.1.2
to
0.1.3
+2
-2
package.json
{
"name": "@stackbit/datocms-plugin-typed-list",
"homepage": "https://github.com/stackbithq/datocms-plugin-typed-list#readme",
"version": "0.1.2",
"version": "0.1.3",
"description": "Plugin for editing typed list (list of strings, enums, numbers) in DatoCMS using JSON field",

@@ -24,3 +24,3 @@ "main": "index.js",

"type": "string",
"required": true,
"required": false,
"default": "string"

@@ -27,0 +27,0 @@ }, {

@@ -18,3 +18,3 @@ function deserializeValue(value) {

function getFieldType(plugin) {
let type = _.get(plugin, 'parameters.instance.type');
let type = _.get(plugin, 'parameters.instance.type', 'string');
if (!_.includes(['string', 'number'], type)) {

@@ -21,0 +21,0 @@ console.error('illegal type "' + type + '" for datocms-plugin-typed-list');