@chinachu/aribts
Advanced tools
Comparing version 1.3.5-mirakurun.15 to 1.3.5-mirakurun.16
@@ -228,3 +228,3 @@ "use strict"; | ||
case charCode.symbol: | ||
case charCode.kanji: { | ||
case charCode.kanji: | ||
const first = this.getNext() & 0x7F; | ||
@@ -243,3 +243,2 @@ const second = this.getNext() & 0x7F; | ||
break; | ||
} | ||
} | ||
@@ -257,3 +256,9 @@ break; | ||
const byte3 = this.getNext(); | ||
if (byte3 === 0x20) { | ||
if (byte2 === 0x2A && byte3 === 0x3B) { | ||
this.getNext(); | ||
this.getNext(); | ||
this.getNext(); | ||
this.getNext(); | ||
} | ||
else if (byte3 === 0x20) { | ||
const byte4 = this.getNext(); | ||
@@ -260,0 +265,0 @@ this.graphic[byte2 - 0x28] = byte4; |
@@ -5,3 +5,3 @@ "use strict"; | ||
const crc32_table_1 = require("./crc32_table"); | ||
let _calc = function (buffer) { | ||
const calc = function (buffer) { | ||
let crc = -1; | ||
@@ -15,3 +15,4 @@ let i = 0; | ||
}; | ||
let _calcToBuffer = function (buffer) { | ||
exports.calc = calc; | ||
const calcToBuffer = function (buffer) { | ||
let result = Buffer.alloc(4); | ||
@@ -21,12 +22,3 @@ result.writeInt32BE((0, exports.calc)(buffer), 0); | ||
}; | ||
try { | ||
const napiTsCrc32 = require("@chinachu/napi-ts-crc32"); | ||
_calc = napiTsCrc32.calc; | ||
_calcToBuffer = napiTsCrc32.calcToBuffer; | ||
} | ||
catch (e) { | ||
console.warn("@chinachu/aribts", "crc32:", "fallback to legacy"); | ||
} | ||
exports.calc = _calc; | ||
exports.calcToBuffer = _calcToBuffer; | ||
exports.calcToBuffer = calcToBuffer; | ||
//# sourceMappingURL=crc32.js.map |
{ | ||
"name": "@chinachu/aribts", | ||
"version": "1.3.5-mirakurun.15", | ||
"version": "1.3.5-mirakurun.16", | ||
"description": "MPEG-2 TS Stream Tool for node", | ||
@@ -21,13 +21,6 @@ "main": "lib/index.js", | ||
"@node-rs/crc32": "^1.2.1", | ||
"bindings": "^1.5.0", | ||
"iconv-lite": "^0.6.3", | ||
"node-addon-api": "^4.1.0" | ||
"iconv-lite": "^0.6.3" | ||
}, | ||
"optionalDependencies": { | ||
"@chinachu/napi-ts-crc32": "file:./packages/napi-ts-crc32" | ||
}, | ||
"devDependencies": { | ||
"@types/bindings": "^1.5.1", | ||
"@types/node": "^12.20.19", | ||
"mocha": "^9.1.1", | ||
"rimraf": "^3.0.2", | ||
@@ -34,0 +27,0 @@ "typescript": "^4.3.5" |
@@ -27,6 +27,3 @@ { | ||
"src/**/*" | ||
], | ||
"references": [ | ||
{ "path": "packages/napi-ts-crc32" } | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
2
3
0
899285
421
16803
- Removedbindings@^1.5.0
- Removednode-addon-api@^4.1.0
- Removedbindings@1.5.0(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removednode-addon-api@4.3.0(transitive)