Socket
Socket
Sign inDemoInstall

@contentful/field-editor-shared

Package Overview
Dependencies
Maintainers
169
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/field-editor-shared - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

4

dist/cjs/FieldConnector.js

@@ -12,4 +12,4 @@ "use strict";

const _react = _interop_require_wildcard(require("react"));
const _lodashes = require("lodash-es");
const _isEqual = _interop_require_default(require("lodash/isEqual"));
const _throttle = _interop_require_default(require("lodash/throttle"));
function _define_property(obj, key, value) {

@@ -135,3 +135,3 @@ if (key in obj) {

});
_define_property(this, "triggerSetValueCallbacks", (0, _lodashes.throttle)((value)=>{
_define_property(this, "triggerSetValueCallbacks", (0, _throttle.default)((value)=>{
return new Promise((resolve, reject)=>{

@@ -138,0 +138,0 @@ if (this.props.isEmptyValue(value ?? null)) {

@@ -15,4 +15,4 @@ function _define_property(obj, key, value) {

import * as React from 'react';
import { throttle } from 'lodash-es';
import isEqual from 'lodash/isEqual';
import throttle from 'lodash/throttle';
var _React_Component;

@@ -19,0 +19,0 @@ export class FieldConnector extends (_React_Component = React.Component) {

@@ -0,1 +1,2 @@

/// <reference types="lodash" />
import * as React from 'react';

@@ -42,3 +43,3 @@ import { FieldAPI, ValidationError } from '@contentful/app-sdk';

setValue: (value: ValueType | Nullable) => Promise<void>;
triggerSetValueCallbacks: import("lodash-es").DebouncedFunc<(value: ValueType | Nullable) => Promise<unknown>>;
triggerSetValueCallbacks: import("lodash").DebouncedFunc<(value: ValueType | Nullable) => Promise<unknown>>;
componentDidMount(): void;

@@ -45,0 +46,0 @@ componentWillUnmount(): void;

{
"name": "@contentful/field-editor-shared",
"version": "1.3.0",
"version": "1.3.1",
"main": "dist/cjs/index.js",

@@ -39,3 +39,3 @@ "module": "dist/esm/index.js",

"@contentful/app-sdk": "^4.2.0",
"@contentful/field-editor-test-utils": "^1.4.0"
"@contentful/field-editor-test-utils": "^1.4.1"
},

@@ -46,4 +46,3 @@ "dependencies": {

"emotion": "^10.0.17",
"lodash": "^4.17.15",
"lodash-es": "^4.17.21"
"lodash": "^4.17.15"
},

@@ -54,3 +53,3 @@ "peerDependencies": {

},
"gitHead": "543e02672a8dd4edc810f9f3568d6b69c454e1f9"
"gitHead": "ca904b19ca794a2c40d82e1f7ede9e0be3560f22"
}
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