vue2-client 1.12.4 → 1.12.5

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/babel.config.js CHANGED
@@ -7,7 +7,10 @@ if (IS_PROD) {
7
7
  }
8
8
 
9
9
  module.exports = {
10
- presets: ['@babel/preset-env'],
10
+ presets: [
11
+ '@vue/cli-plugin-babel/preset',
12
+ ['@vue/babel-preset-jsx', { injectH: false }]
13
+ ],
11
14
  plugins,
12
15
  env: {
13
16
  test: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.12.4",
3
+ "version": "1.12.5",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -77,7 +77,6 @@
77
77
  "@vue/eslint-config-standard": "^8.0.1",
78
78
  "@vue/test-utils": "^1.3.6",
79
79
  "@jest/globals": "^29.7.0",
80
- "babel-jest": "^29.7.0",
81
80
  "babel-plugin-transform-remove-console": "^6.9.4",
82
81
  "compression-webpack-plugin": "^10.0.0",
83
82
  "css-minimizer-webpack-plugin": "^5.0.1",
@@ -36,7 +36,7 @@
36
36
 
37
37
  <script>
38
38
 
39
- import { getConfigByName, runLogic } from '@/services/api/common'
39
+ import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
40
40
 
41
41
  export default {
42
42
  name: 'XCardSet',
@@ -1,4 +1,3 @@
1
- import AesEncryptJS from 'crypto-js'
2
1
  import CryptoJS from 'crypto-js'
3
2
  import RsaEncryptJS from 'jsencrypt'
4
3
 
@@ -9,9 +8,9 @@ export default {
9
8
  * @returns {*}
10
9
  */
11
10
  AESEncrypt (word, encryKey) {
12
- const key = AesEncryptJS.enc.Utf8.parse(encryKey)
13
- const srcs = AesEncryptJS.enc.Utf8.parse(word)
14
- const encrypted = AesEncryptJS.AES.encrypt(srcs, key, { mode: AesEncryptJS.mode.ECB, padding: AesEncryptJS.pad.Pkcs7 })
11
+ const key = CryptoJS.enc.Utf8.parse(encryKey)
12
+ const srcs = CryptoJS.enc.Utf8.parse(word)
13
+ const encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 })
15
14
  return encrypted.toString()
16
15
  },
17
16
  /**
@@ -20,9 +19,9 @@ export default {
20
19
  * @returns {*}
21
20
  */
22
21
  AESDecrypt (word, encryKey) {
23
- const key = AesEncryptJS.enc.Utf8.parse(encryKey)
24
- const decrypt = AesEncryptJS.AES.decrypt(word, key, { mode: AesEncryptJS.mode.ECB, padding: AesEncryptJS.pad.Pkcs7 })
25
- const ret = AesEncryptJS.enc.Utf8.stringify(decrypt).toString()
22
+ const key = CryptoJS.enc.Utf8.parse(encryKey)
23
+ const decrypt = CryptoJS.AES.decrypt(word, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 })
24
+ const ret = CryptoJS.enc.Utf8.stringify(decrypt).toString()
26
25
  try {
27
26
  return JSON.parse(ret)
28
27
  } catch (e) {
package/.babelrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "presets": ["@babel/preset-env"]
3
- }