@strapi/utils 4.12.0-beta.2 → 4.12.0-beta.4
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/convert-query-params.d.ts +1 -1
- package/dist/index.d.ts +131 -30
- package/dist/index.js +77 -68
- package/dist/index.js.map +1 -1
- package/dist/operators.js +1 -0
- package/dist/operators.js.map +1 -1
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ type SortOrder = 'asc' | 'desc';
|
|
|
3
3
|
export interface SortMap {
|
|
4
4
|
[key: string]: SortOrder | SortMap;
|
|
5
5
|
}
|
|
6
|
-
interface SortParamsObject {
|
|
6
|
+
export interface SortParamsObject {
|
|
7
7
|
[key: string]: SortOrder | SortParamsObject;
|
|
8
8
|
}
|
|
9
9
|
type SortParams = string | string[] | SortParamsObject | SortParamsObject[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,30 +1,131 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
/// <reference types="koa" />
|
|
2
|
+
/// <reference types="formidable" />
|
|
3
|
+
/// <reference types="lodash" />
|
|
4
|
+
import * as policy from './policy';
|
|
5
|
+
import * as errors from './errors';
|
|
6
|
+
import * as contentTypes from './content-types';
|
|
7
|
+
import * as relations from './relations';
|
|
8
|
+
import * as hooks from './hooks';
|
|
9
|
+
import * as pagination from './pagination';
|
|
10
|
+
import { pipeAsync } from './async';
|
|
11
|
+
import importDefault from './import-default';
|
|
12
|
+
import * as template from './template';
|
|
13
|
+
import * as file from './file';
|
|
14
|
+
import * as traverse from './traverse';
|
|
15
|
+
declare const _default: {
|
|
16
|
+
parseMultipartData: (ctx: import("./types").Context) => import("koa").Context | {
|
|
17
|
+
data: any;
|
|
18
|
+
files: import("formidable").Files;
|
|
19
|
+
};
|
|
20
|
+
parseType: <Type extends keyof {
|
|
21
|
+
boolean: boolean;
|
|
22
|
+
integer: number;
|
|
23
|
+
biginteger: number;
|
|
24
|
+
float: number;
|
|
25
|
+
decimal: number;
|
|
26
|
+
time: string;
|
|
27
|
+
date: string;
|
|
28
|
+
timestamp: Date;
|
|
29
|
+
datetime: Date;
|
|
30
|
+
}>(options: import("./parse-type").ParseTypeOptions<Type>) => {
|
|
31
|
+
boolean: boolean;
|
|
32
|
+
integer: number;
|
|
33
|
+
biginteger: number;
|
|
34
|
+
float: number;
|
|
35
|
+
decimal: number;
|
|
36
|
+
time: string;
|
|
37
|
+
date: string;
|
|
38
|
+
timestamp: Date;
|
|
39
|
+
datetime: Date;
|
|
40
|
+
}[Type];
|
|
41
|
+
policy: typeof policy;
|
|
42
|
+
templateConfiguration: (obj: Record<string, unknown>, configPath?: string) => Record<string, unknown>;
|
|
43
|
+
yup: typeof import("yup") & {
|
|
44
|
+
strapiID: () => import("./validators").StrapiIDSchema;
|
|
45
|
+
};
|
|
46
|
+
handleYupError: (error: import("yup").ValidationError, errorMessage: string) => never;
|
|
47
|
+
validateYupSchema: (schema: import("yup").AnySchema, options?: {}) => (body: unknown, errorMessage: string) => Promise<any>;
|
|
48
|
+
validateYupSchemaSync: (schema: import("yup").AnySchema, options?: {}) => (body: unknown, errorMessage: string) => any;
|
|
49
|
+
errors: typeof errors;
|
|
50
|
+
nameToSlug: (name: string, options?: import("@sindresorhus/slugify").Options) => string;
|
|
51
|
+
nameToCollectionName: (name: string) => string;
|
|
52
|
+
getCommonBeginning: (...strings: string[]) => string;
|
|
53
|
+
escapeQuery: (query: string, charsToEscape: string, escapeChar?: string) => string;
|
|
54
|
+
stringIncludes: (arr: unknown[], val: unknown) => boolean;
|
|
55
|
+
stringEquals: (a: unknown, b: unknown) => boolean;
|
|
56
|
+
isKebabCase: (value: string) => boolean;
|
|
57
|
+
isCamelCase: (value: string) => boolean;
|
|
58
|
+
toRegressedEnumValue: (value: string) => string;
|
|
59
|
+
startsWithANumber: (value: string) => boolean;
|
|
60
|
+
joinBy: (joint: string, ...args: string[]) => string;
|
|
61
|
+
toKebabCase: (value: string) => string;
|
|
62
|
+
removeUndefined: <T extends object>(obj: T) => Partial<T>;
|
|
63
|
+
keysDeep: (obj: object, path?: string[]) => string[];
|
|
64
|
+
getConfigUrls: (config: import("./types").Config, forAdminBuild?: boolean) => {
|
|
65
|
+
serverUrl: string;
|
|
66
|
+
adminUrl: any;
|
|
67
|
+
adminPath: any;
|
|
68
|
+
};
|
|
69
|
+
getAbsoluteAdminUrl: (config: import("./types").Config, forAdminBuild?: boolean) => any;
|
|
70
|
+
getAbsoluteServerUrl: (config: import("./types").Config, forAdminBuild?: boolean) => any;
|
|
71
|
+
generateTimestampCode: (date: Date) => string;
|
|
72
|
+
contentTypes: typeof contentTypes;
|
|
73
|
+
env: (<T_1>(key: string, defaultValue?: T_1 | undefined) => string | T_1 | undefined) & {
|
|
74
|
+
int(key: string, defaultValue?: number | undefined): number | undefined;
|
|
75
|
+
float(key: string, defaultValue?: number | undefined): number | undefined;
|
|
76
|
+
bool(key: string, defaultValue?: boolean | undefined): boolean | undefined;
|
|
77
|
+
json(key: string, defaultValue?: object | undefined): any;
|
|
78
|
+
array(key: string, defaultValue?: string[] | undefined): string[] | undefined;
|
|
79
|
+
date(key: string, defaultValue?: Date | undefined): Date | undefined;
|
|
80
|
+
oneOf(key: string, expectedValues?: unknown[] | undefined, defaultValue?: unknown): unknown;
|
|
81
|
+
};
|
|
82
|
+
relations: typeof relations;
|
|
83
|
+
setCreatorFields: <TData extends object>({ user, isEdition }: import("./set-creator-fields").Options) => <TDataInner extends object = TData>(data: TDataInner) => TDataInner;
|
|
84
|
+
hooks: typeof hooks;
|
|
85
|
+
providerFactory: import("./provider-factory").ProviderFactory;
|
|
86
|
+
pagination: typeof pagination;
|
|
87
|
+
sanitize: {
|
|
88
|
+
contentAPI: {
|
|
89
|
+
input: import("./sanitize").SanitizeFunc;
|
|
90
|
+
output: import("./sanitize").SanitizeFunc;
|
|
91
|
+
query: (query: Record<string, unknown>, schema: import("./types").Model, { auth }?: import("./sanitize").Options) => Promise<Record<string, unknown>>;
|
|
92
|
+
filters: import("./sanitize").SanitizeFunc;
|
|
93
|
+
sort: import("./sanitize").SanitizeFunc;
|
|
94
|
+
fields: import("./sanitize").SanitizeFunc;
|
|
95
|
+
populate: import("./sanitize").SanitizeFunc;
|
|
96
|
+
};
|
|
97
|
+
sanitizers: typeof import("./sanitize/sanitizers");
|
|
98
|
+
visitors: typeof import("./sanitize/visitors");
|
|
99
|
+
};
|
|
100
|
+
traverseEntity: import("lodash").CurriedFunction3<import("./traverse-entity").Visitor, import("./traverse-entity").TraverseOptions, import("./traverse-entity").Data, Promise<import("./traverse-entity").Data>>;
|
|
101
|
+
pipeAsync: typeof pipeAsync;
|
|
102
|
+
mapAsync: (...args: any[]) => any;
|
|
103
|
+
reduceAsync: (mixedArray: any[]) => <T_2>(iteratee: (...args: any) => any, initialValue?: T_2 | undefined) => Promise<T_2 | undefined>;
|
|
104
|
+
forEachAsync: <T_3, R>(array: T_3[], func: import("p-map").Mapper<T_3, R>, options: import("p-map").Options) => Promise<void>;
|
|
105
|
+
convertQueryParams: {
|
|
106
|
+
convertSortQueryParams: (sortQuery: string | string[] | import("./convert-query-params").SortParamsObject | import("./convert-query-params").SortParamsObject[]) => import("./convert-query-params").SortMap | import("./convert-query-params").SortMap[];
|
|
107
|
+
convertStartQueryParams: (startQuery: unknown) => number;
|
|
108
|
+
convertLimitQueryParams: (limitQuery: unknown) => number | undefined;
|
|
109
|
+
convertPopulateQueryParams: (populate: string | string[] | import("./convert-query-params").PopulateAttributesParams, schema: import("./types").Model, depth?: number) => boolean | string[] | {
|
|
110
|
+
[key: string]: boolean | string[] | any;
|
|
111
|
+
};
|
|
112
|
+
convertFiltersQueryParams: (filters: unknown, schema: import("./types").Model) => import("./convert-query-params").WhereQuery;
|
|
113
|
+
convertFieldsQueryParams: (fields: string | string[], depth?: number) => (string | string[]) | undefined;
|
|
114
|
+
convertPublicationStateParams: (schema: import("./types").Model, params?: {
|
|
115
|
+
publicationState?: "live" | "preview" | undefined;
|
|
116
|
+
}, query?: import("./convert-query-params").Query) => void;
|
|
117
|
+
transformParamsToQuery: (uid: string, params: import("./convert-query-params").Params) => import("./convert-query-params").Query;
|
|
118
|
+
};
|
|
119
|
+
importDefault: typeof importDefault;
|
|
120
|
+
template: typeof template;
|
|
121
|
+
file: typeof file;
|
|
122
|
+
traverse: typeof traverse;
|
|
123
|
+
webhook: {
|
|
124
|
+
webhookEvents: {
|
|
125
|
+
[x: string]: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
isOperator: (key: string, ignoreCase?: boolean) => boolean;
|
|
129
|
+
isOperatorOfType: (type: string, key: string, ignoreCase?: boolean) => boolean;
|
|
130
|
+
};
|
|
131
|
+
export = _default;
|
package/dist/index.js
CHANGED
|
@@ -25,75 +25,84 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.isOperatorOfType = exports.isOperator = exports.webhook = exports.traverse = exports.file = exports.template = exports.importDefault = exports.convertQueryParams = exports.forEachAsync = exports.reduceAsync = exports.mapAsync = exports.pipeAsync = exports.traverseEntity = exports.sanitize = exports.pagination = exports.providerFactory = exports.hooks = exports.setCreatorFields = exports.relations = exports.env = exports.contentTypes = exports.generateTimestampCode = exports.getAbsoluteServerUrl = exports.getAbsoluteAdminUrl = exports.getConfigUrls = exports.keysDeep = exports.removeUndefined = exports.toKebabCase = exports.joinBy = exports.startsWithANumber = exports.toRegressedEnumValue = exports.isCamelCase = exports.isKebabCase = exports.stringEquals = exports.stringIncludes = exports.escapeQuery = exports.getCommonBeginning = exports.nameToCollectionName = exports.nameToSlug = exports.errors = exports.validateYupSchemaSync = exports.validateYupSchema = exports.handleYupError = exports.yup = exports.templateConfiguration = exports.policy = exports.parseType = exports.parseMultipartData = void 0;
|
|
30
28
|
/**
|
|
31
29
|
* Export shared utilities
|
|
32
30
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
31
|
+
const parse_multipart_1 = __importDefault(require("./parse-multipart"));
|
|
32
|
+
const parse_type_1 = __importDefault(require("./parse-type"));
|
|
33
|
+
const policy = __importStar(require("./policy"));
|
|
34
|
+
const template_configuration_1 = __importDefault(require("./template-configuration"));
|
|
35
|
+
const validators_1 = require("./validators");
|
|
36
|
+
const errors = __importStar(require("./errors"));
|
|
37
|
+
const string_formatting_1 = require("./string-formatting");
|
|
38
|
+
const object_formatting_1 = require("./object-formatting");
|
|
39
|
+
const config_1 = require("./config");
|
|
40
|
+
const code_generator_1 = require("./code-generator");
|
|
41
|
+
const contentTypes = __importStar(require("./content-types"));
|
|
42
|
+
const env_helper_1 = __importDefault(require("./env-helper"));
|
|
43
|
+
const relations = __importStar(require("./relations"));
|
|
44
|
+
const set_creator_fields_1 = __importDefault(require("./set-creator-fields"));
|
|
45
|
+
const hooks = __importStar(require("./hooks"));
|
|
46
|
+
const provider_factory_1 = __importDefault(require("./provider-factory"));
|
|
47
|
+
const pagination = __importStar(require("./pagination"));
|
|
48
|
+
const sanitize_1 = __importDefault(require("./sanitize"));
|
|
49
|
+
const traverse_entity_1 = __importDefault(require("./traverse-entity"));
|
|
50
|
+
const async_1 = require("./async");
|
|
51
|
+
const convert_query_params_1 = __importDefault(require("./convert-query-params"));
|
|
52
|
+
const import_default_1 = __importDefault(require("./import-default"));
|
|
53
|
+
const template = __importStar(require("./template"));
|
|
54
|
+
const file = __importStar(require("./file"));
|
|
55
|
+
const traverse = __importStar(require("./traverse"));
|
|
56
|
+
const webhook_1 = __importDefault(require("./webhook"));
|
|
57
|
+
const operators_1 = require("./operators");
|
|
58
|
+
module.exports = {
|
|
59
|
+
parseMultipartData: parse_multipart_1.default,
|
|
60
|
+
parseType: parse_type_1.default,
|
|
61
|
+
policy,
|
|
62
|
+
templateConfiguration: template_configuration_1.default,
|
|
63
|
+
yup: validators_1.yup,
|
|
64
|
+
handleYupError: validators_1.handleYupError,
|
|
65
|
+
validateYupSchema: validators_1.validateYupSchema,
|
|
66
|
+
validateYupSchemaSync: validators_1.validateYupSchemaSync,
|
|
67
|
+
errors,
|
|
68
|
+
nameToSlug: string_formatting_1.nameToSlug,
|
|
69
|
+
nameToCollectionName: string_formatting_1.nameToCollectionName,
|
|
70
|
+
getCommonBeginning: string_formatting_1.getCommonBeginning,
|
|
71
|
+
escapeQuery: string_formatting_1.escapeQuery,
|
|
72
|
+
stringIncludes: string_formatting_1.stringIncludes,
|
|
73
|
+
stringEquals: string_formatting_1.stringEquals,
|
|
74
|
+
isKebabCase: string_formatting_1.isKebabCase,
|
|
75
|
+
isCamelCase: string_formatting_1.isCamelCase,
|
|
76
|
+
toRegressedEnumValue: string_formatting_1.toRegressedEnumValue,
|
|
77
|
+
startsWithANumber: string_formatting_1.startsWithANumber,
|
|
78
|
+
joinBy: string_formatting_1.joinBy,
|
|
79
|
+
toKebabCase: string_formatting_1.toKebabCase,
|
|
80
|
+
removeUndefined: object_formatting_1.removeUndefined,
|
|
81
|
+
keysDeep: object_formatting_1.keysDeep,
|
|
82
|
+
getConfigUrls: config_1.getConfigUrls,
|
|
83
|
+
getAbsoluteAdminUrl: config_1.getAbsoluteAdminUrl,
|
|
84
|
+
getAbsoluteServerUrl: config_1.getAbsoluteServerUrl,
|
|
85
|
+
generateTimestampCode: code_generator_1.generateTimestampCode,
|
|
86
|
+
contentTypes,
|
|
87
|
+
env: env_helper_1.default,
|
|
88
|
+
relations,
|
|
89
|
+
setCreatorFields: set_creator_fields_1.default,
|
|
90
|
+
hooks,
|
|
91
|
+
providerFactory: provider_factory_1.default,
|
|
92
|
+
pagination,
|
|
93
|
+
sanitize: sanitize_1.default,
|
|
94
|
+
traverseEntity: traverse_entity_1.default,
|
|
95
|
+
pipeAsync: async_1.pipeAsync,
|
|
96
|
+
mapAsync: async_1.mapAsync,
|
|
97
|
+
reduceAsync: async_1.reduceAsync,
|
|
98
|
+
forEachAsync: async_1.forEachAsync,
|
|
99
|
+
convertQueryParams: convert_query_params_1.default,
|
|
100
|
+
importDefault: import_default_1.default,
|
|
101
|
+
template,
|
|
102
|
+
file,
|
|
103
|
+
traverse,
|
|
104
|
+
webhook: webhook_1.default,
|
|
105
|
+
isOperator: operators_1.isOperator,
|
|
106
|
+
isOperatorOfType: operators_1.isOperatorOfType,
|
|
107
|
+
};
|
|
99
108
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,wEAAmD;AACnD,8DAAqC;AACrC,iDAAmC;AACnC,sFAA6D;AAC7D,6CAA6F;AAC7F,iDAAmC;AACnC,2DAa6B;AAC7B,2DAAgE;AAChE,qCAAoF;AACpF,qDAAyD;AACzD,8DAAgD;AAChD,8DAA+B;AAC/B,uDAAyC;AACzC,8EAAoD;AACpD,+CAAiC;AACjC,0EAAiD;AACjD,yDAA2C;AAC3C,0DAAkC;AAClC,wEAA+C;AAC/C,mCAAyE;AACzE,kFAAwD;AACxD,sEAA6C;AAC7C,qDAAuC;AACvC,6CAA+B;AAC/B,qDAAuC;AACvC,wDAAgC;AAChC,2CAA2D;AAE3D,iBAAS;IACP,kBAAkB,EAAlB,yBAAkB;IAClB,SAAS,EAAT,oBAAS;IACT,MAAM;IACN,qBAAqB,EAArB,gCAAqB;IACrB,GAAG,EAAH,gBAAG;IACH,cAAc,EAAd,2BAAc;IACd,iBAAiB,EAAjB,8BAAiB;IACjB,qBAAqB,EAArB,kCAAqB;IACrB,MAAM;IACN,UAAU,EAAV,8BAAU;IACV,oBAAoB,EAApB,wCAAoB;IACpB,kBAAkB,EAAlB,sCAAkB;IAClB,WAAW,EAAX,+BAAW;IACX,cAAc,EAAd,kCAAc;IACd,YAAY,EAAZ,gCAAY;IACZ,WAAW,EAAX,+BAAW;IACX,WAAW,EAAX,+BAAW;IACX,oBAAoB,EAApB,wCAAoB;IACpB,iBAAiB,EAAjB,qCAAiB;IACjB,MAAM,EAAN,0BAAM;IACN,WAAW,EAAX,+BAAW;IACX,eAAe,EAAf,mCAAe;IACf,QAAQ,EAAR,4BAAQ;IACR,aAAa,EAAb,sBAAa;IACb,mBAAmB,EAAnB,4BAAmB;IACnB,oBAAoB,EAApB,6BAAoB;IACpB,qBAAqB,EAArB,sCAAqB;IACrB,YAAY;IACZ,GAAG,EAAH,oBAAG;IACH,SAAS;IACT,gBAAgB,EAAhB,4BAAgB;IAChB,KAAK;IACL,eAAe,EAAf,0BAAe;IACf,UAAU;IACV,QAAQ,EAAR,kBAAQ;IACR,cAAc,EAAd,yBAAc;IACd,SAAS,EAAT,iBAAS;IACT,QAAQ,EAAR,gBAAQ;IACR,WAAW,EAAX,mBAAW;IACX,YAAY,EAAZ,oBAAY;IACZ,kBAAkB,EAAlB,8BAAkB;IAClB,aAAa,EAAb,wBAAa;IACb,QAAQ;IACR,IAAI;IACJ,QAAQ;IACR,OAAO,EAAP,iBAAO;IACP,UAAU,EAAV,sBAAU;IACV,gBAAgB,EAAhB,4BAAgB;CACjB,CAAC"}
|
package/dist/operators.js
CHANGED
package/dist/operators.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operators.js","sourceRoot":"","sources":["../src/operators.ts"],"names":[],"mappings":";;;AAAA,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAExC,MAAM,eAAe,GAAG;IACtB,MAAM;IACN,KAAK;IACL,QAAQ;IACR,KAAK;IACL,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,UAAU;IACV,UAAU;IACV,aAAa;IACb,WAAW;IACX,cAAc;IACd,YAAY;IACZ,WAAW;IACX,cAAc;IACd,YAAY;IACZ,eAAe;IACf,iBAAiB;CAClB,CAAC;AAEF,MAAM,cAAc,GAAG;IACrB,MAAM;IACN,KAAK;IACL,QAAQ;IACR,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CAAC,WAAW,EAAE,CAAC;CAC3C,CAAC,CACH,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAmB,GAA6B,EAAE,GAAM,EAAkB,EAAE;IAC3F,OAAO,GAAG,IAAI,GAAG,CAAC;AACpB,CAAC,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,GAAW,EAAE,UAAU,GAAG,KAAK,EAAE,EAAE;IAChF,IAAI,UAAU,EAAE;QACd,OAAO,mBAAmB,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,IAAI,KAAK,CAAC;KACxE;IAED,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE;QAC7B,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC;KAChD;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAVW,QAAA,gBAAgB,oBAU3B;AAEK,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,UAAU,GAAG,KAAK,EAAE,EAAE;IAC5D,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,wBAAgB,EAAC,IAAI,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC;AACxF,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/utils",
|
|
3
|
-
"version": "4.12.0-beta.
|
|
3
|
+
"version": "4.12.0-beta.4",
|
|
4
4
|
"description": "Shared utilities for the Strapi packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/koa": "2.13.4",
|
|
58
|
-
"eslint-config-custom": "4.12.0-beta.
|
|
58
|
+
"eslint-config-custom": "4.12.0-beta.4",
|
|
59
59
|
"koa": "2.13.4",
|
|
60
60
|
"koa-body": "4.2.0",
|
|
61
|
-
"tsconfig": "4.12.0-beta.
|
|
61
|
+
"tsconfig": "4.12.0-beta.4"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=14.19.1 <=18.x.x",
|
|
65
65
|
"npm": ">=6.0.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "edcf86b496a7bee5189cdbfeb16f5a5c0abccc81"
|
|
68
68
|
}
|