Skip to content

Commit

Permalink
fix: 🐛 correct remaining imports
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Apr 9, 2024
1 parent 0d752eb commit 32f6ef8
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/__bench__/bench.bson.encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {BsonEncoder} from '../bson/BsonEncoder';
import {Writer} from '../util/buffers/Writer';
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';
import {payloads as payloads_} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';
import {BSON, EJSON} from 'bson';

const payloads = payloads_.map((p) => ({...p, data: {data: p.data}}));
Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/bench.cbor-dag.encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {CborEncoderDag} from '../cbor/CborEncoderDag';
import {CborEncoder} from '../cbor/CborEncoder';
import {CborDecoder} from '../cbor/CborDecoder';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';

const benchmark: IBenchmark = {
name: 'Encoding',
Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/bench.cbor.decoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {CborEncoder} from '../cbor/CborEncoder';
import {CborDecoderBase} from '../cbor/CborDecoderBase';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';

const encoder = new CborEncoder();

Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/bench.cbor.encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {CborEncoder} from '../cbor/CborEncoder';
import {CborEncoderFast} from '../cbor/CborEncoderFast';
import {CborDecoder} from '../cbor/CborDecoder';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';
import {payloads} from '../__bench__/payloads';

const benchmark: IBenchmark = {
Expand Down
4 changes: 2 additions & 2 deletions src/__bench__/bench.encoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {UbjsonEncoder} from '../ubjson/UbjsonEncoder';
import {IonEncoderFast} from '../ion/IonEncoderFast';
import {CborDecoder} from '../cbor/CborDecoder';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {Writer} from '../util/buffers/Writer';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';

const benchmark: IBenchmark = {
name: 'Encoding',
Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/bench.encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {JsonEncoder} from '../json/JsonEncoder';
import {UbjsonEncoder} from '../ubjson/UbjsonEncoder';
import {CborEncoderFast} from '../cbor/CborEncoderFast';
import {CborEncoder} from '../cbor/CborEncoder';
import {Writer} from '../util/buffers/Writer';
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';
import {payloads} from '../__bench__/payloads';
import {MsgPackEncoderFast} from '../msgpack';

Expand Down
4 changes: 2 additions & 2 deletions src/__bench__/bench.ion.encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {IonEncoderFast} from '../ion/IonEncoderFast';
import {Writer} from '../util/buffers/Writer';
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';
import {payloads} from '../__bench__/payloads';
import {load, makeBinaryWriter, dom} from 'ion-js';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';

const benchmark: IBenchmark = {
name: 'Encoding',
Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/bench.json.decoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {JsonDecoder} from '../json/JsonDecoder';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';

const encodedPayloads = payloads.map((payload) => {
return {
Expand Down
4 changes: 2 additions & 2 deletions src/__bench__/bench.json.encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {JsonEncoder} from '../json/JsonEncoder';
import {Writer} from '../util/buffers/Writer';
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';
const safeStringify = require('fast-safe-stringify');

const benchmark: IBenchmark = {
Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/bench.msgpack.decoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {MsgPackEncoderFast} from '../msgpack/MsgPackEncoderFast';
import {MsgPackDecoderFast} from '../msgpack/MsgPackDecoderFast';
import {MsgPackDecoder} from '../msgpack/MsgPackDecoder';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';

const encoder = new MsgPackEncoderFast();

Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/bench.msgpack.encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {MsgPackEncoder} from '../msgpack/MsgPackEncoder';
import {MsgPackEncoderFast} from '../msgpack/MsgPackEncoderFast';
import {CborDecoder} from '../cbor/CborDecoder';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';

const benchmark: IBenchmark = {
name: 'MessagePack Encoding',
Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/bench.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {CborEncoder} from '../cbor/CborEncoder';
import {CborDecoder} from '../cbor/CborDecoder';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';

const encoder = new CborEncoder();

Expand Down
4 changes: 2 additions & 2 deletions src/__bench__/bench.ubjson.decoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {UbjsonEncoder} from '../ubjson/UbjsonEncoder';
import {UbjsonDecoder} from '../ubjson/UbjsonDecoder';
import {Writer} from '../util/buffers/Writer';
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';

const encoder = new UbjsonEncoder(new Writer());
const encodedPayloads = payloads.map((payload) => {
Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/bench.ubjson.encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {UbjsonEncoder} from '../ubjson/UbjsonEncoder';
import {Writer} from '../util/buffers/Writer';
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';
import {payloads} from '../__bench__/payloads';

const benchmark: IBenchmark = {
Expand Down
4 changes: 2 additions & 2 deletions src/__bench__/bench.writer-size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {runBenchmark, IBenchmark} from '../__bench__/runBenchmark';
import {CborEncoder} from '../cbor/CborEncoder';
import {CborDecoder} from '../cbor/CborDecoder';
import {payloads} from '../__bench__/payloads';
import {deepEqual} from '../json-equal/deepEqual';
import {Writer} from '../util/buffers/Writer';
import {deepEqual} from '@jsonjoy.com/util/lib/json-equal/deepEqual';
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';

const benchmark: IBenchmark = {
name: 'Encoding',
Expand Down
2 changes: 1 addition & 1 deletion src/__bench__/profiler/time.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* tslint:disable no-console */

import {MsgPackEncoderFast} from '../../msgpack/MsgPackEncoderFast';
import {Writer} from '../../util/buffers/Writer';
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';

const json = [1234];

Expand Down

0 comments on commit 32f6ef8

Please sign in to comment.