Migrate common.ts

This commit is contained in:
Danila Fedorin 2021-08-11 13:54:33 -07:00
parent 3b5b91cf1b
commit d07c38effd
8 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {MAX_UNICODE, MIN_UNICODE} from "./common.js"; import {MAX_UNICODE, MIN_UNICODE} from "./common";
function encodeKey(userId, deviceId) { function encodeKey(userId, deviceId) {
return `${userId}|${deviceId}`; return `${userId}|${deviceId}`;

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {MIN_UNICODE, MAX_UNICODE} from "./common.js"; import {MIN_UNICODE, MAX_UNICODE} from "./common";
function encodeKey(roomId, sessionId, messageIndex) { function encodeKey(roomId, sessionId, messageIndex) {
return `${roomId}|${sessionId}|${messageIndex}`; return `${roomId}|${sessionId}|${messageIndex}`;

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {MIN_UNICODE, MAX_UNICODE} from "./common.js"; import {MIN_UNICODE, MAX_UNICODE} from "./common";
function encodeKey(roomId, senderKey, sessionId) { function encodeKey(roomId, senderKey, sessionId) {
return `${roomId}|${senderKey}|${sessionId}`; return `${roomId}|${senderKey}|${sessionId}`;

View File

@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {MIN_UNICODE, MAX_UNICODE} from "./common.js"; import {MIN_UNICODE, MAX_UNICODE} from "./common";
export function encodeScopeTypeKey(scope, type) { export function encodeScopeTypeKey(scope, type) {
return `${scope}|${type}`; return `${scope}|${type}`;

View File

@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {MAX_UNICODE} from "./common.js"; import {MAX_UNICODE} from "./common";
function encodeKey(roomId, userId) { function encodeKey(roomId, userId) {
return `${roomId}|${userId}`; return `${roomId}|${userId}`;

View File

@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {MAX_UNICODE} from "./common.js"; import {MAX_UNICODE} from "./common";
function encodeKey(roomId, eventType, stateKey) { function encodeKey(roomId, eventType, stateKey) {
return `${roomId}|${eventType}|${stateKey}`; return `${roomId}|${eventType}|${stateKey}`;

View File

@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {MIN_UNICODE, MAX_UNICODE} from "./common.js"; import {MIN_UNICODE, MAX_UNICODE} from "./common";
function encodeKey(roomId, targetEventId, relType, sourceEventId) { function encodeKey(roomId, targetEventId, relType, sourceEventId) {
return `${roomId}|${targetEventId}|${relType}|${sourceEventId}`; return `${roomId}|${targetEventId}|${relType}|${sourceEventId}`;