Skip to content

Commit cdf9b49

Browse files
committed
fix: update references to ID.make
1 parent ee62c52 commit cdf9b49

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/core/account.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @since 0.0.6
66
*/
77

8-
import { make as makeId } from '../id.js';
8+
import { generate } from '../id.js';
99
import { Relation } from '../relation.js';
1010
import type { CreateRelationOp, SetTripleOp } from '../types.js';
1111
import { getChecksumAddress } from './get-checksum-address.js';
@@ -32,7 +32,7 @@ type MakeAccountReturnType = {
3232
* @returns ops – The ops for the Account entity: {@link MakeAccountReturnType}
3333
*/
3434
export function make(address: string): MakeAccountReturnType {
35-
const accountId = makeId();
35+
const accountId = generate();
3636
const checkedAddress = getChecksumAddress(address);
3737

3838
return {

src/core/blocks/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @since 0.0.6
66
*/
77

8-
import { make as makeId } from '../../id.js';
8+
import { generate } from '../../id.js';
99
import { Relation } from '../../relation.js';
1010
import { SYSTEM_IDS } from '../../system-ids.js';
1111
import type { CreateRelationOp, SetTripleOp } from '../../types.js';
@@ -43,7 +43,7 @@ type DataBlockArgs = { fromId: string; sourceType: DataBlockSourceType; position
4343
* @returns ops – The ops for the Data Block entity: {@link Op}[]
4444
*/
4545
export function make({ fromId, sourceType, position, name }: DataBlockArgs): (SetTripleOp | CreateRelationOp)[] {
46-
const newBlockId = makeId();
46+
const newBlockId = generate();
4747

4848
const dataBlockType = Relation.make({
4949
fromId: newBlockId,

src/core/blocks/text.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @since 0.0.6
66
*/
77

8-
import { make as makeId } from '../../id.js';
8+
import { generate } from '../../id.js';
99
import { Relation } from '../../relation.js';
1010
import { SYSTEM_IDS } from '../../system-ids.js';
1111
import type { Op } from '../../types.js';
@@ -29,7 +29,7 @@ type TextBlockArgs = { fromId: string; text: string; position?: string };
2929
* @returns ops – The ops for the Text Block entity: {@link Op}[]
3030
*/
3131
export function make({ fromId, text, position }: TextBlockArgs): Op[] {
32-
const newBlockId = makeId();
32+
const newBlockId = generate();
3333

3434
const textBlockType = Relation.make({
3535
fromId: newBlockId,

src/core/image.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @since 0.0.6
66
*/
77

8-
import { make as makeId } from '../id.js';
8+
import { generate } from '../id.js';
99
import { Relation } from '../relation.js';
1010
import { SYSTEM_IDS } from '../system-ids.js';
1111
import type { CreateRelationOp, Op, SetTripleOp } from '../types.js';
@@ -29,7 +29,7 @@ type MakeImageReturnType = {
2929
* @returns ops – The ops for the Image entity: {@link MakeImageReturnType}
3030
*/
3131
export function make(src: string): MakeImageReturnType {
32-
const entityId = makeId();
32+
const entityId = generate();
3333

3434
return {
3535
imageId: entityId,

src/core/relation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { INITIAL_RELATION_INDEX_VALUE } from '../../constants.js';
8-
import { make as makeId } from '../id.js';
8+
import { generate } from '../id.js';
99
import { SYSTEM_IDS } from '../system-ids.js';
1010
import type { CreateRelationOp, DeleteRelationOp } from '../types.js';
1111
import { Position } from './position.js';
@@ -46,7 +46,7 @@ interface CreateRelationArgs {
4646
* @returns – {@link CreateRelationOp}
4747
*/
4848
export function make(args: CreateRelationArgs): CreateRelationOp {
49-
const newEntityId = args.relationId ?? makeId();
49+
const newEntityId = args.relationId ?? generate();
5050

5151
return {
5252
type: 'CREATE_RELATION',

src/proto/edit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { make as makeId } from '../id.js';
1+
import { generate } from '../id.js';
22
import type { Op } from '../types.js';
33
import { ActionType, Edit, Entity, Op as OpBinary, OpType, Relation, Triple } from './gen/src/proto/ipfs_pb.js';
44

@@ -12,7 +12,7 @@ export function make({ name, ops, author }: MakeeEditProposalArgs): Uint8Array {
1212
return new Edit({
1313
type: ActionType.ADD_EDIT,
1414
version: '1.0.0',
15-
id: makeId(),
15+
id: generate(),
1616
name,
1717
ops: opsToBinary(ops),
1818
authors: [author],

0 commit comments

Comments
 (0)