mirror of
https://github.com/penpot/penpot.git
synced 2025-02-11 01:28:30 -05:00
⬆️ Update vendor dependencies.
This commit is contained in:
parent
ce094b663c
commit
2796f9d9c1
7 changed files with 437 additions and 314 deletions
12
frontend/vendor/datefns/datefns.bundle.js
vendored
12
frontend/vendor/datefns/datefns.bundle.js
vendored
|
@ -962,7 +962,7 @@ function isValid(dirtyDate) {
|
|||
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
||||
*
|
||||
* @param {Date|Number} date - the date to be changed
|
||||
* @param {Number} amount - the amount of milliseconds to be added
|
||||
* @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
|
||||
* @returns {Date} the new date with the milliseconds added
|
||||
* @throws {TypeError} 2 arguments required
|
||||
*
|
||||
|
@ -990,7 +990,7 @@ function addMilliseconds(dirtyDate, dirtyAmount) {
|
|||
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
||||
*
|
||||
* @param {Date|Number} date - the date to be changed
|
||||
* @param {Number} amount - the amount of milliseconds to be subtracted
|
||||
* @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
|
||||
* @returns {Date} the new date with the milliseconds subtracted
|
||||
* @throws {TypeError} 2 arguments required
|
||||
*
|
||||
|
@ -2177,6 +2177,10 @@ var longFormatters = {
|
|||
p: timeLongFormatter,
|
||||
P: dateTimeLongFormatter
|
||||
};var MILLISECONDS_IN_MINUTE = 60000;
|
||||
|
||||
function getDateMillisecondsPart(date) {
|
||||
return date.getTime() % MILLISECONDS_IN_MINUTE;
|
||||
}
|
||||
/**
|
||||
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
||||
* They usually appear for dates that denote time before the timezones were introduced
|
||||
|
@ -2189,11 +2193,13 @@ var longFormatters = {
|
|||
* This function returns the timezone offset in milliseconds that takes seconds in account.
|
||||
*/
|
||||
|
||||
|
||||
function getTimezoneOffsetInMilliseconds(dirtyDate) {
|
||||
var date = new Date(dirtyDate.getTime());
|
||||
var baseTimezoneOffset = Math.ceil(date.getTimezoneOffset());
|
||||
date.setSeconds(0, 0);
|
||||
var millisecondsPartOfTimezoneOffset = date.getTime() % MILLISECONDS_IN_MINUTE;
|
||||
var hasNegativeUTCOffset = baseTimezoneOffset > 0;
|
||||
var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date);
|
||||
return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset;
|
||||
}var protectedDayOfYearTokens = ['D', 'DD'];
|
||||
var protectedWeekYearTokens = ['YY', 'YYYY'];
|
||||
|
|
File diff suppressed because one or more lines are too long
715
frontend/vendor/package-lock.json
generated
vendored
715
frontend/vendor/package-lock.json
generated
vendored
File diff suppressed because it is too large
Load diff
16
frontend/vendor/package.json
vendored
16
frontend/vendor/package.json
vendored
|
@ -14,23 +14,23 @@
|
|||
"author": "",
|
||||
"license": "MPL2",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.8.3",
|
||||
"@babel/core": "^7.8.3",
|
||||
"@babel/cli": "^7.8.4",
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
||||
"@babel/plugin-proposal-export-default-from": "^7.8.3",
|
||||
"@babel/preset-env": "^7.8.3",
|
||||
"@babel/preset-react": "^7.8.3",
|
||||
"rollup": "^1.29.0",
|
||||
"rollup-plugin-babel": "^4.3.2",
|
||||
"@babel/preset-env": "^7.9.0",
|
||||
"@babel/preset-react": "^7.9.1",
|
||||
"rollup": "^2.1.0",
|
||||
"rollup-plugin-babel": "^4.4.0",
|
||||
"rollup-plugin-commonjs": "^10.1.0",
|
||||
"rollup-plugin-node-builtins": "^2.1.2",
|
||||
"rollup-plugin-node-globals": "^1.4.0",
|
||||
"rollup-plugin-node-resolve": "^5.0.0",
|
||||
"rollup-plugin-replace": "^2.2.0",
|
||||
"terser": "^4.6.3"
|
||||
"terser": "^4.6.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"date-fns": "^2.9.0",
|
||||
"date-fns": "^2.11.0",
|
||||
"randomcolor": "^0.5.4",
|
||||
"react-color": "^2.18.0",
|
||||
"react-dnd": "^10.0.2",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
(function(react){'use strict';react=react&&react.hasOwnProperty('default')?react['default']:react;var global$1 = (typeof global !== "undefined" ? global :
|
||||
(function(react){'use strict';react=react&&Object.prototype.hasOwnProperty.call(react,'default')?react['default']:react;var global$1 = (typeof global !== "undefined" ? global :
|
||||
typeof self !== "undefined" ? self :
|
||||
typeof window !== "undefined" ? window : {});var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue