diff --git a/src/__snapshots__/plugin.test.ts.snap b/src/__snapshots__/plugin.test.ts.snap index 441f691..059565a 100644 --- a/src/__snapshots__/plugin.test.ts.snap +++ b/src/__snapshots__/plugin.test.ts.snap @@ -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\\"); "