@interactive-inc/docs-client 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -204,13 +204,18 @@ declare class DocFileMdContentValue<T extends DocCustomSchema> {
204
204
  */
205
205
  withDescription(description: string, defaultTitle?: string): DocFileMdContentValue<T>;
206
206
  /**
207
- * Update content
207
+ * Update body
208
+ */
209
+ withBody(body: string): DocFileMdContentValue<T>;
210
+ /**
211
+ * @deprecated Use `withBody` instead
208
212
  */
209
213
  withContent(content: string): DocFileMdContentValue<T>;
210
214
  /**
211
215
  * Update FrontMatter
212
216
  */
213
217
  withMeta<U extends DocCustomSchema>(meta: DocFileMdMetaValue<U>): DocFileMdContentValue<U>;
218
+ withMeta(updater: UpdateFunction<DocFileMdMetaValue<T>>): DocFileMdContentValue<T>;
214
219
  /**
215
220
  * Update specific property of FrontMatter
216
221
  */
@@ -252,11 +257,14 @@ declare class DocFileMdEntity<T extends DocCustomSchema> {
252
257
  * Update content
253
258
  */
254
259
  withContent(content: DocFileMdContentValue<T>): DocFileMdEntity<T>;
260
+ withContent(updater: UpdateFunction<DocFileMdContentValue<T>>): DocFileMdEntity<T>;
255
261
  /**
256
262
  * Update path
257
263
  */
258
264
  withPath(path: DocFilePath): DocFileMdEntity<T>;
265
+ withPath(updater: UpdateFunction<DocFilePath>): DocFileMdEntity<T>;
259
266
  withMeta(meta: DocFileMdMetaValue<T>): DocFileMdEntity<T>;
267
+ withMeta(updater: UpdateFunction<DocFileMdMetaValue<T>>): DocFileMdEntity<T>;
260
268
  withTitle(title: string): DocFileMdEntity<T>;
261
269
  withDescription(description: string, defaultTitle?: string): DocFileMdEntity<T>;
262
270
  /**
@@ -384,6 +392,7 @@ declare class DocFileUnknownEntity {
384
392
  * Update path
385
393
  */
386
394
  withPath(path: DocFilePath): DocFileUnknownEntity;
395
+ withPath(updater: UpdateFunction<DocFilePath>): DocFileUnknownEntity;
387
396
  toJson(): z.infer<typeof zDocFileUnknown>;
388
397
  }
389
398
 
@@ -467,6 +476,10 @@ declare class DocFileUnknownReference<T extends DocCustomSchema> {
467
476
  restore(archiveDirectoryName?: string): Promise<DocFileUnknownReference<T>>;
468
477
  }
469
478
 
479
+ /**
480
+ * Generic updater function type that takes a value and returns the same type
481
+ */
482
+ type UpdateFunction<T> = (current: T) => T;
470
483
  /**
471
484
  * Text field type
472
485
  */
@@ -1330,7 +1343,11 @@ declare class DocFileIndexContentValue<T extends DocCustomSchema> {
1330
1343
  /**
1331
1344
  * Update content
1332
1345
  */
1333
- withContent(content: string): DocFileIndexContentValue<T>;
1346
+ withBody(body: string): DocFileIndexContentValue<T>;
1347
+ /**
1348
+ * @deprecated Use `withBody` instead
1349
+ */
1350
+ withContent(body: string): DocFileIndexContentValue<T>;
1334
1351
  /**
1335
1352
  * Update FrontMatter
1336
1353
  */
@@ -1369,10 +1386,12 @@ declare class DocFileIndexEntity<T extends DocCustomSchema> {
1369
1386
  * Update content
1370
1387
  */
1371
1388
  withContent(content: DocFileIndexContentValue<T>): DocFileIndexEntity<T>;
1389
+ withContent(updater: UpdateFunction<DocFileIndexContentValue<T>>): DocFileIndexEntity<T>;
1372
1390
  /**
1373
1391
  * Update path
1374
1392
  */
1375
1393
  withPath(path: DocFilePath): DocFileIndexEntity<T>;
1394
+ withPath(updater: UpdateFunction<DocFilePath>): DocFileIndexEntity<T>;
1376
1395
  /**
1377
1396
  * z.infer<typeof zDocFileIndex>
1378
1397
  */
@@ -1478,11 +1497,20 @@ declare class DocDirectoryReference<T extends DocCustomSchema> {
1478
1497
  get fileSystem(): DocFileSystem;
1479
1498
  get basePath(): string;
1480
1499
  get config(): DocClientConfig;
1500
+ get path(): string;
1501
+ /**
1502
+ * @deprecated
1503
+ */
1481
1504
  get relativePath(): string;
1505
+ get fullPath(): string;
1506
+ /**
1507
+ * @deprecated
1508
+ */
1482
1509
  get absolutePath(): string;
1483
1510
  get indexFileName(): string;
1484
1511
  get indexFilePath(): string;
1485
1512
  get archiveDirectoryName(): string;
1513
+ get name(): string;
1486
1514
  fileNames(): Promise<string[] | Error>;
1487
1515
  archivedFileNames(): Promise<string[] | Error>;
1488
1516
  filesGenerator(): AsyncGenerator<DocFileDirectoryReference<T>, void, unknown>;
@@ -2081,7 +2109,7 @@ declare class DocDirectoryPathValue {
2081
2109
  /**
2082
2110
  * Create subdirectory path
2083
2111
  */
2084
- subdirectory(dirName: string): DocDirectoryPathValue;
2112
+ subdirectory(directoryName: string): DocDirectoryPathValue;
2085
2113
  /**
2086
2114
  * Create instance from relative path (DI support)
2087
2115
  */
@@ -2156,4 +2184,4 @@ declare class DocRelationFieldValue {
2156
2184
  }): DocRelationFieldValue;
2157
2185
  }
2158
2186
 
2159
- export { type BaseFieldValueType, type DetectFileType, DocClient, type DocClientConfig, type DocCustomSchema, type DocCustomSchemaField, type DocCustomSchemaFieldBoolean, type DocCustomSchemaFieldMultiNumber, type DocCustomSchemaFieldMultiRelation, type DocCustomSchemaFieldMultiSelectNumber, type DocCustomSchemaFieldMultiSelectText, type DocCustomSchemaFieldMultiText, type DocCustomSchemaFieldNumber, type DocCustomSchemaFieldRelation, type DocCustomSchemaFieldSelectNumber, type DocCustomSchemaFieldSelectText, type DocCustomSchemaFieldText, DocCustomSchemaFieldValue, type DocDirectory, type DocDirectoryFile, DocDirectoryPathValue, DocDirectoryReference, type DocFieldTypeLiteral, type DocFile, type DocFileAny, type DocFileEntity, type DocFileIndex, type DocFileIndexAny, type DocFileIndexContent, DocFileIndexContentValue, DocFileIndexEntity, type DocFileIndexMeta, DocFileIndexMetaValue, DocFileIndexReference, type DocFileIndexSchema, type DocFileIndexSchemaField, DocFileIndexSchemaValue, type DocFileMd, type DocFileMdAny, type DocFileMdContent, DocFileMdContentValue, DocFileMdEntity, type DocFileMdMeta, type DocFileMdMetaAny, DocFileMdMetaValue, DocFileMdReference, type DocFilePath, DocFilePathValue, DocFileRelationReference, DocFileSystem, DocFileSystemMock, DocFileTreeSystem, type DocFileUnknown, DocFileUnknownEntity, DocFileUnknownReference, DocMarkdownSystem, type DocMetaField, type DocMetaFieldBoolean, type DocMetaFieldMultiNumber, type DocMetaFieldMultiRelation, type DocMetaFieldMultiSelectNumber, type DocMetaFieldMultiSelectText, type DocMetaFieldMultiText, type DocMetaFieldNumber, type DocMetaFieldRelation, type DocMetaFieldSelectNumber, type DocMetaFieldSelectText, type DocMetaFieldText, type DocMetaFieldType, type DocMetaFieldTypeBoolean, type DocMetaFieldTypeNumber, type DocMetaFieldTypeRelation, type DocMetaFieldTypeSelectNumber, type DocMetaFieldTypeSelectText, type DocMetaFieldTypeText, DocPathSystem, DocPathSystemMock, type DocRelation, type DocRelationField, DocRelationFieldValue, type DocRelationFile, DocRelationFileValue, DocRelationValue, DocSchemaBuilder, type DocSchemaFieldBoolean, type DocSchemaFieldMultiNumber, type DocSchemaFieldMultiRelation, type DocSchemaFieldMultiSelectNumber, type DocSchemaFieldMultiSelectText, type DocSchemaFieldMultiText, type DocSchemaFieldNumber, type DocSchemaFieldRelation, type DocSchemaFieldSelectNumber, type DocSchemaFieldSelectText, type DocSchemaFieldText, type DocSchemaRelationFieldUnion, type DocTreeDirectoryNode, DocTreeDirectoryNodeValue, type DocTreeFileNode, DocTreeFileNodeValue, type DocTreeNode, type DocTreeNodeValue, type Equals, type ExtractFieldType, type ExtractRequired, type FieldValueType, type GetIndexFieldType, type GetValueType, type InferDocFileMd, type InferReference, type MultiRelationKeys, type OptionalKeys, type RecordKey, type RelationKeys, type RequiredKeys, type SchemaToValueType, assertType, defaultTestConfig, defineSchema, docCustomSchemaField, expectType, zDocClientConfig, zDocFileIndex, zDocFileIndexSchemaField, zDocFileMd, zDocFilePath, zDocFileUnknown, zDocMetaField, zDocMetaFieldBoolean, zDocMetaFieldMultiNumber, zDocMetaFieldMultiRelation, zDocMetaFieldMultiSelectNumber, zDocMetaFieldMultiSelectText, zDocMetaFieldMultiText, zDocMetaFieldNumber, zDocMetaFieldRelation, zDocMetaFieldSelectNumber, zDocMetaFieldSelectText, zDocMetaFieldText, zDocMetaFieldType, zDocMetaFieldTypeBoolean, zDocMetaFieldTypeNumber, zDocMetaFieldTypeRelation, zDocMetaFieldTypeSelectNumber, zDocMetaFieldTypeSelectText, zDocMetaFieldTypeText, zDocRelation, zDocRelationField, zDocRelationFile, zDocSchemaFieldBoolean, zDocSchemaFieldMultiNumber, zDocSchemaFieldMultiRelation, zDocSchemaFieldMultiSelectNumber, zDocSchemaFieldMultiSelectText, zDocSchemaFieldMultiText, zDocSchemaFieldNumber, zDocSchemaFieldRelation, zDocSchemaFieldSelectNumber, zDocSchemaFieldSelectText, zDocSchemaFieldText };
2187
+ export { type BaseFieldValueType, type DetectFileType, DocClient, type DocClientConfig, type DocCustomSchema, type DocCustomSchemaField, type DocCustomSchemaFieldBoolean, type DocCustomSchemaFieldMultiNumber, type DocCustomSchemaFieldMultiRelation, type DocCustomSchemaFieldMultiSelectNumber, type DocCustomSchemaFieldMultiSelectText, type DocCustomSchemaFieldMultiText, type DocCustomSchemaFieldNumber, type DocCustomSchemaFieldRelation, type DocCustomSchemaFieldSelectNumber, type DocCustomSchemaFieldSelectText, type DocCustomSchemaFieldText, DocCustomSchemaFieldValue, type DocDirectory, type DocDirectoryFile, DocDirectoryPathValue, DocDirectoryReference, type DocFieldTypeLiteral, type DocFile, type DocFileAny, type DocFileEntity, type DocFileIndex, type DocFileIndexAny, type DocFileIndexContent, DocFileIndexContentValue, DocFileIndexEntity, type DocFileIndexMeta, DocFileIndexMetaValue, DocFileIndexReference, type DocFileIndexSchema, type DocFileIndexSchemaField, DocFileIndexSchemaValue, type DocFileMd, type DocFileMdAny, type DocFileMdContent, DocFileMdContentValue, DocFileMdEntity, type DocFileMdMeta, type DocFileMdMetaAny, DocFileMdMetaValue, DocFileMdReference, type DocFilePath, DocFilePathValue, DocFileRelationReference, DocFileSystem, DocFileSystemMock, DocFileTreeSystem, type DocFileUnknown, DocFileUnknownEntity, DocFileUnknownReference, DocMarkdownSystem, type DocMetaField, type DocMetaFieldBoolean, type DocMetaFieldMultiNumber, type DocMetaFieldMultiRelation, type DocMetaFieldMultiSelectNumber, type DocMetaFieldMultiSelectText, type DocMetaFieldMultiText, type DocMetaFieldNumber, type DocMetaFieldRelation, type DocMetaFieldSelectNumber, type DocMetaFieldSelectText, type DocMetaFieldText, type DocMetaFieldType, type DocMetaFieldTypeBoolean, type DocMetaFieldTypeNumber, type DocMetaFieldTypeRelation, type DocMetaFieldTypeSelectNumber, type DocMetaFieldTypeSelectText, type DocMetaFieldTypeText, DocPathSystem, DocPathSystemMock, type DocRelation, type DocRelationField, DocRelationFieldValue, type DocRelationFile, DocRelationFileValue, DocRelationValue, DocSchemaBuilder, type DocSchemaFieldBoolean, type DocSchemaFieldMultiNumber, type DocSchemaFieldMultiRelation, type DocSchemaFieldMultiSelectNumber, type DocSchemaFieldMultiSelectText, type DocSchemaFieldMultiText, type DocSchemaFieldNumber, type DocSchemaFieldRelation, type DocSchemaFieldSelectNumber, type DocSchemaFieldSelectText, type DocSchemaFieldText, type DocSchemaRelationFieldUnion, type DocTreeDirectoryNode, DocTreeDirectoryNodeValue, type DocTreeFileNode, DocTreeFileNodeValue, type DocTreeNode, type DocTreeNodeValue, type Equals, type ExtractFieldType, type ExtractRequired, type FieldValueType, type GetIndexFieldType, type GetValueType, type InferDocFileMd, type InferReference, type MultiRelationKeys, type OptionalKeys, type RecordKey, type RelationKeys, type RequiredKeys, type SchemaToValueType, type UpdateFunction, assertType, defaultTestConfig, defineSchema, docCustomSchemaField, expectType, zDocClientConfig, zDocFileIndex, zDocFileIndexSchemaField, zDocFileMd, zDocFilePath, zDocFileUnknown, zDocMetaField, zDocMetaFieldBoolean, zDocMetaFieldMultiNumber, zDocMetaFieldMultiRelation, zDocMetaFieldMultiSelectNumber, zDocMetaFieldMultiSelectText, zDocMetaFieldMultiText, zDocMetaFieldNumber, zDocMetaFieldRelation, zDocMetaFieldSelectNumber, zDocMetaFieldSelectText, zDocMetaFieldText, zDocMetaFieldType, zDocMetaFieldTypeBoolean, zDocMetaFieldTypeNumber, zDocMetaFieldTypeRelation, zDocMetaFieldTypeSelectNumber, zDocMetaFieldTypeSelectText, zDocMetaFieldTypeText, zDocRelation, zDocRelationField, zDocRelationFile, zDocSchemaFieldBoolean, zDocSchemaFieldMultiNumber, zDocSchemaFieldMultiRelation, zDocSchemaFieldMultiSelectNumber, zDocSchemaFieldMultiSelectText, zDocSchemaFieldMultiText, zDocSchemaFieldNumber, zDocSchemaFieldRelation, zDocSchemaFieldSelectNumber, zDocSchemaFieldSelectText, zDocSchemaFieldText };
package/build/index.js CHANGED
@@ -1451,25 +1451,42 @@ var DocFileMdContentValue = class _DocFileMdContentValue {
1451
1451
  );
1452
1452
  }
1453
1453
  /**
1454
- * Update content
1454
+ * Update body
1455
1455
  */
1456
- withContent(content) {
1456
+ withBody(body) {
1457
1457
  const engine = new DocMarkdownSystem();
1458
1458
  return new _DocFileMdContentValue(
1459
1459
  {
1460
1460
  type: "markdown-content",
1461
- body: content,
1462
- title: engine.extractTitle(content) || "",
1463
- description: engine.extractDescription(content) || "",
1461
+ body,
1462
+ title: engine.extractTitle(body) || "",
1463
+ description: engine.extractDescription(body) || "",
1464
1464
  meta: this.value.meta
1465
1465
  },
1466
1466
  this.customSchema
1467
1467
  );
1468
1468
  }
1469
1469
  /**
1470
- * Update FrontMatter
1470
+ * @deprecated Use `withBody` instead
1471
1471
  */
1472
- withMeta(meta) {
1472
+ withContent(content) {
1473
+ return this.withBody(content);
1474
+ }
1475
+ withMeta(metaOrUpdater) {
1476
+ if (typeof metaOrUpdater === "function") {
1477
+ const updatedMeta = metaOrUpdater(this.meta());
1478
+ return new _DocFileMdContentValue(
1479
+ {
1480
+ type: "markdown-content",
1481
+ body: this.body,
1482
+ title: this.title,
1483
+ description: this.description,
1484
+ meta: updatedMeta.value
1485
+ },
1486
+ updatedMeta.customSchema
1487
+ );
1488
+ }
1489
+ const meta = metaOrUpdater;
1473
1490
  return new _DocFileMdContentValue(
1474
1491
  {
1475
1492
  type: "markdown-content",
@@ -1561,26 +1578,46 @@ var DocFileMdEntity = class _DocFileMdEntity {
1561
1578
  get path() {
1562
1579
  return this.value.path;
1563
1580
  }
1564
- /**
1565
- * Update content
1566
- */
1567
- withContent(content) {
1581
+ withContent(contentOrUpdater) {
1582
+ if (typeof contentOrUpdater === "function") {
1583
+ const updatedContent = contentOrUpdater(this.content);
1584
+ return new _DocFileMdEntity(
1585
+ { ...this.value, content: updatedContent.value },
1586
+ this.customSchema
1587
+ );
1588
+ }
1568
1589
  return new _DocFileMdEntity(
1569
- { ...this.value, content: content.value },
1590
+ { ...this.value, content: contentOrUpdater.value },
1570
1591
  this.customSchema
1571
1592
  );
1572
1593
  }
1573
- /**
1574
- * Update path
1575
- */
1576
- withPath(path) {
1594
+ withPath(pathOrUpdater) {
1595
+ if (typeof pathOrUpdater === "function") {
1596
+ const updatedPath = pathOrUpdater(this.path);
1597
+ return new _DocFileMdEntity(
1598
+ { ...this.value, path: updatedPath },
1599
+ this.customSchema
1600
+ );
1601
+ }
1577
1602
  return new _DocFileMdEntity(
1578
- { ...this.value, path },
1603
+ { ...this.value, path: pathOrUpdater },
1579
1604
  this.customSchema
1580
1605
  );
1581
1606
  }
1582
- withMeta(meta) {
1583
- const draft = this.content.withMeta(meta);
1607
+ withMeta(metaOrUpdater) {
1608
+ if (typeof metaOrUpdater === "function") {
1609
+ const currentMeta = this.content.meta();
1610
+ const updatedMeta = metaOrUpdater(currentMeta);
1611
+ const draft2 = this.content.withMeta(updatedMeta);
1612
+ return new _DocFileMdEntity(
1613
+ {
1614
+ ...this.value,
1615
+ content: draft2.value
1616
+ },
1617
+ this.customSchema
1618
+ );
1619
+ }
1620
+ const draft = this.content.withMeta(metaOrUpdater);
1584
1621
  return new _DocFileMdEntity(
1585
1622
  {
1586
1623
  ...this.value,
@@ -3095,20 +3132,26 @@ var DocFileIndexContentValue = class _DocFileIndexContentValue {
3095
3132
  /**
3096
3133
  * Update content
3097
3134
  */
3098
- withContent(content) {
3135
+ withBody(body) {
3099
3136
  const engine = new DocMarkdownSystem();
3100
3137
  return new _DocFileIndexContentValue(
3101
3138
  {
3102
3139
  type: "markdown-index",
3103
- body: content,
3104
- title: engine.extractTitle(content) || "",
3105
- description: engine.extractDescription(content) || "",
3140
+ body,
3141
+ title: engine.extractTitle(body) || "",
3142
+ description: engine.extractDescription(body) || "",
3106
3143
  meta: this.value.meta
3107
3144
  },
3108
3145
  this.customSchema,
3109
3146
  this.config
3110
3147
  );
3111
3148
  }
3149
+ /**
3150
+ * @deprecated Use `withBody` instead
3151
+ */
3152
+ withContent(body) {
3153
+ return this.withBody(body);
3154
+ }
3112
3155
  /**
3113
3156
  * Update FrontMatter
3114
3157
  */
@@ -3206,22 +3249,34 @@ var DocFileIndexEntity = class _DocFileIndexEntity {
3206
3249
  get path() {
3207
3250
  return this.value.path;
3208
3251
  }
3209
- /**
3210
- * Update content
3211
- */
3212
- withContent(content) {
3252
+ withContent(contentOrUpdater) {
3253
+ if (typeof contentOrUpdater === "function") {
3254
+ const updatedContent = contentOrUpdater(this.content);
3255
+ return new _DocFileIndexEntity(
3256
+ { ...this.value, content: updatedContent.value },
3257
+ this.customSchema,
3258
+ this.config
3259
+ );
3260
+ }
3213
3261
  return new _DocFileIndexEntity(
3214
- { ...this.value, content: content.value },
3215
- this.customSchema
3262
+ { ...this.value, content: contentOrUpdater.value },
3263
+ this.customSchema,
3264
+ this.config
3216
3265
  );
3217
3266
  }
3218
- /**
3219
- * Update path
3220
- */
3221
- withPath(path) {
3267
+ withPath(pathOrUpdater) {
3268
+ if (typeof pathOrUpdater === "function") {
3269
+ const updatedPath = pathOrUpdater(this.path);
3270
+ return new _DocFileIndexEntity(
3271
+ { ...this.value, path: updatedPath },
3272
+ this.customSchema,
3273
+ this.config
3274
+ );
3275
+ }
3222
3276
  return new _DocFileIndexEntity(
3223
- { ...this.value, path },
3224
- this.customSchema
3277
+ { ...this.value, path: pathOrUpdater },
3278
+ this.customSchema,
3279
+ this.config
3225
3280
  );
3226
3281
  }
3227
3282
  /**
@@ -3949,13 +4004,17 @@ var DocFileUnknownEntity = class _DocFileUnknownEntity {
3949
4004
  content
3950
4005
  });
3951
4006
  }
3952
- /**
3953
- * Update path
3954
- */
3955
- withPath(path) {
4007
+ withPath(pathOrUpdater) {
4008
+ if (typeof pathOrUpdater === "function") {
4009
+ const updatedPath = pathOrUpdater(this.path);
4010
+ return new _DocFileUnknownEntity({
4011
+ ...this.value,
4012
+ path: updatedPath
4013
+ });
4014
+ }
3956
4015
  return new _DocFileUnknownEntity({
3957
4016
  ...this.value,
3958
- path
4017
+ path: pathOrUpdater
3959
4018
  });
3960
4019
  }
3961
4020
  toJson() {
@@ -4196,11 +4255,23 @@ var DocDirectoryReference = class _DocDirectoryReference {
4196
4255
  get config() {
4197
4256
  return this.props.config;
4198
4257
  }
4199
- get relativePath() {
4258
+ get path() {
4200
4259
  return this.props.path;
4201
4260
  }
4261
+ /**
4262
+ * @deprecated
4263
+ */
4264
+ get relativePath() {
4265
+ return this.path;
4266
+ }
4267
+ get fullPath() {
4268
+ return this.pathSystem.join(this.basePath, this.path);
4269
+ }
4270
+ /**
4271
+ * @deprecated
4272
+ */
4202
4273
  get absolutePath() {
4203
- return this.pathSystem.join(this.basePath, this.relativePath);
4274
+ return this.fullPath;
4204
4275
  }
4205
4276
  get indexFileName() {
4206
4277
  return this.props.indexFileName;
@@ -4215,6 +4286,9 @@ var DocDirectoryReference = class _DocDirectoryReference {
4215
4286
  get archiveDirectoryName() {
4216
4287
  return this.props.archiveDirectoryName;
4217
4288
  }
4289
+ get name() {
4290
+ return this.pathSystem.basename(this.path);
4291
+ }
4218
4292
  async fileNames() {
4219
4293
  const filePaths = await this.fileSystem.readDirectoryFilePaths(
4220
4294
  this.relativePath
@@ -6173,13 +6247,13 @@ var DocDirectoryPathValue = class _DocDirectoryPathValue {
6173
6247
  /**
6174
6248
  * Create subdirectory path
6175
6249
  */
6176
- subdirectory(dirName) {
6177
- const subPath = this.pathSystem.join(this.path, dirName);
6250
+ subdirectory(directoryName) {
6251
+ const subPath = this.pathSystem.join(this.path, directoryName);
6178
6252
  return new _DocDirectoryPathValue(
6179
6253
  {
6180
6254
  path: subPath,
6181
- name: dirName,
6182
- fullPath: this.pathSystem.join(this.fullPath, dirName)
6255
+ name: directoryName,
6256
+ fullPath: this.pathSystem.join(this.fullPath, directoryName)
6183
6257
  },
6184
6258
  this.pathSystem
6185
6259
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interactive-inc/docs-client",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check": "tsgo --noEmit",