@directus/constants
Advanced tools
Comparing version 10.2.4-beta.0 to 11.0.0
@@ -1,6 +0,28 @@ | ||
export * from './activity.js'; | ||
export * from './extensions.js'; | ||
export * from './fields.js'; | ||
export * from './files.js'; | ||
export * from './injection.js'; | ||
export * from './regex.js'; | ||
declare enum Action { | ||
CREATE = "create", | ||
UPDATE = "update", | ||
DELETE = "delete", | ||
REVERT = "revert", | ||
COMMENT = "comment", | ||
UPLOAD = "upload", | ||
LOGIN = "login", | ||
RUN = "run" | ||
} | ||
declare const KNEX_TYPES: readonly ["bigInteger", "boolean", "date", "dateTime", "decimal", "float", "integer", "json", "string", "text", "time", "timestamp", "binary", "uuid"]; | ||
declare const TYPES: readonly ["bigInteger", "boolean", "date", "dateTime", "decimal", "float", "integer", "json", "string", "text", "time", "timestamp", "binary", "uuid", "alias", "hash", "csv", "geometry", "geometry.Point", "geometry.LineString", "geometry.Polygon", "geometry.MultiPoint", "geometry.MultiLineString", "geometry.MultiPolygon", "unknown"]; | ||
declare const GEOMETRY_TYPES: readonly ["Point", "LineString", "Polygon", "MultiPoint", "MultiLineString", "MultiPolygon"]; | ||
declare const GEOMETRY_FORMATS: readonly ["native", "geojson", "wkt", "lnglat"]; | ||
declare const LOCAL_TYPES: readonly ["standard", "file", "files", "m2o", "o2m", "m2m", "m2a", "presentation", "translations", "group"]; | ||
declare const RELATIONAL_TYPES: readonly ["file", "files", "m2o", "o2m", "m2m", "m2a", "presentation", "translations", "group"]; | ||
declare const FUNCTIONS: readonly ["year", "month", "week", "day", "weekday", "hour", "minute", "second", "count"]; | ||
declare const JAVASCRIPT_FILE_EXTS: readonly ["js", "mjs", "cjs"]; | ||
declare const STORES_INJECT = "stores"; | ||
declare const API_INJECT = "api"; | ||
declare const EXTENSIONS_INJECT = "extensions"; | ||
declare const REGEX_BETWEEN_PARENS: RegExp; | ||
export { API_INJECT, Action, EXTENSIONS_INJECT, FUNCTIONS, GEOMETRY_FORMATS, GEOMETRY_TYPES, JAVASCRIPT_FILE_EXTS, KNEX_TYPES, LOCAL_TYPES, REGEX_BETWEEN_PARENS, RELATIONAL_TYPES, STORES_INJECT, TYPES }; |
@@ -1,6 +0,103 @@ | ||
export * from './activity.js'; | ||
export * from './extensions.js'; | ||
export * from './fields.js'; | ||
export * from './files.js'; | ||
export * from './injection.js'; | ||
export * from './regex.js'; | ||
// src/activity.ts | ||
var Action = /* @__PURE__ */ ((Action2) => { | ||
Action2["CREATE"] = "create"; | ||
Action2["UPDATE"] = "update"; | ||
Action2["DELETE"] = "delete"; | ||
Action2["REVERT"] = "revert"; | ||
Action2["COMMENT"] = "comment"; | ||
Action2["UPLOAD"] = "upload"; | ||
Action2["LOGIN"] = "login"; | ||
Action2["RUN"] = "run"; | ||
return Action2; | ||
})(Action || {}); | ||
// src/fields.ts | ||
var KNEX_TYPES = [ | ||
"bigInteger", | ||
"boolean", | ||
"date", | ||
"dateTime", | ||
"decimal", | ||
"float", | ||
"integer", | ||
"json", | ||
"string", | ||
"text", | ||
"time", | ||
"timestamp", | ||
"binary", | ||
"uuid" | ||
]; | ||
var TYPES = [ | ||
...KNEX_TYPES, | ||
"alias", | ||
"hash", | ||
"csv", | ||
"geometry", | ||
"geometry.Point", | ||
"geometry.LineString", | ||
"geometry.Polygon", | ||
"geometry.MultiPoint", | ||
"geometry.MultiLineString", | ||
"geometry.MultiPolygon", | ||
"unknown" | ||
]; | ||
var GEOMETRY_TYPES = [ | ||
"Point", | ||
"LineString", | ||
"Polygon", | ||
"MultiPoint", | ||
"MultiLineString", | ||
"MultiPolygon" | ||
]; | ||
var GEOMETRY_FORMATS = ["native", "geojson", "wkt", "lnglat"]; | ||
var LOCAL_TYPES = [ | ||
"standard", | ||
"file", | ||
"files", | ||
"m2o", | ||
"o2m", | ||
"m2m", | ||
"m2a", | ||
"presentation", | ||
"translations", | ||
"group" | ||
]; | ||
var RELATIONAL_TYPES = [ | ||
"file", | ||
"files", | ||
"m2o", | ||
"o2m", | ||
"m2m", | ||
"m2a", | ||
"presentation", | ||
"translations", | ||
"group" | ||
]; | ||
var FUNCTIONS = ["year", "month", "week", "day", "weekday", "hour", "minute", "second", "count"]; | ||
// src/files.ts | ||
var JAVASCRIPT_FILE_EXTS = ["js", "mjs", "cjs"]; | ||
// src/injection.ts | ||
var STORES_INJECT = "stores"; | ||
var API_INJECT = "api"; | ||
var EXTENSIONS_INJECT = "extensions"; | ||
// src/regex.ts | ||
var REGEX_BETWEEN_PARENS = /\(([^)]+)\)/; | ||
export { | ||
API_INJECT, | ||
Action, | ||
EXTENSIONS_INJECT, | ||
FUNCTIONS, | ||
GEOMETRY_FORMATS, | ||
GEOMETRY_TYPES, | ||
JAVASCRIPT_FILE_EXTS, | ||
KNEX_TYPES, | ||
LOCAL_TYPES, | ||
REGEX_BETWEEN_PARENS, | ||
RELATIONAL_TYPES, | ||
STORES_INJECT, | ||
TYPES | ||
}; |
{ | ||
"name": "@directus/constants", | ||
"version": "10.2.4-beta.0", | ||
"version": "11.0.0", | ||
"description": "Shared constants for Directus", | ||
@@ -28,9 +28,10 @@ "homepage": "https://directus.io", | ||
"devDependencies": { | ||
"typescript": "5.0.4", | ||
"@directus/tsconfig": "1.0.0" | ||
"tsup": "7.2.0", | ||
"typescript": "5.2.2", | ||
"@directus/tsconfig": "1.0.1" | ||
}, | ||
"scripts": { | ||
"build": "tsc --project tsconfig.prod.json", | ||
"dev": "tsc --watch" | ||
"build": "tsup src/index.ts --format=esm --dts", | ||
"dev": "tsup src/index.ts --format=esm --dts --watch" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
6183
3
5
123
1