@bash0816/claude-code 2.1.202 → 2.1.203
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/README.md
CHANGED
|
@@ -427,6 +427,15 @@
|
|
|
427
427
|
"entry_end_offset": 256775735,
|
|
428
428
|
"tarball_integrity": "sha512-9UBnDApKhqiUT3iX3i4hU8P4BztWvQkM5ZiLNBXPS4B9yBRrTc68fYG/I3WxC7Gt/+cV5ekTSGf8GUmMVpoERQ==",
|
|
429
429
|
"tarball_sha256": "046411b9737e1bcb1c811e28c5278550a560062029411061dc559e23e77660e7",
|
|
430
|
+
"status": "termux_verified"
|
|
431
|
+
},
|
|
432
|
+
"2.1.203": {
|
|
433
|
+
"wrapper_spec": "@anthropic-ai/claude-code@2.1.203",
|
|
434
|
+
"native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.203",
|
|
435
|
+
"entry_js_offset": 229114740,
|
|
436
|
+
"entry_end_offset": 248210622,
|
|
437
|
+
"tarball_integrity": "sha512-xJKtMGZRG+pe2rWV3Ozg9vi9pyWnbcMoLUlxxou/4mthp7w0g6r51SyKDbJMKh/cuzIYT69A/Tb6hIqqPqYZWQ==",
|
|
438
|
+
"tarball_sha256": "24d35434ab219fd166a5a735347bbe7144fa55e4f522d6c649a7454ee3f4b22e",
|
|
430
439
|
"status": "offset_discovered"
|
|
431
440
|
}
|
|
432
441
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 1,
|
|
3
3
|
"package_name": "@bash0816/claude-code",
|
|
4
|
-
"latest_audited_version": "2.1.
|
|
5
|
-
"latest_candidate_version": "2.1.
|
|
6
|
-
"previous_stable_version": "2.1.
|
|
4
|
+
"latest_audited_version": "2.1.202",
|
|
5
|
+
"latest_candidate_version": "2.1.203",
|
|
6
|
+
"previous_stable_version": "2.1.201",
|
|
7
7
|
"stable_pinned_version": "2.1.193",
|
|
8
8
|
"manifest_url": "https://raw.githubusercontent.com/bash0816/ClaudeCode-Termux/main/config/claude-termux-release-manifest.json"
|
|
9
9
|
}
|
|
@@ -594,12 +594,18 @@ function rewriteNativeChunkSource(source) {
|
|
|
594
594
|
'Bun property access',
|
|
595
595
|
_bunPropertyAccessExpected,
|
|
596
596
|
);
|
|
597
|
+
const _npmInstallDeprecatedExpected = (() => {
|
|
598
|
+
const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
|
|
599
|
+
const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
600
|
+
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 203)) return 2;
|
|
601
|
+
return 1;
|
|
602
|
+
})();
|
|
597
603
|
patched = replaceRequired(
|
|
598
604
|
patched,
|
|
599
605
|
/\bnpmInstallDeprecated:!0\b/g,
|
|
600
606
|
'npmInstallDeprecated:!1',
|
|
601
607
|
'npmInstallDeprecated flag',
|
|
602
|
-
|
|
608
|
+
_npmInstallDeprecatedExpected,
|
|
603
609
|
);
|
|
604
610
|
return patched;
|
|
605
611
|
}
|
|
@@ -1278,12 +1284,18 @@ function rewriteNativeChunkSource(source) {
|
|
|
1278
1284
|
'Bun property access',
|
|
1279
1285
|
_bunPropertyAccessExpected,
|
|
1280
1286
|
);
|
|
1287
|
+
const _npmInstallDeprecatedExpected = (() => {
|
|
1288
|
+
const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
|
|
1289
|
+
const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
1290
|
+
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 203)) return 2;
|
|
1291
|
+
return 1;
|
|
1292
|
+
})();
|
|
1281
1293
|
patched = replaceRequired(
|
|
1282
1294
|
patched,
|
|
1283
1295
|
/\bnpmInstallDeprecated:!0\b/g,
|
|
1284
1296
|
'npmInstallDeprecated:!1',
|
|
1285
1297
|
'npmInstallDeprecated flag',
|
|
1286
|
-
|
|
1298
|
+
_npmInstallDeprecatedExpected,
|
|
1287
1299
|
);
|
|
1288
1300
|
return patched;
|
|
1289
1301
|
}
|
|
@@ -344,6 +344,27 @@ test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.
|
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
346
|
|
|
347
|
+
test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.203)', () => {
|
|
348
|
+
process.env.CURRENT_CLAUDE_VERSION = '2.1.203';
|
|
349
|
+
try {
|
|
350
|
+
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
351
|
+
const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
|
|
352
|
+
const bunProps = Array.from({ length: 41 }, (_, index) => `Bun.p${index}`).join('; ');
|
|
353
|
+
const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0; npmInstallDeprecated:!0 }`;
|
|
354
|
+
const patched = rewriteNativeChunkSource(source);
|
|
355
|
+
|
|
356
|
+
assert.match(patched, /var __claudeBun = globalThis\.__claudeBunShim;/);
|
|
357
|
+
assert.match(patched, /typeof __claudeBun/);
|
|
358
|
+
assert.match(patched, /typeof globalThis\.__claudeBun/);
|
|
359
|
+
assert.match(patched, /globalThis\.__claudeBun/);
|
|
360
|
+
assert.match(patched, /__claudeBun\./);
|
|
361
|
+
assert.match(patched, /npmInstallDeprecated:!1/);
|
|
362
|
+
assert.doesNotMatch(patched, /npmInstallDeprecated:!0/);
|
|
363
|
+
} finally {
|
|
364
|
+
delete process.env.CURRENT_CLAUDE_VERSION;
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
|
|
347
368
|
test('rewriteNativeChunkSource rejects unexpected replacement counts', () => {
|
|
348
369
|
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
349
370
|
const source = buildSyntheticBundleSource().replace('Bun.p30;', '');
|