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

timekit-booking

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timekit-booking - npm Package Compare versions

Comparing version 1.12.0 to 1.13.0

2

package.json
{
"name": "timekit-booking",
"version": "1.12.0",
"version": "1.13.0",
"description": "Make a beautiful embeddable booking widget in minutes",

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

@@ -120,2 +120,22 @@ 'use strict';

// Preset: bookingGraph = 'instant_payment'
var bookingInstantPayment = {
timekitCreateBooking: {
graph: 'instant_payment',
action: 'tentative',
event: {
invite: true,
my_rsvp: 'accepted',
sync_provider: true
}
},
localization: {
strings: {
successMessageBody: "We have received your payment and reserved your timeslot.<br /><br />Have a great day!"
}
}
};
// Preset: bookingGraph = 'confirm_decline'

@@ -229,2 +249,3 @@ var bookingConfirmDecline = {

'instant': bookingInstant,
'instant_payment': bookingInstantPayment,
'confirm_decline': bookingConfirmDecline,

@@ -231,0 +252,0 @@ 'group_customer': bookingGroupCustomer,

@@ -704,2 +704,4 @@ 'use strict';

utils.doCallback('renderStarted', config);
// Include library styles if enabled

@@ -706,0 +708,0 @@ includeStyles();

@@ -9,5 +9,2 @@ 'use strict';

/**
* Advanced configuration of the library
*/
describe('Advanced configuration', function() {

@@ -99,2 +96,42 @@

it('should be able override config settings fetched remotely, but before render', function(done) {
mockAjax.all();
function updateConfig () {
var widgetConfig = widget.getConfig()
expect(widgetConfig.name).toBe('Marty McFly')
widgetConfig.name = 'Marty McFly 2'
widget.setConfig(widgetConfig)
}
var widget = new TimekitBooking();
var config = {
widgetId: '12345',
callbacks: {
renderStarted: updateConfig
}
};
spyOn(config.callbacks, 'renderStarted').and.callThrough();
widget.init(config);
setTimeout(function() {
expect(config.callbacks.renderStarted).toHaveBeenCalled();
var request = jasmine.Ajax.requests.first();
expect(request.url).toBe('https://api.timekit.io/v2/widgets/embed/12345');
var widgetConfig = widget.getConfig()
expect(widgetConfig.name).toBe('Marty McFly 2')
done();
}, 100)
});
});

@@ -9,5 +9,2 @@ 'use strict';

/**
* Basic configuration of the library
*/
describe('Basic configuration', function() {

@@ -14,0 +11,0 @@

@@ -9,5 +9,2 @@ 'use strict';

/**
* Basic interaction of the library
*/
describe('Basic interaction', function() {

@@ -14,0 +11,0 @@

@@ -9,5 +9,2 @@ 'use strict';

/**
* Basic interaction of the library
*/
describe('Booking configuration', function() {

@@ -14,0 +11,0 @@

@@ -9,5 +9,2 @@ 'use strict';

/**
* Basic interaction of the library
*/
describe('Booking fields', function() {

@@ -14,0 +11,0 @@

@@ -8,5 +8,2 @@ 'use strict';

/**
* Intilialize the library with plain build
*/
describe('Config loading', function() {

@@ -13,0 +10,0 @@

@@ -9,5 +9,2 @@ 'use strict';

/**
* Basic interaction of the library
*/
describe('Group bookings', function() {

@@ -14,0 +11,0 @@

@@ -8,5 +8,2 @@ 'use strict';

/**
* Basic configuration of the library
*/
describe('Hour compatibility configuration', function() {

@@ -13,0 +10,0 @@

@@ -8,5 +8,2 @@ 'use strict';

/**
* Intilialize the library with plain build
*/
describe('Initialization regular', function() {

@@ -54,5 +51,2 @@

/**
* Intilialize the library with minified build
*/
describe('Initialization minified', function() {

@@ -59,0 +53,0 @@

@@ -11,5 +11,2 @@ 'use strict';

/**
* Tests for mobile and responsive
*/
describe('Mobile & responsive', function() {

@@ -16,0 +13,0 @@

@@ -10,5 +10,2 @@ 'use strict';

/**
* Basic interaction of the library
*/
describe('Team availability', function() {

@@ -15,0 +12,0 @@

@@ -135,3 +135,3 @@ 'use strict';

contentType: 'application/json',
responseText: '{ "data": { "id": "12345", "slug": "my-widget-slug", "config": { "email": "marty.mcfly@timekit.io", "apiToken": "XT1JO879JF1qUXXzmETD5ucgxaDwsFsd", "calendar": "22f86f0c-ee80-470c-95e8-dadd9d05edd2", "email": "marty.mcfly@timekit.io", "timekitConfig": { "app": "bookingjs-demo" } } } }'
responseText: '{ "data": { "id": "12345", "slug": "my-widget-slug", "config": { "email": "marty.mcfly@timekit.io", "apiToken": "XT1JO879JF1qUXXzmETD5ucgxaDwsFsd", "calendar": "22f86f0c-ee80-470c-95e8-dadd9d05edd2", "name": "Marty McFly", "timekitConfig": { "app": "bookingjs-demo" } } } }'
});

@@ -138,0 +138,0 @@

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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