Socket
Socket
Sign inDemoInstall

cronofy-elements

Package Overview
Dependencies
Maintainers
3
Versions
171
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.15.1 to 1.16.0

build/CronofyElements.v1.16.0.js

22

demo/server.js

@@ -123,3 +123,16 @@ require("@babel/polyfill");

function localMiddleware (req, res, next) {
if (req.query.locale !== undefined) {
req.locale = req.query.locale;
} else {
req.locale = 'en';
}
// keep executing the router middleware
next()
}
app.set("query parser", "extended");
app.use(express.static(__dirname + "/../"));
app.use(localMiddleware)
app.set("view engine", "ejs");

@@ -167,2 +180,3 @@ app.set("views", path.join(__dirname, "/../demo"));

sub: env.SUB,
locale: req.locale,
client_id: env.CLIENT_ID

@@ -177,2 +191,3 @@ });

);
console.log("Rendering with " + req.locale);
return res.render("availability-viewer", {

@@ -183,2 +198,3 @@ availability_token: availability_token.element_token.token,

sub: env.SUB,
locale: req.locale,
client_id: env.CLIENT_ID

@@ -195,2 +211,3 @@ });

sub: env.SUB,
locale: req.locale,
client_id: env.CLIENT_ID

@@ -204,2 +221,3 @@ });

agenda_token: agenda_token.element_token.token,
locale: req.locale,
api_domain: rawApiDomain

@@ -227,2 +245,3 @@ });

sub: env.SUB,
locale: req.locale,
client_id: env.CLIENT_ID

@@ -250,2 +269,3 @@ });

sub: env.SUB,
locale: req.locale,
client_id: env.CLIENT_ID

@@ -262,2 +282,3 @@ });

sub: env.SUB,
locale: req.locale,
client_id: env.CLIENT_ID

@@ -274,2 +295,3 @@ });

sub: env.SUB,
locale: req.locale,
client_id: env.CLIENT_ID

@@ -276,0 +298,0 @@ });

2

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

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

@@ -27,4 +27,14 @@ const getTranslationsFromJson = (locales, contexts) =>

];
const locales = ["de", "en", "es", "fr", "it", "nl"];
const locales = [
"de",
"en",
"es",
"fr",
"it",
"ja",
"nl",
"ru",
"sv",
];
export const translations = getTranslationsFromJson(locales, contexts);

@@ -76,2 +76,3 @@ {

"Asia/Qatar": "Katar",
"Asia/Qostanay": "Qostanai",
"Asia/Qyzylorda": "Qysylorda",

@@ -78,0 +79,0 @@ "Asia/Rangoon": "Rangun",

{
"time_zone": {
"label": "Zona horaria"
"label": "zona horaria"
},

@@ -137,3 +137,3 @@ "time_zones": {

"Atlantic/Bermuda": "Bermudas",
"Atlantic/Canary": "Islas Canarias",
"Atlantic/Canary": "Canarias",
"Atlantic/Cape_Verde": "Cabo Verde",

@@ -140,0 +140,0 @@ "Atlantic/Faeroe": "Islas Feroe",

{
"time_zone": {
"label": "Fuseau horaire"
"label": "fuseau horaire"
},

@@ -5,0 +5,0 @@ "time_zones": {

@@ -41,2 +41,7 @@ {

"America/St_Barthelemy": "Saint-Barthélemy",
"America/St_Johns": "Saint John’s",
"America/St_Kitts": "Saint Kitts",
"America/St_Lucia": "Saint Lucia",
"America/St_Thomas": "Saint Thomas",
"America/St_Vincent": "Saint Vincent",
"Antarctica/DumontDUrville": "Dumont d’Urville",

@@ -43,0 +48,0 @@ "Asia/Almaty": "Alma-Ata",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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