@bash0816/claude-code 2.1.201 → 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
|
@@ -418,6 +418,24 @@
|
|
|
418
418
|
"entry_end_offset": 246293196,
|
|
419
419
|
"tarball_integrity": "sha512-3/5r/T5+zb8oxhkoO6nGNfaSpmRxCKfDxMx1oIEXVUhjXhqGCP1DAp+DgL5o76HaJgerL9euBKxSNuDiDAfrjg==",
|
|
420
420
|
"tarball_sha256": "f8e1966c35b1cd48445399eb17258d8619329ce2db48cfe4f335857d83e81c7d",
|
|
421
|
+
"status": "termux_verified"
|
|
422
|
+
},
|
|
423
|
+
"2.1.202": {
|
|
424
|
+
"wrapper_spec": "@anthropic-ai/claude-code@2.1.202",
|
|
425
|
+
"native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.202",
|
|
426
|
+
"entry_js_offset": 234690308,
|
|
427
|
+
"entry_end_offset": 256775735,
|
|
428
|
+
"tarball_integrity": "sha512-9UBnDApKhqiUT3iX3i4hU8P4BztWvQkM5ZiLNBXPS4B9yBRrTc68fYG/I3WxC7Gt/+cV5ekTSGf8GUmMVpoERQ==",
|
|
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",
|
|
421
439
|
"status": "offset_discovered"
|
|
422
440
|
}
|
|
423
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.
|
|
7
|
-
"stable_pinned_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
|
+
"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
|
}
|
|
@@ -583,6 +583,7 @@ function rewriteNativeChunkSource(source) {
|
|
|
583
583
|
const _bunPropertyAccessExpected = (() => {
|
|
584
584
|
const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
|
|
585
585
|
const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
586
|
+
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 202)) return 41;
|
|
586
587
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 200)) return 40;
|
|
587
588
|
return 37;
|
|
588
589
|
})();
|
|
@@ -593,12 +594,18 @@ function rewriteNativeChunkSource(source) {
|
|
|
593
594
|
'Bun property access',
|
|
594
595
|
_bunPropertyAccessExpected,
|
|
595
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
|
+
})();
|
|
596
603
|
patched = replaceRequired(
|
|
597
604
|
patched,
|
|
598
605
|
/\bnpmInstallDeprecated:!0\b/g,
|
|
599
606
|
'npmInstallDeprecated:!1',
|
|
600
607
|
'npmInstallDeprecated flag',
|
|
601
|
-
|
|
608
|
+
_npmInstallDeprecatedExpected,
|
|
602
609
|
);
|
|
603
610
|
return patched;
|
|
604
611
|
}
|
|
@@ -1266,6 +1273,7 @@ function rewriteNativeChunkSource(source) {
|
|
|
1266
1273
|
const _bunPropertyAccessExpected = (() => {
|
|
1267
1274
|
const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
|
|
1268
1275
|
const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
1276
|
+
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 202)) return 41;
|
|
1269
1277
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 200)) return 40;
|
|
1270
1278
|
return 37;
|
|
1271
1279
|
})();
|
|
@@ -1276,12 +1284,18 @@ function rewriteNativeChunkSource(source) {
|
|
|
1276
1284
|
'Bun property access',
|
|
1277
1285
|
_bunPropertyAccessExpected,
|
|
1278
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
|
+
})();
|
|
1279
1293
|
patched = replaceRequired(
|
|
1280
1294
|
patched,
|
|
1281
1295
|
/\bnpmInstallDeprecated:!0\b/g,
|
|
1282
1296
|
'npmInstallDeprecated:!1',
|
|
1283
1297
|
'npmInstallDeprecated flag',
|
|
1284
|
-
|
|
1298
|
+
_npmInstallDeprecatedExpected,
|
|
1285
1299
|
);
|
|
1286
1300
|
return patched;
|
|
1287
1301
|
}
|
|
@@ -323,6 +323,48 @@ test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.
|
|
|
323
323
|
}
|
|
324
324
|
});
|
|
325
325
|
|
|
326
|
+
test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.202)', () => {
|
|
327
|
+
process.env.CURRENT_CLAUDE_VERSION = '2.1.202';
|
|
328
|
+
try {
|
|
329
|
+
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
330
|
+
const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
|
|
331
|
+
const bunProps = Array.from({ length: 41 }, (_, index) => `Bun.p${index}`).join('; ');
|
|
332
|
+
const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0 }`;
|
|
333
|
+
const patched = rewriteNativeChunkSource(source);
|
|
334
|
+
|
|
335
|
+
assert.match(patched, /var __claudeBun = globalThis\.__claudeBunShim;/);
|
|
336
|
+
assert.match(patched, /typeof __claudeBun/);
|
|
337
|
+
assert.match(patched, /typeof globalThis\.__claudeBun/);
|
|
338
|
+
assert.match(patched, /globalThis\.__claudeBun/);
|
|
339
|
+
assert.match(patched, /__claudeBun\./);
|
|
340
|
+
assert.match(patched, /npmInstallDeprecated:!1/);
|
|
341
|
+
assert.doesNotMatch(patched, /npmInstallDeprecated:!0/);
|
|
342
|
+
} finally {
|
|
343
|
+
delete process.env.CURRENT_CLAUDE_VERSION;
|
|
344
|
+
}
|
|
345
|
+
});
|
|
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
|
+
|
|
326
368
|
test('rewriteNativeChunkSource rejects unexpected replacement counts', () => {
|
|
327
369
|
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
328
370
|
const source = buildSyntheticBundleSource().replace('Bun.p30;', '');
|