Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
beeequeue committed Jun 19, 2022
1 parent b29df8a commit 0d4a674
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions src/__snapshots__/plugin.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,8 @@ console.log(foo);

exports[`does not modify crypto imports 1`] = `
"
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = function(to, from, except, desc) {
if (from && typeof from === \\"object\\" || typeof from === \\"function\\")
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
key = keys[i];
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: function(k) {
return from[k];
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = function(mod, isNodeMode, target) {
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, \\"default\\", { value: mod, enumerable: true }) : target, mod);
};
var import_crypto = __toESM(require(\\"crypto\\"));
var hash = import_crypto.default.createHash(\\"sha1\\");
import crypto from \\"crypto\\";
var hash = crypto.createHash(\\"sha1\\");
hash.update(\\"data\\");
hash.digest(\\"base64\\");
"
Expand Down

0 comments on commit 0d4a674

Please sign in to comment.