vue-cryptojs 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue-cryptojs.es5.js
CHANGED
package/dist/vue-cryptojs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports
|
|
1
|
+
"use strict";var _cryptoJs=_interopRequireDefault(require("crypto-js"));Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable */var VueCryptojs={install:function install(a){a.CryptoJS=_cryptoJs["default"],a.prototype&&Object.defineProperties(a.prototype,{$CryptoJS:{get:function get(){return _cryptoJs["default"]}},CryptoJS:{get:function get(){return _cryptoJs["default"]}}}),a.config&&a.config.globalProperties&&(a.config.globalProperties.$CryptoJS=_cryptoJs["default"]),a.provide&&"function"==typeof a.provide&&a.provide("cryptojs",_cryptoJs["default"]),"undefined"!=typeof window&&window.Vue&&window.Vue.use(VueCryptojs)}},_default=VueCryptojs;exports["default"]=_default;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-cryptojs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "A small wrapper for integrating crypto-js into VueJS",
|
|
5
5
|
"main": "dist/vue-cryptojs.min.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "node --experimental-modules test/index.mjs",
|
|
8
|
-
"build": "
|
|
8
|
+
"build": "npx babel ./src/index.mjs --out-file ./dist/vue-cryptojs.es5.js --presets=@babel/env && npx babel ./src/index.mjs --out-file ./dist/vue-cryptojs.min.js --presets=@babel/env,minify"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
11
11
|
"crypto",
|
|
@@ -25,12 +25,10 @@
|
|
|
25
25
|
"vue": ">= 2.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@babel/
|
|
28
|
+
"@babel/cli": "^7.17.10",
|
|
29
|
+
"@babel/core": "^7.18.2",
|
|
29
30
|
"@babel/preset-env": "^7.10.4",
|
|
30
|
-
"
|
|
31
|
-
"gulp-babel": "^8.0.0",
|
|
32
|
-
"gulp-rename": "^1.2.2",
|
|
33
|
-
"gulp-uglify": "^3.0.2",
|
|
31
|
+
"babel-preset-minify": "^0.5.2",
|
|
34
32
|
"vue": "^2.6.11"
|
|
35
33
|
},
|
|
36
34
|
"dependencies": {
|