go-mokapi 0.27.1 → 0.27.2

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.
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "go-mokapi",
3
- "version": "0.27.1",
3
+ "version": "0.27.2",
4
4
  "description": "Easy and flexible API mocking",
5
5
  "homepage": "https://mokapi.io",
6
6
  "repository": {
package/types/faker.d.ts CHANGED
@@ -13,9 +13,13 @@
13
13
  export function fake(schema: Schema | JSONSchema): any;
14
14
 
15
15
  /**
16
- * Retrieves a node from the faker tree by its name.
16
+ * Retrieves a node from the faker tree by its name or path.
17
17
  *
18
- * @param name name - The name of the node to find.
18
+ * A node can be referenced either by its simple name (e.g. `"name"`) or by a path
19
+ * that describes its location in the tree (e.g. `"/person/name"` for an absolute
20
+ * path from the root, or `"middle/name"` for a relative path).
21
+ *
22
+ * @param name name - The name or path of the node to find.
19
23
  * @returns The matching {@link Node} from the faker tree.
20
24
  *
21
25
  * @example