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.
*/
import {MAX_UNICODE, MIN_UNICODE} from "./common.js";
import {MAX_UNICODE, MIN_UNICODE} from "./common";
function encodeKey(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.
*/
import {MIN_UNICODE, MAX_UNICODE} from "./common.js";
import {MIN_UNICODE, MAX_UNICODE} from "./common";
function encodeKey(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.
*/
import {MIN_UNICODE, MAX_UNICODE} from "./common.js";
import {MIN_UNICODE, MAX_UNICODE} from "./common";
function encodeKey(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
limitations under the License.
*/
import {MIN_UNICODE, MAX_UNICODE} from "./common.js";
import {MIN_UNICODE, MAX_UNICODE} from "./common";
export function encodeScopeTypeKey(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.
*/
import {MAX_UNICODE} from "./common.js";
import {MAX_UNICODE} from "./common";
function encodeKey(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.
*/
import {MAX_UNICODE} from "./common.js";
import {MAX_UNICODE} from "./common";
function encodeKey(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
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) {
return `${roomId}|${targetEventId}|${relType}|${sourceEventId}`;