use non-explicit resolution for lib0

This commit is contained in:
Kevin Jahns
2021-05-14 18:53:24 +02:00
parent 4047890a6e
commit 7bd764fba7
45 changed files with 123 additions and 121 deletions

View File

@@ -7,8 +7,8 @@
*/
import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js'
import * as buffer from 'lib0/buffer.js'
import * as t from 'lib0/testing'
import * as buffer from 'lib0/buffer'
/**
* @param {t.TestCase} tc

View File

@@ -1,6 +1,6 @@
import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js'
import * as t from 'lib0/testing'
/**
* Client id should be changed when an instance receives updates from another client using the same client id.

View File

@@ -1,5 +1,5 @@
import * as t from 'lib0/testing.js'
import * as promise from 'lib0/promise.js'
import * as t from 'lib0/testing'
import * as promise from 'lib0/promise'
import {
contentRefs,

View File

@@ -11,9 +11,9 @@ import * as snapshot from './snapshot.tests.js'
import * as updates from './updates.tests.js'
import * as relativePositions from './relativePositions.tests.js'
import { runTests } from 'lib0/testing.js'
import { isBrowser, isNode } from 'lib0/environment.js'
import * as log from 'lib0/logging.js'
import { runTests } from 'lib0/testing'
import { isBrowser, isNode } from 'lib0/environment'
import * as log from 'lib0/logging'
if (isBrowser) {
log.createVConsole(document.body)

View File

@@ -1,6 +1,6 @@
import * as Y from '../src/internals'
import * as t from 'lib0/testing.js'
import * as t from 'lib0/testing'
/**
* @param {Y.YText} ytext

View File

@@ -1,5 +1,5 @@
import { createDocFromSnapshot, Doc, snapshot, YMap } from '../src/internals'
import * as t from 'lib0/testing.js'
import * as t from 'lib0/testing'
import { init } from './testHelper'
/**

View File

@@ -1,10 +1,10 @@
import * as t from 'lib0/testing.js'
import * as prng from 'lib0/prng.js'
import * as encoding from 'lib0/encoding.js'
import * as decoding from 'lib0/decoding.js'
import * as t from 'lib0/testing'
import * as prng from 'lib0/prng'
import * as encoding from 'lib0/encoding'
import * as decoding from 'lib0/decoding'
import * as syncProtocol from 'y-protocols/sync.js'
import * as object from 'lib0/object.js'
import * as object from 'lib0/object'
import * as Y from '../src/internals.js'
export * from '../src/internals.js'

View File

@@ -5,7 +5,7 @@ import {
} from '../src/internals.js'
import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js'
import * as t from 'lib0/testing'
/**
* @param {t.TestCase} tc

View File

@@ -1,9 +1,9 @@
import * as t from 'lib0/testing.js'
import * as t from 'lib0/testing'
import { init, compare } from './testHelper.js' // eslint-disable-line
import * as Y from '../src/index.js'
import { readClientsStructRefs, readDeleteSet, UpdateDecoderV2, UpdateEncoderV2, writeDeleteSet } from '../src/internals.js'
import * as encoding from 'lib0/encoding.js'
import * as decoding from 'lib0/decoding.js'
import * as encoding from 'lib0/encoding'
import * as decoding from 'lib0/decoding'
/**
* @typedef {Object} Enc

View File

@@ -1,9 +1,9 @@
import { init, compare, applyRandomTests, Doc } from './testHelper.js' // eslint-disable-line
import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js'
import * as prng from 'lib0/prng.js'
import * as math from 'lib0/math.js'
import * as t from 'lib0/testing'
import * as prng from 'lib0/prng'
import * as math from 'lib0/math'
/**
* @param {t.TestCase} tc

View File

@@ -5,8 +5,8 @@ import {
} from '../src/internals.js'
import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js'
import * as prng from 'lib0/prng.js'
import * as t from 'lib0/testing'
import * as prng from 'lib0/prng'
/**
* @param {t.TestCase} tc

View File

@@ -1,7 +1,7 @@
import * as Y from './testHelper.js'
import * as t from 'lib0/testing.js'
import * as prng from 'lib0/prng.js'
import * as math from 'lib0/math.js'
import * as t from 'lib0/testing'
import * as prng from 'lib0/prng'
import * as math from 'lib0/math'
const { init, compare } = Y

View File

@@ -1,7 +1,7 @@
import { init, compare } from './testHelper.js'
import * as Y from '../src/index.js'
import * as t from 'lib0/testing.js'
import * as t from 'lib0/testing'
/**
* @param {t.TestCase} tc