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

cronofy-elements

Package Overview
Dependencies
Maintainers
3
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cronofy-elements - npm Package Compare versions

Comparing version 1.17.0 to 1.17.1

build/CronofyElements.v1.17.1.js

2

package.json
{
"name": "cronofy-elements",
"version": "1.17.0",
"version": "1.17.1",
"description": "Fast track scheduling with Cronofy's embeddable UI Elements",

@@ -5,0 +5,0 @@ "main": "build/npm/CronofyElements.js",

// import React from "react";
import ReactDOM from "react-dom";
import merge from "deepmerge";

@@ -65,3 +64,2 @@ import Error from "../components/generic/Error";

const reload = newRawOptions => {
console.log("newRawOptions", newRawOptions);
// Increment the key - this will ensure the React

@@ -77,4 +75,28 @@ // component re-renders when the `options` change.

return {
update: newOptions => reload(merge(originalOptions, newOptions))
update: newOptions => {
let updatedOptions = {
...originalOptions,
...newOptions
};
if (newOptions.config) {
updatedOptions.config = {
...originalOptions.config,
...newOptions.config
};
}
if (newOptions.availability_query) {
updatedOptions.availability_query = {
...originalOptions.availability_query,
...newOptions.availability_query
};
}
if (newOptions.styles) {
updatedOptions.styles = {
...originalOptions.styles,
...newOptions.styles
};
}
return reload(updatedOptions);
}
};
};

Sorry, the diff of this file is too big to display

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