Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@directus/constants

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@directus/constants - npm Package Compare versions

Comparing version 10.2.4-beta.0 to 11.0.0

34

dist/index.d.ts

@@ -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
};

11

package.json
{
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc