Skip to content

Commit 2d5b218

Browse files
authored
Update Puppeteer (#2498)
1 parent c169681 commit 2d5b218

30 files changed

+21
-21
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ Repository changes:
373373
* Changed the js file header to point at repo/demo/docs urls instead of eyecon.ro
374374
* The css files are now the output of the standalone build scripts instead of `build/build.less` etc.
375375
* `composer.json` now supports component-installer
376-
* Added [JSHint](http://www.jshint.com/docs/) and [JSCS](https://github.com/mdevils/node-jscs) configurations
376+
* Added [JSHint](https://www.jshint.com/docs/) and [JSCS](https://github.com/mdevils/node-jscs) configurations
377377

378378

379379
1.2.0

Diff for: Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = function(grunt){
1212
'/*!',
1313
' * Datepicker for Bootstrap v<%= pkg.version %> (<%= pkg.homepage %>)',
1414
' *',
15-
' * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)',
15+
' * Licensed under the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0)',
1616
' */'
1717
].join('\n') + '\n',
1818

Diff for: LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Apache License
33
Version 2.0, January 2004
4-
http://www.apache.org/licenses/
4+
https://www.apache.org/licenses/
55

66
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
77

@@ -193,7 +193,7 @@
193193
you may not use this file except in compliance with the License.
194194
You may obtain a copy of the License at
195195

196-
http://www.apache.org/licenses/LICENSE-2.0
196+
https://www.apache.org/licenses/LICENSE-2.0
197197

198198
Unless required by applicable law or agreed to in writing, software
199199
distributed under the License is distributed on an "AS IS" BASIS,

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![npm](https://img.shields.io/npm/dt/bootstrap-datepicker.svg)](https://github.com/uxsolutions/bootstrap-datepicker)
77
[![Twitter Follow](https://img.shields.io/twitter/follow/bsdatepicker.svg?style=social&label=Follow)](https://twitter.com/bsdatepicker)
88

9-
Versions are incremented according to [semver](http://semver.org/).
9+
Versions are incremented according to [semver](https://semver.org/).
1010

1111
## CDN
1212

Diff for: docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Documentation
22
=============
33

4-
Project documentation is built using [Sphinx docs](http://sphinx-doc.org/), which uses [ReST](http://docutils.sourceforge.net/rst.html) for markup. This allows the docs to cover a vast amount of topics without using a thousand-line README file.
4+
Project documentation is built using [Sphinx docs](https://www.sphinx-doc.org/), which uses [reST](http://docutils.sourceforge.net/rst.html) for markup. This allows the docs to cover a vast amount of topics without using a thousand-line README file.
55

66
Sphinx docs is pip-installable via `pip install sphinx`. Once installed, open a command line in the docs folder and run the following commands:
77

Diff for: docs/_screenshots/assets/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
document.write("<script src='https://code.jquery.com/jquery-3.1.1.slim.js'></script>");
1+
document.write("<script src='../../node_modules/jquery/dist/jquery.slim.js'></script>");
22
document.write("<script src='../../js/bootstrap-datepicker.js'></script>");

Diff for: docs/_screenshots/option_todayhighlight.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
const NativeDate = window.Date;
99
const date = function date(y,m,d,h,i,s,j){
1010
switch(arguments.length){
11-
case 0: return date.now ? new NativeDate(date.now) : new NativeDate();
11+
case 0: return new NativeDate(date.now());
1212
case 1: return new NativeDate(y);
1313
case 2: return new NativeDate(y,m);
1414
case 3: return new NativeDate(y,m,d);
@@ -18,6 +18,7 @@
1818
case 7: return new NativeDate(y,y,m,d,h,i,s,j);
1919
}
2020
};
21+
date.now = NativeDate.now;
2122
date.UTC = NativeDate.UTC;
2223
return function() {
2324
Array.prototype.push.call(arguments, date);
@@ -28,7 +29,10 @@
2829
}
2930
document.addEventListener('DOMContentLoaded', function() {
3031
patch_date(function(Date){
31-
Date.now = new Date(2013, 2, 18);
32+
Date.now = () => {
33+
return new Date(2013, 2, 18).getTime();
34+
};
35+
3236
$('input').datepicker({
3337
todayHighlight: true
3438
}).datepicker('show');

Diff for: docs/_static/screenshots/demo_head.png

-124 Bytes
Loading

Diff for: docs/_static/screenshots/markup_component.png

-63 Bytes
Loading

Diff for: docs/_static/screenshots/markup_daterange.png

-327 Bytes
Loading

Diff for: docs/_static/screenshots/markup_inline.png

-24 Bytes
Loading

Diff for: docs/_static/screenshots/markup_input.png

-66 Bytes
Loading

Diff for: docs/_static/screenshots/option_calendarweeks.png

-268 Bytes
Loading

Diff for: docs/_static/screenshots/option_clearbtn.png

-125 Bytes
Loading
-2 Bytes
Loading

Diff for: docs/_static/screenshots/option_enddate.png

-127 Bytes
Loading

Diff for: docs/_static/screenshots/option_language.png

-355 Bytes
Loading

Diff for: docs/_static/screenshots/option_multidate.png

-450 Bytes
Loading

Diff for: docs/_static/screenshots/option_showweekdays.png

-42 Bytes
Loading

Diff for: docs/_static/screenshots/option_startdate.png

-65 Bytes
Loading

Diff for: docs/_static/screenshots/option_todaybtn.png

-106 Bytes
Loading

Diff for: docs/_static/screenshots/option_todayhighlight.png

-195 Bytes
Loading

Diff for: docs/_static/screenshots/option_weekstart.png

-444 Bytes
Loading

Diff for: docs/screenshots.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ const puppeteer = require('puppeteer');
44

55
(async () => {
66
const browser = await puppeteer.launch({
7-
headless: false,
87
args: [
9-
'--no-sandbox',
108
'--disable-gpu',
119
'--disable-translate',
1210
'--disable-extensions',
1311
'--hide-scrollbars'
14-
],
15-
slowMo: 100
12+
]
1613
});
1714

1815
const page = await browser.newPage();

Diff for: js/bootstrap-datepicker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/* =========================================================
22
* bootstrap-datepicker.js
33
* Repo: https://github.com/uxsolutions/bootstrap-datepicker/
4-
* Demo: https://eternicode.github.io/bootstrap-datepicker/
4+
* Demo: https://uxsolutions.github.io/bootstrap-datepicker/
55
* Docs: https://bootstrap-datepicker.readthedocs.org/
66
* =========================================================
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
1010
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
11+
* https://www.apache.org/licenses/LICENSE-2.0
1212
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,

Diff for: js/locales/bootstrap-datepicker.da.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Danish translation for bootstrap-datepicker
3-
* Christian Pedersen <http://github.com/chripede>
3+
* Christian Pedersen <https://github.com/chripede>
44
* Ivan Mylyanyk <https://github.com/imylyanyk>
55
*/
66
;(function($){

Diff for: js/locales/bootstrap-datepicker.fo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Faroese translation for bootstrap-datepicker
3-
* Theodor Johannesen <http://github.com/theodorjohannesen>
3+
* Theodor Johannesen <https://github.com/theodorjohannesen>
44
*/
55
;(function($){
66
$.fn.datepicker.dates['fo'] = {

Diff for: js/locales/bootstrap-datepicker.kr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Korean translation for bootstrap-datepicker
3-
* Gu Youn <http://github.com/guyoun>
3+
* Gu Youn <https://github.com/guyoun>
44
*
55
* DEPRECATED: This language code 'kr' is deprecated and will be removed in 2.0.
66
* Korean support is now in a 'ko' translation file to follow the ISO language

Diff for: js/locales/bootstrap-datepicker.sq.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Albanian translation for bootstrap-datepicker
3-
* Tomor Pupovci <http://www.github.com/ttomor>
3+
* Tomor Pupovci <https://www.github.com/ttomor>
44
*/
55
;(function($){
66
$.fn.datepicker.dates['sq'] = {
@@ -16,4 +16,3 @@
1616
clear: "Pastro"
1717
};
1818
}(jQuery));
19-

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"grunt-jscs": "^3.0.1",
4444
"grunt-string-replace": "^1.3.1",
4545
"load-grunt-tasks": "^3.5.2",
46-
"puppeteer": "1.17.0",
46+
"puppeteer": "1.18.1",
4747
"time-grunt": "^1.4.0"
4848
}
4949
}

0 commit comments

Comments
 (0)