@directus/api 12.1.3 → 13.1.0-beta.0
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/dist/__utils__/snapshots.js +9 -0
- package/dist/app.js +2 -0
- package/dist/cli/utils/create-env/env-stub.liquid +2 -2
- package/dist/controllers/branches.d.ts +2 -0
- package/dist/controllers/branches.js +190 -0
- package/dist/database/migrations/20230721A-require-shares-fields.js +16 -0
- package/dist/database/migrations/20230823A-add-content-versioning.d.ts +3 -0
- package/dist/database/migrations/20230823A-add-content-versioning.js +26 -0
- package/dist/database/system-data/fields/branches.yaml +19 -0
- package/dist/database/system-data/fields/collections.yaml +19 -0
- package/dist/env.js +4 -2
- package/dist/flows.d.ts +1 -0
- package/dist/flows.js +17 -12
- package/dist/logger.js +1 -2
- package/dist/middleware/respond.js +20 -0
- package/dist/operations/exec/index.js +42 -33
- package/dist/operations/json-web-token/index.d.ts +10 -0
- package/dist/operations/json-web-token/index.js +35 -0
- package/dist/operations/notification/index.js +2 -2
- package/dist/services/branches.d.ts +25 -0
- package/dist/services/branches.js +205 -0
- package/dist/services/fields.js +2 -2
- package/dist/services/graphql/index.js +0 -10
- package/dist/services/server.js +0 -3
- package/dist/services/specifications.js +2 -1
- package/dist/types/collection.d.ts +1 -0
- package/dist/utils/get-default-value.d.ts +4 -1
- package/dist/utils/get-default-value.js +2 -2
- package/dist/utils/redact-object.d.ts +23 -0
- package/dist/utils/{redact.js → redact-object.js} +45 -26
- package/dist/utils/sanitize-query.js +13 -6
- package/dist/utils/validate-query.js +1 -0
- package/package.json +17 -17
- package/dist/utils/redact.d.ts +0 -15
package/dist/utils/redact.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { UnknownObject } from '@directus/types';
|
|
2
|
-
type Paths = string[][];
|
|
3
|
-
/**
|
|
4
|
-
* Redact values at certain paths in an object.
|
|
5
|
-
* @param input Input object in which values should be redacted.
|
|
6
|
-
* @param paths Nested array of object paths to be redacted (supports `*` for shallow matching, `**` for deep matching).
|
|
7
|
-
* @param replacement Replacement the values are redacted by.
|
|
8
|
-
* @returns Redacted object.
|
|
9
|
-
*/
|
|
10
|
-
export declare function redact(input: UnknownObject, paths: Paths, replacement: string): UnknownObject;
|
|
11
|
-
/**
|
|
12
|
-
* Extract values from Error objects for use with JSON.stringify()
|
|
13
|
-
*/
|
|
14
|
-
export declare function errorReplacer(_key: string, value: unknown): unknown;
|
|
15
|
-
export {};
|