Skip to content

Commit

Permalink
REVERT PATCH COMMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Apr 22, 2022
1 parent 7b5bd68 commit 58dde25
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions patches/imgix-core-js+2.3.2.patch
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
diff --git a/node_modules/imgix-core-js/dist/imgix-core-js.js b/node_modules/imgix-core-js/dist/imgix-core-js.js
index 56398af..b237dcd 100644
--- a/node_modules/imgix-core-js/dist/imgix-core-js.js
+++ b/node_modules/imgix-core-js/dist/imgix-core-js.js
@@ -1,3 +1,5 @@
+import { stringMd5 } from 'react-native-quick-md5'
+
(function (global, factory) {
if (typeof define === 'function' && define.amd) {
define('Imgix', ['exports', 'md5', 'js-base64'], factory);
@@ -134,7 +136,7 @@
# diff --git a/node_modules/imgix-core-js/dist/imgix-core-js.js b/node_modules/imgix-core-js/dist/imgix-core-js.js
# index 56398af..b237dcd 100644
# --- a/node_modules/imgix-core-js/dist/imgix-core-js.js
# +++ b/node_modules/imgix-core-js/dist/imgix-core-js.js
# @@ -1,3 +1,5 @@
# +import { stringMd5 } from 'react-native-quick-md5'
# +
# (function (global, factory) {
# if (typeof define === 'function' && define.amd) {
# define('Imgix', ['exports', 'md5', 'js-base64'], factory);
# @@ -134,7 +136,7 @@

ImgixClient.prototype._signParams = function(path, queryParams) {
var signatureBase = this.settings.secureURLToken + path + queryParams;
- var signature = md5(signatureBase);
+ var signature = stringMd5(signatureBase);
# ImgixClient.prototype._signParams = function(path, queryParams) {
# var signatureBase = this.settings.secureURLToken + path + queryParams;
# - var signature = md5(signatureBase);
# + var signature = stringMd5(signatureBase);

if (queryParams.length > 0) {
return queryParams = queryParams + "&s=" + signature;
# if (queryParams.length > 0) {
# return queryParams = queryParams + "&s=" + signature;

0 comments on commit 58dde25

Please sign in to comment.