@0xtorch/csv 0.0.7 → 0.0.9
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/_cjs/test.js +4 -4
- package/_cjs/test.js.map +1 -1
- package/_esm/test.js +4 -4
- package/_esm/test.js.map +1 -1
- package/_types/schemas/parser.d.ts +9 -9
- package/_types/schemas/schemas.d.ts +5 -5
- package/_types/test.d.ts.map +1 -1
- package/package.json +2 -5
- package/test.ts +8 -4
package/_cjs/test.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IS_DEBUG = exports.IS_LARGE_TEST = exports.IS_MEDIUM_TEST = exports.IS_SMALL_TEST = void 0;
|
|
4
|
-
exports.IS_SMALL_TEST = (process.env.TEST_SIZE ?? '').includes('S');
|
|
5
|
-
exports.IS_MEDIUM_TEST = (process.env.TEST_SIZE ?? '').includes('M');
|
|
6
|
-
exports.IS_LARGE_TEST = (process.env.TEST_SIZE ?? '').includes('L');
|
|
7
|
-
exports.IS_DEBUG = (process.env.DEBUG ?? '').length > 0;
|
|
4
|
+
exports.IS_SMALL_TEST = process !== undefined && (process.env.TEST_SIZE ?? '').includes('S');
|
|
5
|
+
exports.IS_MEDIUM_TEST = process !== undefined && (process.env.TEST_SIZE ?? '').includes('M');
|
|
6
|
+
exports.IS_LARGE_TEST = process !== undefined && (process.env.TEST_SIZE ?? '').includes('L');
|
|
7
|
+
exports.IS_DEBUG = process !== undefined && (process.env.DEBUG ?? '').length > 0;
|
|
8
8
|
//# sourceMappingURL=test.js.map
|
package/_cjs/test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GACxB,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAEzD,QAAA,cAAc,GACzB,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAEzD,QAAA,aAAa,GACxB,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAEzD,QAAA,QAAQ,GACnB,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAA"}
|
package/_esm/test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const IS_SMALL_TEST = (process.env.TEST_SIZE ?? '').includes('S');
|
|
2
|
-
export const IS_MEDIUM_TEST = (process.env.TEST_SIZE ?? '').includes('M');
|
|
3
|
-
export const IS_LARGE_TEST = (process.env.TEST_SIZE ?? '').includes('L');
|
|
4
|
-
export const IS_DEBUG = (process.env.DEBUG ?? '').length > 0;
|
|
1
|
+
export const IS_SMALL_TEST = process !== undefined && (process.env.TEST_SIZE ?? '').includes('S');
|
|
2
|
+
export const IS_MEDIUM_TEST = process !== undefined && (process.env.TEST_SIZE ?? '').includes('M');
|
|
3
|
+
export const IS_LARGE_TEST = process !== undefined && (process.env.TEST_SIZE ?? '').includes('L');
|
|
4
|
+
export const IS_DEBUG = process !== undefined && (process.env.DEBUG ?? '').length > 0;
|
|
5
5
|
//# sourceMappingURL=test.js.map
|
package/_esm/test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GACxB,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,cAAc,GACzB,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,aAAa,GACxB,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,QAAQ,GACnB,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAA"}
|
|
@@ -71,13 +71,13 @@ export declare const columnComponentSchema: z.ZodObject<{
|
|
|
71
71
|
}>;
|
|
72
72
|
export declare const actionComponentSchema: z.ZodObject<{
|
|
73
73
|
column: z.ZodString;
|
|
74
|
-
patterns: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"borrow">, z.ZodLiteral<"bridge-from">, z.ZodLiteral<"bridge-to">, z.ZodLiteral<"cross-replace">, z.ZodLiteral<"cross-trade">, z.ZodLiteral<"add-liquidity">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit-with-bond">, z.ZodLiteral<"stake">, z.ZodLiteral<"burn">, z.ZodLiteral<"derivative-fee">, z.ZodLiteral<"fee">, z.ZodLiteral<"interest-fee">, z.ZodLiteral<"pay">, z.ZodLiteral<"realize-loss">, z.ZodLiteral<"stolen">, z.ZodLiteral<"transaction-fee">, z.ZodLiteral<"approve">, z.ZodLiteral<"fail-tx">, z.ZodLiteral<"ignore">, z.ZodLiteral<"move">, z.ZodLiteral<"receive-from-cex">, z.ZodLiteral<"revoke">, z.ZodLiteral<"send-to-cex">, z.ZodLiteral<"spam">, z.ZodLiteral<"airdrop">, z.ZodLiteral<"cash-back">, z.ZodLiteral<"derivative-profit">, z.ZodLiteral<"free-mint">, z.ZodLiteral<"game-reward">, z.ZodLiteral<"gift">, z.ZodLiteral<"hardfork">, z.ZodLiteral<"income">, z.ZodLiteral<"interest">, z.ZodLiteral<"mining">, z.ZodLiteral<"nft-royalty">, z.ZodLiteral<"realize-profit">, z.ZodLiteral<"staking-reward">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"
|
|
74
|
+
patterns: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"borrow">, z.ZodLiteral<"bridge-from">, z.ZodLiteral<"bridge-to">, z.ZodLiteral<"cross-replace">, z.ZodLiteral<"cross-trade">, z.ZodLiteral<"add-liquidity">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit-with-bond">, z.ZodLiteral<"stake">, z.ZodLiteral<"burn">, z.ZodLiteral<"derivative-fee">, z.ZodLiteral<"fee">, z.ZodLiteral<"interest-fee">, z.ZodLiteral<"pay">, z.ZodLiteral<"realize-loss">, z.ZodLiteral<"stolen">, z.ZodLiteral<"transaction-fee">, z.ZodLiteral<"approve">, z.ZodLiteral<"fail-tx">, z.ZodLiteral<"ignore">, z.ZodLiteral<"move">, z.ZodLiteral<"receive-from-cex">, z.ZodLiteral<"revoke">, z.ZodLiteral<"send-to-cex">, z.ZodLiteral<"spam">, z.ZodLiteral<"airdrop">, z.ZodLiteral<"cash-back">, z.ZodLiteral<"derivative-profit">, z.ZodLiteral<"free-mint">, z.ZodLiteral<"game-reward">, z.ZodLiteral<"gift">, z.ZodLiteral<"hardfork">, z.ZodLiteral<"income">, z.ZodLiteral<"interest">, z.ZodLiteral<"mining">, z.ZodLiteral<"nft-royalty">, z.ZodLiteral<"realize-profit">, z.ZodLiteral<"staking-reward">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"repayment">, z.ZodLiteral<"replace">, z.ZodLiteral<"swap-nft">, z.ZodLiteral<"unwrap">, z.ZodLiteral<"wrap">, z.ZodLiteral<"atomic-arbitrage">, z.ZodLiteral<"buy-crypto">, z.ZodLiteral<"buy-nft">, z.ZodLiteral<"mint-nft">, z.ZodLiteral<"sell-crypto">, z.ZodLiteral<"sell-nft">, z.ZodLiteral<"trade">, z.ZodLiteral<"transfer">, z.ZodLiteral<"value-down">, z.ZodLiteral<"value-up">, z.ZodLiteral<"remove-liquidity">, z.ZodLiteral<"unstake">, z.ZodLiteral<"withdraw">, z.ZodLiteral<"withdraw-with-bond">]>>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
76
|
column: string;
|
|
77
|
-
patterns: Record<string, "
|
|
77
|
+
patterns: Record<string, "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond">;
|
|
78
78
|
}, {
|
|
79
79
|
column: string;
|
|
80
|
-
patterns: Record<string, "
|
|
80
|
+
patterns: Record<string, "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond">;
|
|
81
81
|
}>;
|
|
82
82
|
export declare const textComponentSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
83
83
|
type: z.ZodLiteral<"service">;
|
|
@@ -346,7 +346,7 @@ export declare const parserSchema: z.ZodObject<{
|
|
|
346
346
|
type: "not-in";
|
|
347
347
|
};
|
|
348
348
|
}>, "many">;
|
|
349
|
-
action: z.ZodUnion<[z.ZodLiteral<"borrow">, z.ZodLiteral<"bridge-from">, z.ZodLiteral<"bridge-to">, z.ZodLiteral<"cross-replace">, z.ZodLiteral<"cross-trade">, z.ZodLiteral<"add-liquidity">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit-with-bond">, z.ZodLiteral<"stake">, z.ZodLiteral<"burn">, z.ZodLiteral<"derivative-fee">, z.ZodLiteral<"fee">, z.ZodLiteral<"interest-fee">, z.ZodLiteral<"pay">, z.ZodLiteral<"realize-loss">, z.ZodLiteral<"stolen">, z.ZodLiteral<"transaction-fee">, z.ZodLiteral<"approve">, z.ZodLiteral<"fail-tx">, z.ZodLiteral<"ignore">, z.ZodLiteral<"move">, z.ZodLiteral<"receive-from-cex">, z.ZodLiteral<"revoke">, z.ZodLiteral<"send-to-cex">, z.ZodLiteral<"spam">, z.ZodLiteral<"airdrop">, z.ZodLiteral<"cash-back">, z.ZodLiteral<"derivative-profit">, z.ZodLiteral<"free-mint">, z.ZodLiteral<"game-reward">, z.ZodLiteral<"gift">, z.ZodLiteral<"hardfork">, z.ZodLiteral<"income">, z.ZodLiteral<"interest">, z.ZodLiteral<"mining">, z.ZodLiteral<"nft-royalty">, z.ZodLiteral<"realize-profit">, z.ZodLiteral<"staking-reward">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"
|
|
349
|
+
action: z.ZodUnion<[z.ZodLiteral<"borrow">, z.ZodLiteral<"bridge-from">, z.ZodLiteral<"bridge-to">, z.ZodLiteral<"cross-replace">, z.ZodLiteral<"cross-trade">, z.ZodLiteral<"add-liquidity">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit-with-bond">, z.ZodLiteral<"stake">, z.ZodLiteral<"burn">, z.ZodLiteral<"derivative-fee">, z.ZodLiteral<"fee">, z.ZodLiteral<"interest-fee">, z.ZodLiteral<"pay">, z.ZodLiteral<"realize-loss">, z.ZodLiteral<"stolen">, z.ZodLiteral<"transaction-fee">, z.ZodLiteral<"approve">, z.ZodLiteral<"fail-tx">, z.ZodLiteral<"ignore">, z.ZodLiteral<"move">, z.ZodLiteral<"receive-from-cex">, z.ZodLiteral<"revoke">, z.ZodLiteral<"send-to-cex">, z.ZodLiteral<"spam">, z.ZodLiteral<"airdrop">, z.ZodLiteral<"cash-back">, z.ZodLiteral<"derivative-profit">, z.ZodLiteral<"free-mint">, z.ZodLiteral<"game-reward">, z.ZodLiteral<"gift">, z.ZodLiteral<"hardfork">, z.ZodLiteral<"income">, z.ZodLiteral<"interest">, z.ZodLiteral<"mining">, z.ZodLiteral<"nft-royalty">, z.ZodLiteral<"realize-profit">, z.ZodLiteral<"staking-reward">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"repayment">, z.ZodLiteral<"replace">, z.ZodLiteral<"swap-nft">, z.ZodLiteral<"unwrap">, z.ZodLiteral<"wrap">, z.ZodLiteral<"atomic-arbitrage">, z.ZodLiteral<"buy-crypto">, z.ZodLiteral<"buy-nft">, z.ZodLiteral<"mint-nft">, z.ZodLiteral<"sell-crypto">, z.ZodLiteral<"sell-nft">, z.ZodLiteral<"trade">, z.ZodLiteral<"transfer">, z.ZodLiteral<"value-down">, z.ZodLiteral<"value-up">, z.ZodLiteral<"remove-liquidity">, z.ZodLiteral<"unstake">, z.ZodLiteral<"withdraw">, z.ZodLiteral<"withdraw-with-bond">]>;
|
|
350
350
|
/** 指定した値群を結合して作成したテキストを代入 */
|
|
351
351
|
source: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
352
352
|
type: z.ZodLiteral<"service">;
|
|
@@ -567,7 +567,7 @@ export declare const parserSchema: z.ZodObject<{
|
|
|
567
567
|
type: "not-in";
|
|
568
568
|
};
|
|
569
569
|
}[];
|
|
570
|
-
action: "
|
|
570
|
+
action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
|
|
571
571
|
source: (string | {
|
|
572
572
|
type: "column";
|
|
573
573
|
column: string;
|
|
@@ -638,7 +638,7 @@ export declare const parserSchema: z.ZodObject<{
|
|
|
638
638
|
type: "not-in";
|
|
639
639
|
};
|
|
640
640
|
}[];
|
|
641
|
-
action: "
|
|
641
|
+
action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
|
|
642
642
|
source: (string | {
|
|
643
643
|
type: "column";
|
|
644
644
|
column: string;
|
|
@@ -756,7 +756,7 @@ export declare const parsersSchema: z.ZodArray<z.ZodObject<{
|
|
|
756
756
|
type: "not-in";
|
|
757
757
|
};
|
|
758
758
|
}>, "many">;
|
|
759
|
-
action: z.ZodUnion<[z.ZodLiteral<"borrow">, z.ZodLiteral<"bridge-from">, z.ZodLiteral<"bridge-to">, z.ZodLiteral<"cross-replace">, z.ZodLiteral<"cross-trade">, z.ZodLiteral<"add-liquidity">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit-with-bond">, z.ZodLiteral<"stake">, z.ZodLiteral<"burn">, z.ZodLiteral<"derivative-fee">, z.ZodLiteral<"fee">, z.ZodLiteral<"interest-fee">, z.ZodLiteral<"pay">, z.ZodLiteral<"realize-loss">, z.ZodLiteral<"stolen">, z.ZodLiteral<"transaction-fee">, z.ZodLiteral<"approve">, z.ZodLiteral<"fail-tx">, z.ZodLiteral<"ignore">, z.ZodLiteral<"move">, z.ZodLiteral<"receive-from-cex">, z.ZodLiteral<"revoke">, z.ZodLiteral<"send-to-cex">, z.ZodLiteral<"spam">, z.ZodLiteral<"airdrop">, z.ZodLiteral<"cash-back">, z.ZodLiteral<"derivative-profit">, z.ZodLiteral<"free-mint">, z.ZodLiteral<"game-reward">, z.ZodLiteral<"gift">, z.ZodLiteral<"hardfork">, z.ZodLiteral<"income">, z.ZodLiteral<"interest">, z.ZodLiteral<"mining">, z.ZodLiteral<"nft-royalty">, z.ZodLiteral<"realize-profit">, z.ZodLiteral<"staking-reward">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"
|
|
759
|
+
action: z.ZodUnion<[z.ZodLiteral<"borrow">, z.ZodLiteral<"bridge-from">, z.ZodLiteral<"bridge-to">, z.ZodLiteral<"cross-replace">, z.ZodLiteral<"cross-trade">, z.ZodLiteral<"add-liquidity">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit-with-bond">, z.ZodLiteral<"stake">, z.ZodLiteral<"burn">, z.ZodLiteral<"derivative-fee">, z.ZodLiteral<"fee">, z.ZodLiteral<"interest-fee">, z.ZodLiteral<"pay">, z.ZodLiteral<"realize-loss">, z.ZodLiteral<"stolen">, z.ZodLiteral<"transaction-fee">, z.ZodLiteral<"approve">, z.ZodLiteral<"fail-tx">, z.ZodLiteral<"ignore">, z.ZodLiteral<"move">, z.ZodLiteral<"receive-from-cex">, z.ZodLiteral<"revoke">, z.ZodLiteral<"send-to-cex">, z.ZodLiteral<"spam">, z.ZodLiteral<"airdrop">, z.ZodLiteral<"cash-back">, z.ZodLiteral<"derivative-profit">, z.ZodLiteral<"free-mint">, z.ZodLiteral<"game-reward">, z.ZodLiteral<"gift">, z.ZodLiteral<"hardfork">, z.ZodLiteral<"income">, z.ZodLiteral<"interest">, z.ZodLiteral<"mining">, z.ZodLiteral<"nft-royalty">, z.ZodLiteral<"realize-profit">, z.ZodLiteral<"staking-reward">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"repayment">, z.ZodLiteral<"replace">, z.ZodLiteral<"swap-nft">, z.ZodLiteral<"unwrap">, z.ZodLiteral<"wrap">, z.ZodLiteral<"atomic-arbitrage">, z.ZodLiteral<"buy-crypto">, z.ZodLiteral<"buy-nft">, z.ZodLiteral<"mint-nft">, z.ZodLiteral<"sell-crypto">, z.ZodLiteral<"sell-nft">, z.ZodLiteral<"trade">, z.ZodLiteral<"transfer">, z.ZodLiteral<"value-down">, z.ZodLiteral<"value-up">, z.ZodLiteral<"remove-liquidity">, z.ZodLiteral<"unstake">, z.ZodLiteral<"withdraw">, z.ZodLiteral<"withdraw-with-bond">]>;
|
|
760
760
|
/** 指定した値群を結合して作成したテキストを代入 */
|
|
761
761
|
source: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
762
762
|
type: z.ZodLiteral<"service">;
|
|
@@ -977,7 +977,7 @@ export declare const parsersSchema: z.ZodArray<z.ZodObject<{
|
|
|
977
977
|
type: "not-in";
|
|
978
978
|
};
|
|
979
979
|
}[];
|
|
980
|
-
action: "
|
|
980
|
+
action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
|
|
981
981
|
source: (string | {
|
|
982
982
|
type: "column";
|
|
983
983
|
column: string;
|
|
@@ -1048,7 +1048,7 @@ export declare const parsersSchema: z.ZodArray<z.ZodObject<{
|
|
|
1048
1048
|
type: "not-in";
|
|
1049
1049
|
};
|
|
1050
1050
|
}[];
|
|
1051
|
-
action: "
|
|
1051
|
+
action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
|
|
1052
1052
|
source: (string | {
|
|
1053
1053
|
type: "column";
|
|
1054
1054
|
column: string;
|
|
@@ -64,7 +64,7 @@ export declare const csvFormatSchema: z.ZodObject<{
|
|
|
64
64
|
type: "not-in";
|
|
65
65
|
};
|
|
66
66
|
}>, "many">;
|
|
67
|
-
action: z.ZodUnion<[z.ZodLiteral<"borrow">, z.ZodLiteral<"bridge-from">, z.ZodLiteral<"bridge-to">, z.ZodLiteral<"cross-replace">, z.ZodLiteral<"cross-trade">, z.ZodLiteral<"add-liquidity">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit-with-bond">, z.ZodLiteral<"stake">, z.ZodLiteral<"burn">, z.ZodLiteral<"derivative-fee">, z.ZodLiteral<"fee">, z.ZodLiteral<"interest-fee">, z.ZodLiteral<"pay">, z.ZodLiteral<"realize-loss">, z.ZodLiteral<"stolen">, z.ZodLiteral<"transaction-fee">, z.ZodLiteral<"approve">, z.ZodLiteral<"fail-tx">, z.ZodLiteral<"ignore">, z.ZodLiteral<"move">, z.ZodLiteral<"receive-from-cex">, z.ZodLiteral<"revoke">, z.ZodLiteral<"send-to-cex">, z.ZodLiteral<"spam">, z.ZodLiteral<"airdrop">, z.ZodLiteral<"cash-back">, z.ZodLiteral<"derivative-profit">, z.ZodLiteral<"free-mint">, z.ZodLiteral<"game-reward">, z.ZodLiteral<"gift">, z.ZodLiteral<"hardfork">, z.ZodLiteral<"income">, z.ZodLiteral<"interest">, z.ZodLiteral<"mining">, z.ZodLiteral<"nft-royalty">, z.ZodLiteral<"realize-profit">, z.ZodLiteral<"staking-reward">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"
|
|
67
|
+
action: z.ZodUnion<[z.ZodLiteral<"borrow">, z.ZodLiteral<"bridge-from">, z.ZodLiteral<"bridge-to">, z.ZodLiteral<"cross-replace">, z.ZodLiteral<"cross-trade">, z.ZodLiteral<"add-liquidity">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit-with-bond">, z.ZodLiteral<"stake">, z.ZodLiteral<"burn">, z.ZodLiteral<"derivative-fee">, z.ZodLiteral<"fee">, z.ZodLiteral<"interest-fee">, z.ZodLiteral<"pay">, z.ZodLiteral<"realize-loss">, z.ZodLiteral<"stolen">, z.ZodLiteral<"transaction-fee">, z.ZodLiteral<"approve">, z.ZodLiteral<"fail-tx">, z.ZodLiteral<"ignore">, z.ZodLiteral<"move">, z.ZodLiteral<"receive-from-cex">, z.ZodLiteral<"revoke">, z.ZodLiteral<"send-to-cex">, z.ZodLiteral<"spam">, z.ZodLiteral<"airdrop">, z.ZodLiteral<"cash-back">, z.ZodLiteral<"derivative-profit">, z.ZodLiteral<"free-mint">, z.ZodLiteral<"game-reward">, z.ZodLiteral<"gift">, z.ZodLiteral<"hardfork">, z.ZodLiteral<"income">, z.ZodLiteral<"interest">, z.ZodLiteral<"mining">, z.ZodLiteral<"nft-royalty">, z.ZodLiteral<"realize-profit">, z.ZodLiteral<"staking-reward">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"repayment">, z.ZodLiteral<"replace">, z.ZodLiteral<"swap-nft">, z.ZodLiteral<"unwrap">, z.ZodLiteral<"wrap">, z.ZodLiteral<"atomic-arbitrage">, z.ZodLiteral<"buy-crypto">, z.ZodLiteral<"buy-nft">, z.ZodLiteral<"mint-nft">, z.ZodLiteral<"sell-crypto">, z.ZodLiteral<"sell-nft">, z.ZodLiteral<"trade">, z.ZodLiteral<"transfer">, z.ZodLiteral<"value-down">, z.ZodLiteral<"value-up">, z.ZodLiteral<"remove-liquidity">, z.ZodLiteral<"unstake">, z.ZodLiteral<"withdraw">, z.ZodLiteral<"withdraw-with-bond">]>;
|
|
68
68
|
source: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
69
69
|
type: z.ZodLiteral<"service">;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -279,7 +279,7 @@ export declare const csvFormatSchema: z.ZodObject<{
|
|
|
279
279
|
type: "not-in";
|
|
280
280
|
};
|
|
281
281
|
}[];
|
|
282
|
-
action: "
|
|
282
|
+
action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
|
|
283
283
|
source: (string | {
|
|
284
284
|
type: "column";
|
|
285
285
|
column: string;
|
|
@@ -350,7 +350,7 @@ export declare const csvFormatSchema: z.ZodObject<{
|
|
|
350
350
|
type: "not-in";
|
|
351
351
|
};
|
|
352
352
|
}[];
|
|
353
|
-
action: "
|
|
353
|
+
action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
|
|
354
354
|
source: (string | {
|
|
355
355
|
type: "column";
|
|
356
356
|
column: string;
|
|
@@ -427,7 +427,7 @@ export declare const csvFormatSchema: z.ZodObject<{
|
|
|
427
427
|
type: "not-in";
|
|
428
428
|
};
|
|
429
429
|
}[];
|
|
430
|
-
action: "
|
|
430
|
+
action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
|
|
431
431
|
source: (string | {
|
|
432
432
|
type: "column";
|
|
433
433
|
column: string;
|
|
@@ -504,7 +504,7 @@ export declare const csvFormatSchema: z.ZodObject<{
|
|
|
504
504
|
type: "not-in";
|
|
505
505
|
};
|
|
506
506
|
}[];
|
|
507
|
-
action: "
|
|
507
|
+
action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "burn" | "derivative-fee" | "fee" | "interest-fee" | "pay" | "realize-loss" | "stolen" | "transaction-fee" | "approve" | "fail-tx" | "ignore" | "move" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "airdrop" | "cash-back" | "derivative-profit" | "free-mint" | "game-reward" | "gift" | "hardfork" | "income" | "interest" | "mining" | "nft-royalty" | "realize-profit" | "staking-reward" | "liquidation" | "repayment" | "replace" | "swap-nft" | "unwrap" | "wrap" | "atomic-arbitrage" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "value-down" | "value-up" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
|
|
508
508
|
source: (string | {
|
|
509
509
|
type: "column";
|
|
510
510
|
column: string;
|
package/_types/test.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../test.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,SAC4C,CAAA;AAEtE,eAAO,MAAM,cAAc,SAC2C,CAAA;AAEtE,eAAO,MAAM,aAAa,SAC4C,CAAA;AAEtE,eAAO,MAAM,QAAQ,SAC0C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xtorch/csv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Cryptorch CSV extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cryptorch",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@0xtorch/big-decimal": "^0.0.10",
|
|
38
|
-
"@0xtorch/core": "^0.0.
|
|
38
|
+
"@0xtorch/core": "^0.0.41",
|
|
39
39
|
"encoding-japanese": "^2.1.0",
|
|
40
40
|
"papaparse": "^5.4.1",
|
|
41
41
|
"zod": "^3.23.8"
|
|
@@ -43,8 +43,5 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/encoding-japanese": "^2.0.5",
|
|
45
45
|
"@types/papaparse": "^5.3.14"
|
|
46
|
-
},
|
|
47
|
-
"peerDependencies": {
|
|
48
|
-
"typescript": "^5.0.0"
|
|
49
46
|
}
|
|
50
47
|
}
|
package/test.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
export const IS_SMALL_TEST =
|
|
1
|
+
export const IS_SMALL_TEST =
|
|
2
|
+
process !== undefined && (process.env.TEST_SIZE ?? '').includes('S')
|
|
2
3
|
|
|
3
|
-
export const IS_MEDIUM_TEST =
|
|
4
|
+
export const IS_MEDIUM_TEST =
|
|
5
|
+
process !== undefined && (process.env.TEST_SIZE ?? '').includes('M')
|
|
4
6
|
|
|
5
|
-
export const IS_LARGE_TEST =
|
|
7
|
+
export const IS_LARGE_TEST =
|
|
8
|
+
process !== undefined && (process.env.TEST_SIZE ?? '').includes('L')
|
|
6
9
|
|
|
7
|
-
export const IS_DEBUG =
|
|
10
|
+
export const IS_DEBUG =
|
|
11
|
+
process !== undefined && (process.env.DEBUG ?? '').length > 0
|