Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Long committed Jan 29, 2024
1 parent b4a6009 commit bc5a099
Show file tree
Hide file tree
Showing 32 changed files with 91 additions and 102 deletions.
62 changes: 30 additions & 32 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/access-control-conditions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/auth-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/auth-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/bls-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
24 changes: 12 additions & 12 deletions packages/constants/src/lib/constants/autogen_internal.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Last Modified: 2024-01-29 17:42:22
// This file is auto-generated by tools/scripts/gen-internal-dev.mjs
// Last Modified: 2024-01-29 17:42:22
// This file is auto-generated by tools/scripts/gen-internal-dev.mjs
export const INTERNAL_DEV = [
"https://167.114.17.204:443",
"https://199.115.117.115:443",
"https://64.131.85.106:443",
"https://167.114.17.202:443"
'https://167.114.17.204:443',
'https://199.115.117.115:443',
'https://64.131.85.106:443',
'https://167.114.17.202:443',
];

export const INTERNAL_MIN_NODE_COUNT = 2;
Expand All @@ -14,11 +14,11 @@ export const INTERNAL_DEFAULT_CONFIG = {
minNodeCount: 2,
debug: true,
bootstrapUrls: [
"https://167.114.17.204:443",
"https://199.115.117.115:443",
"https://64.131.85.106:443",
"https://167.114.17.202:443"
],
'https://167.114.17.204:443',
'https://199.115.117.115:443',
'https://64.131.85.106:443',
'https://167.114.17.202:443',
],
litNetwork: 'internalDev',
connectTimeout: 20000,
};
};
2 changes: 1 addition & 1 deletion packages/contracts-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
22 changes: 11 additions & 11 deletions packages/contracts-sdk/src/abis/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export * from "./StakingBalances.sol/StakingBalances.ts";
export * from "./Staking.sol/Staking.ts";
export * from "./Multisender.sol/Multisender.ts";
export * from "./LITToken.sol/LITToken.ts";
export * from "./PubkeyRouter.sol/PubkeyRouter.ts";
export * from "./PKPNFT.sol/PKPNFT.ts";
export * from "./RateLimitNFT.sol/RateLimitNFT.ts";
export * from "./PKPHelper.sol/PKPHelper.ts";
export * from "./PKPPermissions.sol/PKPPermissions.ts";
export * from "./PKPNFTMetadata.sol/PKPNFTMetadata.ts";
export * from "./Allowlist.sol/Allowlist.ts";
export * from './StakingBalances.sol/StakingBalances.ts';
export * from './Staking.sol/Staking.ts';
export * from './Multisender.sol/Multisender.ts';
export * from './LITToken.sol/LITToken.ts';
export * from './PubkeyRouter.sol/PubkeyRouter.ts';
export * from './PKPNFT.sol/PKPNFT.ts';
export * from './RateLimitNFT.sol/RateLimitNFT.ts';
export * from './PKPHelper.sol/PKPHelper.ts';
export * from './PKPPermissions.sol/PKPPermissions.ts';
export * from './PKPNFTMetadata.sol/PKPNFTMetadata.ts';
export * from './Allowlist.sol/Allowlist.ts';
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
],
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/ecdsa-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/lit-auth-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
},
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/lit-node-client-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/lit-node-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
},
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/logger/src/lib/logger.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('logger', () => {
for (let i = 0; i < count; i++) {
const logger = lm.get('' + i, 'foo4');
logger.setLevel(LogLevel.OFF);
logger.debug(i + "");
logger.debug(i + '');
}

expect(lm.getLogsForId('foo4').length).toEqual(count);
Expand Down
14 changes: 7 additions & 7 deletions packages/logger/src/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,21 +346,19 @@ export class Logger {

private _addToLocalStorage(log: Log) {
if (globalThis.localStorage) {
let bucket: { [index: string]: string[] } | string | null = globalThis.localStorage.getItem(log.category);
let bucket: { [index: string]: string[] } | string | null =
globalThis.localStorage.getItem(log.category);
if (bucket) {
bucket = JSON.parse(bucket) as { [index: string]: string[] };
if(!bucket[log.id]) {
if (!bucket[log.id]) {
bucket[log.id] = [];
}
bucket[log.id].push(log.toString());
globalThis.localStorage.setItem(log.category, _safeStringify(bucket));
} else {
const bucket: { [index: string]: string[] } = {};
bucket[log.id] = [log.toString()];
globalThis.localStorage.setItem(
log.category,
_safeStringify(bucket)
);
globalThis.localStorage.setItem(log.category, _safeStringify(bucket));
}
}
}
Expand Down Expand Up @@ -475,7 +473,9 @@ export class LogManager {
for (const category of this._loggers.keys()) {
let bucketStr: string | null =
globalThis.localStorage.getItem(category);
let bucket: { [key: string]: string[] } = JSON.parse(bucketStr as string);
let bucket: { [key: string]: string[] } = JSON.parse(
bucketStr as string
);
const logsForId: string[] = bucket[id].filter((log: string) =>
log.includes(id)
);
Expand Down
2 changes: 1 addition & 1 deletion packages/misc-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/misc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/nacl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/pkp-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
],
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/pkp-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
],
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/pkp-cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
],
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/pkp-ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/pkp-sui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
],
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/pkp-walletconnect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
],
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/sev-snp-utils-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/uint8arrays/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"version": "3.0.32",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
}
17 changes: 4 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,15 @@
"importHelpers": true,
"target": "ES2020",
"module": "ES2020",
"lib": [
"ES2020",
"dom",
"ES2021.String"
],
"lib": ["ES2020", "dom", "ES2021.String"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"paths": {
"@lit-protocol/*": [
"packages/*/src"
]
"@lit-protocol/*": ["packages/*/src"]
}
},
"exclude": [
"node_modules",
"tmp"
]
}
"exclude": ["node_modules", "tmp"]
}

0 comments on commit bc5a099

Please sign in to comment.