mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
fix audit failure for luxon by upgrading (#17106)
This commit is contained in:
parent
c33b0a83a9
commit
39f9b1e953
@ -196,7 +196,7 @@
|
||||
"localforage": "^1.9.0",
|
||||
"lodash": "^4.17.21",
|
||||
"loglevel": "^1.4.1",
|
||||
"luxon": "^3.1.0",
|
||||
"luxon": "^3.2.1",
|
||||
"nanoid": "^2.1.6",
|
||||
"nonce-tracker": "^1.0.0",
|
||||
"obj-multiplex": "^1.0.0",
|
||||
|
@ -1,22 +0,0 @@
|
||||
diff --git a/node_modules/luxon/build/cjs-browser/luxon.js b/node_modules/luxon/build/cjs-browser/luxon.js
|
||||
index 9ab2b9f..14c2891 100644
|
||||
--- a/node_modules/luxon/build/cjs-browser/luxon.js
|
||||
+++ b/node_modules/luxon/build/cjs-browser/luxon.js
|
||||
@@ -7373,7 +7373,7 @@ var DateTime = /*#__PURE__*/function () {
|
||||
*/
|
||||
;
|
||||
|
||||
- _proto.toLocaleString = function toLocaleString(formatOpts, opts) {
|
||||
+ Reflect.defineProperty(_proto, 'toLocaleString', { value: function toLocaleString(formatOpts, opts) {
|
||||
if (formatOpts === void 0) {
|
||||
formatOpts = DATE_SHORT;
|
||||
}
|
||||
@@ -7383,7 +7383,7 @@ var DateTime = /*#__PURE__*/function () {
|
||||
}
|
||||
|
||||
return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID;
|
||||
- }
|
||||
+ }})
|
||||
/**
|
||||
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
||||
* Defaults to the system's locale if no locale has been specified
|
40
patches/luxon+3.2.1.patch
Normal file
40
patches/luxon+3.2.1.patch
Normal file
@ -0,0 +1,40 @@
|
||||
diff --git a/node_modules/luxon/build/cjs-browser/luxon.js b/node_modules/luxon/build/cjs-browser/luxon.js
|
||||
index 776c38a..c0f0c21 100644
|
||||
--- a/node_modules/luxon/build/cjs-browser/luxon.js
|
||||
+++ b/node_modules/luxon/build/cjs-browser/luxon.js
|
||||
@@ -4226,7 +4226,7 @@ var Interval = /*#__PURE__*/function () {
|
||||
* @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p
|
||||
* @return {string}
|
||||
*/;
|
||||
- _proto.toLocaleString = function toLocaleString(formatOpts, opts) {
|
||||
+ Reflect.defineProperty(_proto, 'toLocaleString', { value: function toLocaleString(formatOpts, opts) {
|
||||
if (formatOpts === void 0) {
|
||||
formatOpts = DATE_SHORT;
|
||||
}
|
||||
@@ -4234,7 +4234,7 @@ var Interval = /*#__PURE__*/function () {
|
||||
opts = {};
|
||||
}
|
||||
return this.isValid ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this) : INVALID$1;
|
||||
- }
|
||||
+ }})
|
||||
|
||||
/**
|
||||
* Returns an ISO 8601-compliant string representation of this Interval.
|
||||
@@ -6598,7 +6598,7 @@ var DateTime = /*#__PURE__*/function () {
|
||||
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
|
||||
* @return {string}
|
||||
*/;
|
||||
- _proto.toLocaleString = function toLocaleString(formatOpts, opts) {
|
||||
+ Reflect.defineProperty(_proto, 'toLocaleString', { value: function toLocaleString(formatOpts, opts) {
|
||||
if (formatOpts === void 0) {
|
||||
formatOpts = DATE_SHORT;
|
||||
}
|
||||
@@ -6606,7 +6606,7 @@ var DateTime = /*#__PURE__*/function () {
|
||||
opts = {};
|
||||
}
|
||||
return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID;
|
||||
- }
|
||||
+ }})
|
||||
|
||||
/**
|
||||
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
@ -17186,10 +17186,10 @@ ltgt@~2.2.0:
|
||||
resolved "https://registry.yarnpkg.com/ltgt/-/ltgt-2.2.1.tgz#f35ca91c493f7b73da0e07495304f17b31f87ee5"
|
||||
integrity sha1-81ypHEk/e3PaDgdJUwTxezH4fuU=
|
||||
|
||||
luxon@^3.0.1, luxon@^3.1.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/luxon/-/luxon-3.1.0.tgz#9ac33d7142b7ea18d4ec8583cdeb0b079abef60d"
|
||||
integrity sha512-7w6hmKC0/aoWnEsmPCu5Br54BmbmUp5GfcqBxQngRcXJ+q5fdfjEzn7dxmJh2YdDhgW8PccYtlWKSv4tQkrTQg==
|
||||
luxon@^3.2.1:
|
||||
version "3.2.1"
|
||||
resolved "https://registry.yarnpkg.com/luxon/-/luxon-3.2.1.tgz#14f1af209188ad61212578ea7e3d518d18cee45f"
|
||||
integrity sha512-QrwPArQCNLAKGO/C+ZIilgIuDnEnKx5QYODdDtbFaxzsbZcc/a7WFq7MhsVYgRlwawLtvOUESTlfJ+hc/USqPg==
|
||||
|
||||
madge@^5.0.1:
|
||||
version "5.0.1"
|
||||
|
Loading…
Reference in New Issue
Block a user