@solana/web3.js 1.77.0 → 1.77.2
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/lib/index.browser.cjs.js +10 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +10 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +10 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +10 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +10 -2
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +2 -2
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +10 -2
- package/lib/index.native.js.map +1 -1
- package/package.json +5 -5
- package/src/errors.ts +1 -1
- package/src/transaction/legacy.ts +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/web3.js",
|
|
3
|
-
"version": "1.77.
|
|
3
|
+
"version": "1.77.2",
|
|
4
4
|
"description": "Solana Javascript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -108,11 +108,11 @@
|
|
|
108
108
|
"eslint-plugin-prettier": "^4.2.1",
|
|
109
109
|
"esm": "^3.2.25",
|
|
110
110
|
"mocha": "^10.1.0",
|
|
111
|
-
"mockttp": "^3.
|
|
111
|
+
"mockttp": "^3.7.5",
|
|
112
112
|
"mz": "^2.7.0",
|
|
113
113
|
"node-abort-controller": "^3.0.1",
|
|
114
|
-
"prettier": "^2.
|
|
115
|
-
"rimraf": "
|
|
114
|
+
"prettier": "^2.8.8",
|
|
115
|
+
"rimraf": "5.0.1",
|
|
116
116
|
"rollup": "^3.20.2",
|
|
117
117
|
"rollup-plugin-dts": "^5.3.0",
|
|
118
118
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"ts-mocha": "^10.0.0",
|
|
124
124
|
"ts-node": "^10.0.0",
|
|
125
125
|
"tsconfig": "workspace:*",
|
|
126
|
-
"tslib": "^2.
|
|
126
|
+
"tslib": "^2.5.2",
|
|
127
127
|
"typedoc": "^0.23.28",
|
|
128
128
|
"typescript": "^5.0.3"
|
|
129
129
|
}
|
package/src/errors.ts
CHANGED
|
@@ -29,7 +29,7 @@ export const SolanaJSONRPCErrorCode = {
|
|
|
29
29
|
JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED: -32016,
|
|
30
30
|
} as const;
|
|
31
31
|
export type SolanaJSONRPCErrorCodeEnum =
|
|
32
|
-
typeof SolanaJSONRPCErrorCode[keyof typeof SolanaJSONRPCErrorCode];
|
|
32
|
+
(typeof SolanaJSONRPCErrorCode)[keyof typeof SolanaJSONRPCErrorCode];
|
|
33
33
|
|
|
34
34
|
export class SolanaJSONRPCError extends Error {
|
|
35
35
|
code: SolanaJSONRPCErrorCodeEnum | unknown;
|
|
@@ -457,7 +457,17 @@ export class Transaction {
|
|
|
457
457
|
return x.isWritable ? -1 : 1;
|
|
458
458
|
}
|
|
459
459
|
// Otherwise, sort by pubkey, stringwise.
|
|
460
|
-
|
|
460
|
+
const options = {
|
|
461
|
+
localeMatcher: 'best fit',
|
|
462
|
+
usage: 'sort',
|
|
463
|
+
sensitivity: 'variant',
|
|
464
|
+
ignorePunctuation: false,
|
|
465
|
+
numeric: false,
|
|
466
|
+
caseFirst: 'lower',
|
|
467
|
+
};
|
|
468
|
+
return x.pubkey
|
|
469
|
+
.toBase58()
|
|
470
|
+
.localeCompare(y.pubkey.toBase58(), 'en', options);
|
|
461
471
|
});
|
|
462
472
|
|
|
463
473
|
// Move fee payer to the front
|