@socket.tech/dl-common 1.0.2-test.5 → 1.0.2-test.7
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addSignatureHooks = exports.AttestSignatureModel = exports.AttestSignature = void 0;
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
6
|
class AttestSignature extends sequelize_1.Model {
|
|
7
7
|
}
|
|
8
8
|
exports.AttestSignature = AttestSignature;
|
|
@@ -33,10 +33,10 @@ exports.AttestSignatureModel = {
|
|
|
33
33
|
};
|
|
34
34
|
function processStrings(attestSignature) {
|
|
35
35
|
if (attestSignature.packetId) {
|
|
36
|
-
attestSignature.packetId = (0,
|
|
36
|
+
attestSignature.packetId = (0, utils_1.toLowerCase)(attestSignature.packetId);
|
|
37
37
|
}
|
|
38
38
|
if (attestSignature.signature) {
|
|
39
|
-
attestSignature.signature = (0,
|
|
39
|
+
attestSignature.signature = (0, utils_1.toLowerCase)(attestSignature.signature);
|
|
40
40
|
}
|
|
41
41
|
return attestSignature;
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addAttestationHooks = exports.AttestationModel = exports.Attestation = void 0;
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
6
|
class Attestation extends sequelize_1.Model {
|
|
7
7
|
}
|
|
8
8
|
exports.Attestation = Attestation;
|
|
@@ -71,16 +71,16 @@ const addAttestationHooks = () => {
|
|
|
71
71
|
exports.addAttestationHooks = addAttestationHooks;
|
|
72
72
|
function processStrings(packet) {
|
|
73
73
|
if (packet.packetId)
|
|
74
|
-
packet.packetId = (0,
|
|
74
|
+
packet.packetId = (0, utils_1.toLowerCase)(packet.packetId);
|
|
75
75
|
if (packet.root)
|
|
76
|
-
packet.root = (0,
|
|
76
|
+
packet.root = (0, utils_1.toLowerCase)(packet.root);
|
|
77
77
|
if (packet.switchboard)
|
|
78
|
-
packet.switchboard = (0,
|
|
78
|
+
packet.switchboard = (0, utils_1.toLowerCase)(packet.switchboard);
|
|
79
79
|
if (packet.attester)
|
|
80
|
-
packet.attester = (0,
|
|
80
|
+
packet.attester = (0, utils_1.toLowerCase)(packet.attester);
|
|
81
81
|
if (packet.attestTxId)
|
|
82
|
-
packet.attestTxId = (0,
|
|
82
|
+
packet.attestTxId = (0, utils_1.toLowerCase)(packet.attestTxId);
|
|
83
83
|
if (packet.attestTxHash)
|
|
84
|
-
packet.attestTxHash = (0,
|
|
84
|
+
packet.attestTxHash = (0, utils_1.toLowerCase)(packet.attestTxHash);
|
|
85
85
|
return packet;
|
|
86
86
|
}
|
package/dist/models/proposal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addProposalHooks = exports.ProposalModel = exports.Proposal = exports.ProposalTripRelayStatus = exports.MatchState = exports.RootMatchState = exports.TripStatus = void 0;
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
6
|
var TripStatus;
|
|
7
7
|
(function (TripStatus) {
|
|
8
8
|
TripStatus["TRIP_REQUIRED"] = "TRIP_REQUIRED";
|
|
@@ -115,17 +115,17 @@ exports.ProposalModel = {
|
|
|
115
115
|
};
|
|
116
116
|
function processStrings(proposal) {
|
|
117
117
|
if (proposal.packetId)
|
|
118
|
-
proposal.packetId = (0,
|
|
118
|
+
proposal.packetId = (0, utils_1.toLowerCase)(proposal.packetId);
|
|
119
119
|
if (proposal.root)
|
|
120
|
-
proposal.root = (0,
|
|
120
|
+
proposal.root = (0, utils_1.toLowerCase)(proposal.root);
|
|
121
121
|
if (proposal.switchboard)
|
|
122
|
-
proposal.switchboard = (0,
|
|
122
|
+
proposal.switchboard = (0, utils_1.toLowerCase)(proposal.switchboard);
|
|
123
123
|
if (proposal.proposer)
|
|
124
|
-
proposal.proposer = (0,
|
|
124
|
+
proposal.proposer = (0, utils_1.toLowerCase)(proposal.proposer);
|
|
125
125
|
if (proposal.proposeTxHash)
|
|
126
|
-
proposal.proposeTxHash = (0,
|
|
126
|
+
proposal.proposeTxHash = (0, utils_1.toLowerCase)(proposal.proposeTxHash);
|
|
127
127
|
if (proposal.tripTxHash)
|
|
128
|
-
proposal.tripTxHash = (0,
|
|
128
|
+
proposal.tripTxHash = (0, utils_1.toLowerCase)(proposal.tripTxHash);
|
|
129
129
|
return proposal;
|
|
130
130
|
}
|
|
131
131
|
const addProposalHooks = () => {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socket.tech/dl-common",
|
|
3
|
-
"version": "1.0.2-test.
|
|
4
|
-
"main": "./dist/
|
|
5
|
-
"types": "./dist/
|
|
3
|
+
"version": "1.0.2-test.7",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
6
|
"description": "common utilities for socket data layer.",
|
|
7
7
|
"author": "akash <akash.minato@gmail.com>",
|
|
8
8
|
"files": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@aws-sdk/client-sqs": "^3.421.0",
|
|
37
37
|
"@aws-sdk/smithy-client": "^3.329.0",
|
|
38
|
-
"@socket.tech/dl-core": "2.4.
|
|
38
|
+
"@socket.tech/dl-core": "2.4.8-test.1",
|
|
39
39
|
"@socket.tech/ll-common": "^0.0.19",
|
|
40
40
|
"async-redis": "^2.0.0",
|
|
41
41
|
"ethers": "^5.7.1",
|