@recras/online-booking-js 2.0.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npmpublish.yml +2 -2
- package/.jshintrc +1 -1
- package/README.md +11 -11
- package/changelog.md +3 -0
- package/dist/onlinebooking.js +243 -778
- package/dist/onlinebooking.min.js +1 -1
- package/package.json +13 -13
- package/src/booking.js +1 -1
- package/src/contactForm.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recras/online-booking-js",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "JS library for easy integration of Recras online booking and voucher sales",
|
|
5
5
|
"main": "dist/onlinebooking.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Recras/online-booking-js#readme",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@babel/cli": "7.
|
|
35
|
-
"@babel/core": "7.
|
|
34
|
+
"@babel/cli": "7.28.3",
|
|
35
|
+
"@babel/core": "7.28.5",
|
|
36
36
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
37
|
-
"@babel/plugin-transform-arrow-functions": "7.
|
|
38
|
-
"@babel/plugin-transform-for-of": "7.
|
|
39
|
-
"@babel/plugin-transform-object-assign": "7.
|
|
40
|
-
"@babel/preset-env": "7.
|
|
37
|
+
"@babel/plugin-transform-arrow-functions": "7.27.1",
|
|
38
|
+
"@babel/plugin-transform-for-of": "7.27.1",
|
|
39
|
+
"@babel/plugin-transform-object-assign": "7.27.1",
|
|
40
|
+
"@babel/preset-env": "7.28.5",
|
|
41
41
|
"babel-plugin-transform-es2017-object-entries": "0.0.5",
|
|
42
|
-
"jasmine-core": "4.
|
|
42
|
+
"jasmine-core": "4.6.1",
|
|
43
43
|
"jasmine-spec-reporter": "7.0.0",
|
|
44
|
-
"jshint": "2.13.
|
|
45
|
-
"karma": "6.4.
|
|
46
|
-
"karma-chrome-launcher": "3.
|
|
44
|
+
"jshint": "2.13.6",
|
|
45
|
+
"karma": "6.4.4",
|
|
46
|
+
"karma-chrome-launcher": "3.2.0",
|
|
47
47
|
"karma-firefox-launcher": "2.1.2",
|
|
48
48
|
"karma-jasmine": "5.1.0",
|
|
49
|
-
"karma-spec-reporter": "0.0.
|
|
50
|
-
"uglify-js": "3.
|
|
49
|
+
"karma-spec-reporter": "0.0.36",
|
|
50
|
+
"uglify-js": "3.19.3"
|
|
51
51
|
}
|
|
52
52
|
}
|
package/src/booking.js
CHANGED
package/src/contactForm.js
CHANGED
|
@@ -126,6 +126,9 @@ class RecrasContactForm {
|
|
|
126
126
|
if (contactForm['boeking.datum']) {
|
|
127
127
|
contactForm['boeking.datum'] = RecrasDateHelper.formatStringForAPI(contactForm['boeking.datum']);
|
|
128
128
|
}
|
|
129
|
+
if (this.nonce) {
|
|
130
|
+
contactForm.nonce = this.nonce;
|
|
131
|
+
}
|
|
129
132
|
|
|
130
133
|
return contactForm;
|
|
131
134
|
}
|
|
@@ -135,6 +138,7 @@ class RecrasContactForm {
|
|
|
135
138
|
.then(form => {
|
|
136
139
|
this.contactFormFields = form.Velden;
|
|
137
140
|
this.packages = this.sortPackages(form.Arrangementen);
|
|
141
|
+
this.nonce = form.nonce ?? null;
|
|
138
142
|
return this.contactFormFields;
|
|
139
143
|
});
|
|
140
144
|
}
|