@strapi/utils 5.3.0 → 5.4.1
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/relations.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { Attribute, Model } from './types';
|
|
2
|
-
declare const getRelationalFields: (contentType: Model) => string[];
|
|
3
|
-
declare const isOneToAny: (attribute: Attribute) => boolean;
|
|
4
|
-
declare const isManyToAny: (attribute: Attribute) => boolean;
|
|
5
|
-
declare const isAnyToOne: (attribute: Attribute) => boolean;
|
|
6
|
-
declare const isAnyToMany: (attribute: Attribute) => boolean;
|
|
2
|
+
export declare const getRelationalFields: (contentType: Model) => string[];
|
|
3
|
+
export declare const isOneToAny: (attribute: Attribute) => boolean;
|
|
4
|
+
export declare const isManyToAny: (attribute: Attribute) => boolean;
|
|
5
|
+
export declare const isAnyToOne: (attribute: Attribute) => boolean;
|
|
6
|
+
export declare const isAnyToMany: (attribute: Attribute) => boolean;
|
|
7
|
+
export declare const isPolymorphic: (attribute: any) => any;
|
|
7
8
|
export declare const constants: {
|
|
8
9
|
MANY_RELATIONS: string[];
|
|
9
10
|
};
|
|
10
11
|
export declare const VALID_RELATION_ORDERING_KEYS: {
|
|
11
12
|
[key: string]: (value: any) => boolean;
|
|
12
13
|
};
|
|
13
|
-
export { getRelationalFields, isOneToAny, isManyToAny, isAnyToOne, isAnyToMany };
|
|
14
14
|
//# sourceMappingURL=relations.d.ts.map
|
package/dist/relations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../src/relations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhD,
|
|
1
|
+
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../src/relations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhD,eAAO,MAAM,mBAAmB,gBAAiB,KAAK,aAIrD,CAAC;AAEF,eAAO,MAAM,UAAU,cAAe,SAAS,YAC6C,CAAC;AAE7F,eAAO,MAAM,WAAW,cAAe,SAAS,YAC8C,CAAC;AAE/F,eAAO,MAAM,UAAU,cAAe,SAAS,YAC6C,CAAC;AAE7F,eAAO,MAAM,WAAW,cAAe,SAAS,YAC8C,CAAC;AAE/F,eAAO,MAAM,aAAa,cAAe,GAAG,KAAG,GACsC,CAAC;AAEtF,eAAO,MAAM,SAAS;;CAErB,CAAC;AAIF,eAAO,MAAM,4BAA4B,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAA;CAElF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-restricted-relations.d.ts","sourceRoot":"","sources":["../../../src/sanitize/visitors/remove-restricted-relations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;+BAShC,OAAO,KAAG,OAAO;AAAvC,
|
|
1
|
+
{"version":3,"file":"remove-restricted-relations.d.ts","sourceRoot":"","sources":["../../../src/sanitize/visitors/remove-restricted-relations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;+BAShC,OAAO,KAAG,OAAO;AAAvC,wBAsHI"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "Shared utilities for the Strapi packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"@types/http-errors": "2.0.4",
|
|
61
61
|
"@types/koa": "2.13.4",
|
|
62
62
|
"@types/node": "18.19.24",
|
|
63
|
-
"eslint-config-custom": "5.
|
|
63
|
+
"eslint-config-custom": "5.4.1",
|
|
64
64
|
"koa": "2.15.2",
|
|
65
65
|
"koa-body": "6.0.1",
|
|
66
|
-
"tsconfig": "5.
|
|
66
|
+
"tsconfig": "5.4.1"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=18.0.0 <=22.x.x",
|
|
70
70
|
"npm": ">=6.0.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "c7e2ed60ecd8893748d30753ce16f0357e3c3663"
|
|
73
73
|
}
|