Skip to content

Commit

Permalink
fix: fixed broken minimized error url (issue#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Mar 16, 2020
2 parents c0bdd72 + 2778ce8 commit 949960f
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 119 deletions.
168 changes: 84 additions & 84 deletions __tests__/__prod_snapshots__/base.js.snap

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions __tests__/__prod_snapshots__/curry.js.snap
@@ -1,17 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`curry - es5 should check arguments 1`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`curry - es5 should check arguments 1`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`curry - es5 should check arguments 2`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`curry - es5 should check arguments 2`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`curry - es5 should check arguments 3`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`curry - es5 should check arguments 3`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`curry - es5 should check arguments 4`] = `"[Immer] minified error nr: 7. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`curry - es5 should check arguments 4`] = `"[Immer] minified error nr: 7. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`curry - proxy should check arguments 1`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`curry - proxy should check arguments 1`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`curry - proxy should check arguments 2`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`curry - proxy should check arguments 2`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`curry - proxy should check arguments 3`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`curry - proxy should check arguments 3`] = `"[Immer] minified error nr: 6. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`curry - proxy should check arguments 4`] = `"[Immer] minified error nr: 7. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`curry - proxy should check arguments 4`] = `"[Immer] minified error nr: 7. Find the full error at: https://bit.ly/3cXEKWf"`;
24 changes: 12 additions & 12 deletions __tests__/__prod_snapshots__/frozen.js.snap
@@ -1,25 +1,25 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`auto freeze - es5 will freeze maps 1`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - es5 will freeze maps 1`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - es5 will freeze maps 2`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - es5 will freeze maps 2`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - es5 will freeze maps 3`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - es5 will freeze maps 3`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - es5 will freeze sets 1`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - es5 will freeze sets 1`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - es5 will freeze sets 2`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - es5 will freeze sets 2`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - es5 will freeze sets 3`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - es5 will freeze sets 3`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - proxy will freeze maps 1`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - proxy will freeze maps 1`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - proxy will freeze maps 2`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - proxy will freeze maps 2`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - proxy will freeze maps 3`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - proxy will freeze maps 3`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - proxy will freeze sets 1`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - proxy will freeze sets 1`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - proxy will freeze sets 2`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - proxy will freeze sets 2`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`auto freeze - proxy will freeze sets 3`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`auto freeze - proxy will freeze sets 3`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;
10 changes: 5 additions & 5 deletions __tests__/__prod_snapshots__/manual.js.snap
@@ -1,10 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`manual - es5 cannot modify after finish 1`] = `"[Immer] minified error nr: 3 {\\"a\\":2}. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`manual - es5 cannot modify after finish 1`] = `"[Immer] minified error nr: 3 {\\"a\\":2}. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`manual - es5 should check arguments 1`] = `"[Immer] minified error nr: 8. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`manual - es5 should check arguments 1`] = `"[Immer] minified error nr: 8. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`manual - es5 should check arguments 2`] = `"[Immer] minified error nr: 8. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`manual - es5 should check arguments 2`] = `"[Immer] minified error nr: 8. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`manual - es5 should check arguments 3`] = `"Cannot read property 'A' of undefined"`;

Expand Down Expand Up @@ -50,9 +50,9 @@ Array [

exports[`manual - proxy cannot modify after finish 1`] = `"Cannot perform 'set' on a proxy that has been revoked"`;

exports[`manual - proxy should check arguments 1`] = `"[Immer] minified error nr: 8. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`manual - proxy should check arguments 1`] = `"[Immer] minified error nr: 8. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`manual - proxy should check arguments 2`] = `"[Immer] minified error nr: 8. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`manual - proxy should check arguments 2`] = `"[Immer] minified error nr: 8. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`manual - proxy should check arguments 3`] = `"Cannot read property 'A' of undefined"`;

Expand Down
6 changes: 3 additions & 3 deletions __tests__/__prod_snapshots__/patch.js.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`applyPatches throws when \`op\` is not "add", "replace", nor "remove" 1`] = `"[Immer] minified error nr: 17 copy. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`applyPatches throws when \`op\` is not "add", "replace", nor "remove" 1`] = `"[Immer] minified error nr: 17 copy. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`applyPatches throws when \`path\` cannot be resolved 1`] = `"[Immer] minified error nr: 15 a/b. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`applyPatches throws when \`path\` cannot be resolved 1`] = `"[Immer] minified error nr: 15 a/b. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`applyPatches throws when \`path\` cannot be resolved 2`] = `"[Immer] minified error nr: 15 a/b/c. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`applyPatches throws when \`path\` cannot be resolved 2`] = `"[Immer] minified error nr: 15 a/b/c. Find the full error at: https://bit.ly/3cXEKWf"`;
10 changes: 5 additions & 5 deletions __tests__/__prod_snapshots__/plugins.js.snap
@@ -1,11 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ES5 plugins should throw if no proxies are available error when using ES5 1`] = `"[Immer] minified error nr: 19 ES5. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`ES5 plugins should throw if no proxies are available error when using ES5 1`] = `"[Immer] minified error nr: 19 ES5. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`error when using Maps 1`] = `"[Immer] minified error nr: 19 MapSet. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`error when using Maps 1`] = `"[Immer] minified error nr: 19 MapSet. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`error when using patches - 1 1`] = `"[Immer] minified error nr: 19 Patches. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`error when using patches - 1 1`] = `"[Immer] minified error nr: 19 Patches. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`error when using patches - 2 1`] = `"[Immer] minified error nr: 19 Patches. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`error when using patches - 2 1`] = `"[Immer] minified error nr: 19 Patches. Find the full error at: https://bit.ly/3cXEKWf"`;

exports[`error when using patches - 3 1`] = `"[Immer] minified error nr: 19 Patches. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`error when using patches - 3 1`] = `"[Immer] minified error nr: 19 Patches. Find the full error at: https://bit.ly/3cXEKWf"`;
2 changes: 1 addition & 1 deletion __tests__/__prod_snapshots__/readme.js.snap
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Producers can update Maps 4`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/38PiBHb"`;
exports[`Producers can update Maps 4`] = `"[Immer] minified error nr: 2. Find the full error at: https://bit.ly/3cXEKWf"`;
2 changes: 1 addition & 1 deletion src/utils/errors.ts
Expand Up @@ -46,6 +46,6 @@ export function die(error: keyof typeof errors, ...args: any[]): never {
throw new Error(
`[Immer] minified error nr: ${error}${
args.length ? " " + args.join(",") : ""
}. Find the full error at: https://bit.ly/38PiBHb`
}. Find the full error at: https://bit.ly/3cXEKWf`
)
}

0 comments on commit 949960f

Please sign in to comment.