Skip to content

Commit 585b4b7

Browse files
authored
fix: replace module by upstream dependency
Replace local json-pointer implementation with @jsonjoy.com/json-pointer package
2 parents 9254afe + 2a00fb5 commit 585b4b7

File tree

9 files changed

+25
-8
lines changed

9 files changed

+25
-8
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
},
6565
"dependencies": {
6666
"@jsonjoy.com/base64": "^1.1.1",
67+
"@jsonjoy.com/json-pointer": "^1.0.1",
6768
"@jsonjoy.com/util": "^1.1.2",
6869
"hyperdyperid": "^1.2.0",
6970
"thingies": "^1.20.0"

src/cbor/CborDecoder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {CONST, ERROR, MAJOR} from './constants';
22
import {CborDecoderBase} from './CborDecoderBase';
33
import {JsonPackValue} from '../JsonPackValue';
4-
import type {Path} from '../json-pointer';
4+
import type {Path} from '@jsonjoy.com/json-pointer';
55
import type {IReader, IReaderResettable} from '@jsonjoy.com/util/lib/buffers';
66

77
export class CborDecoder<

src/cbor/__tests__/shallow-read.genShallowRead.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {genShallowReader} from '../../msgpack/shallow-read';
22
import {CborEncoder} from '../CborEncoder';
33
import {CborDecoder} from '../CborDecoder';
4-
import {Path} from '../../json-pointer';
4+
import type {Path} from '@jsonjoy.com/json-pointer';
55
import {Writer} from '@jsonjoy.com/util/lib/buffers/Writer';
66

77
const assetShallowRead = (doc: unknown, path: Path): void => {

src/json-pointer/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/json-pointer/types.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/msgpack/MsgPackDecoder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {JsonPackValue} from '.';
22
import {MsgPackDecoderFast} from './MsgPackDecoderFast';
3-
import type {Path} from '../json-pointer';
3+
import type {Path} from '@jsonjoy.com/json-pointer';
44
import type {Reader} from '@jsonjoy.com/util/lib/buffers/Reader';
55

66
/**

src/msgpack/__tests__/shallow-read.genShallowRead.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {genShallowReader} from '../shallow-read';
22
import {MsgPackEncoder} from '../MsgPackEncoder';
33
import {MsgPackDecoder} from '../MsgPackDecoder';
4-
import {Path} from '../../json-pointer';
4+
import type {Path} from '@jsonjoy.com/json-pointer';
55

66
const assetShallowRead = (doc: unknown, path: Path): void => {
77
const encoder = new MsgPackEncoder();

src/msgpack/shallow-read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Path} from '../json-pointer';
1+
import type {Path} from '@jsonjoy.com/json-pointer';
22
import {Codegen} from '@jsonjoy.com/util/lib/codegen/Codegen';
33
import type {MsgPackDecoder} from './MsgPackDecoder';
44

yarn.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,11 +600,30 @@
600600
resolved "https://registry.npmjs.org/@jsonjoy.com/base64/-/base64-1.1.1.tgz"
601601
integrity sha512-LnFjVChaGY8cZVMwAIMjvA1XwQjZ/zIXHyh28IyJkyNkzof4Dkm1+KN9UIm3lHhREH4vs7XwZ0NpkZKnwOtEfg==
602602

603+
"@jsonjoy.com/buffers@^1.0.0":
604+
version "1.0.0"
605+
resolved "https://registry.yarnpkg.com/@jsonjoy.com/buffers/-/buffers-1.0.0.tgz#ade6895b7d3883d70f87b5743efaa12c71dfef7a"
606+
integrity sha512-NDigYR3PHqCnQLXYyoLbnEdzMMvzeiCWo1KOut7Q0CoIqg9tUAPKJ1iq/2nFhc5kZtexzutNY0LFjdwWL3Dw3Q==
607+
608+
"@jsonjoy.com/json-pointer@^1.0.1":
609+
version "1.0.1"
610+
resolved "https://registry.yarnpkg.com/@jsonjoy.com/json-pointer/-/json-pointer-1.0.1.tgz#3b710158e8a212708a2886ea5e38d92e2ea4f4a0"
611+
integrity sha512-tJpwQfuBuxqZlyoJOSZcqf7OUmiYQ6MiPNmOv4KbZdXE/DdvBSSAwhos0zIlJU/AXxC8XpuO8p08bh2fIl+RKA==
612+
dependencies:
613+
"@jsonjoy.com/util" "^1.3.0"
614+
603615
"@jsonjoy.com/util@^1.1.2":
604616
version "1.1.2"
605617
resolved "https://registry.npmjs.org/@jsonjoy.com/util/-/util-1.1.2.tgz"
606618
integrity sha512-HOGa9wtE6LEz2I5mMQ2pMSjth85PmD71kPbsecs02nEUq3/Kw0wRK3gmZn5BCEB8mFLXByqPxjHgApoMwIPMKQ==
607619

620+
"@jsonjoy.com/util@^1.3.0":
621+
version "1.8.1"
622+
resolved "https://registry.yarnpkg.com/@jsonjoy.com/util/-/util-1.8.1.tgz#62387224001e59ded1ca3744b88b44cdb808e7f9"
623+
integrity sha512-26hOMkQx15sYBpt/bCK3/S7Bep8vMy+VKGBhWQax7GXYd+mwP5mc0HNX5oqLws/JQZ9GRjn9rvXoDbcq1OC2xA==
624+
dependencies:
625+
"@jsonjoy.com/buffers" "^1.0.0"
626+
608627
"@msgpack/msgpack@^3.0.0-beta2":
609628
version "3.0.0-beta2"
610629
resolved "https://registry.npmjs.org/@msgpack/msgpack/-/msgpack-3.0.0-beta2.tgz"

0 commit comments

Comments
 (0)