Files
directus/packages/shared/package.json
Rijk van Zanten 90f5b0a471 Add functions support to the app + add count function (#12488)
* Rename date functions to fn, add json_array_length for pg

* Add json count to mssql

* Add json array count support to other vendors

* Add UI for selecting API functions

* Make it not break

* Render functions in filter preview better

* Include functions in field altering

* Add schema access to database helper

* Allow filtering against o2m/m2m/m2a count

* Add data function execution helpers in utils

* Fix type issue

* Inject function results in validate step

* Render field keys with function names translated

* Allow selecting nested/functions in field validation step

* Make sure number comparisons are treated as numbers

* Add check if instanceof date when casting to a Number

* Prevent selecting foreign keys for junction sort (#12463)

* [SDK] Add further request options to `items` functions (#12503)

* add possibility to set further options to the request

* fix options type

* add typings to interface

* add test if headers are passed thourght

* create reusable options param

* set higher priority to options param

* Small stylistic cleanup

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Jürg Hunziker <juerg.hunziker@gmail.com>
2022-03-31 16:56:26 -04:00

79 lines
2.0 KiB
JSON

{
"name": "@directus/shared",
"version": "9.7.1",
"description": "Code shared between all directus packages.",
"exports": {
"./composables": {
"import": "./dist/esm/composables/index.js",
"require": "./dist/cjs/composables/index.js"
},
"./constants": {
"import": "./dist/esm/constants/index.js",
"require": "./dist/cjs/constants/index.js"
},
"./exceptions": {
"import": "./dist/esm/exceptions/index.js",
"require": "./dist/cjs/exceptions/index.js"
},
"./types": {
"import": "./dist/esm/types/index.js",
"require": "./dist/cjs/types/index.js"
},
"./utils": {
"import": "./dist/esm/utils/index.js",
"require": "./dist/cjs/utils/index.js"
},
"./utils/browser": {
"import": "./dist/esm/utils/browser/index.js",
"require": "./dist/cjs/utils/browser/index.js"
},
"./utils/node": {
"import": "./dist/esm/utils/node/index.js",
"require": "./dist/cjs/utils/node/index.js"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"scripts": {
"build": "run-p \"build:* -- {@}\" --",
"build:esm": "tsc --project ./tsconfig.json --module ES2015 --outDir ./dist/esm",
"build:cjs": "tsc --project ./tsconfig.json --module CommonJS --outDir ./dist/cjs",
"cleanup": "rimraf ./dist",
"dev": "npm run build -- -w --preserveWatchOutput --incremental",
"test": "jest",
"test:watch": "jest --watchAll",
"prepublishOnly": "npm run cleanup && npm run build"
},
"author": "Nicola Krumschmidt",
"maintainers": [
"Rijk van Zanten <rijkvanzanten@me.com>"
],
"gitHead": "24621f3934dc77eb23441331040ed13c676ceffd",
"dependencies": {
"date-fns": "2.24.0",
"fs-extra": "10.0.0",
"joi": "17.4.2",
"lodash": "4.17.21"
},
"peerDependencies": {
"@types/express": "*",
"@types/geojson": "*",
"@types/pino": "*",
"axios": "*",
"express": "*",
"geojson": "*",
"knex": "*",
"knex-schema-inspector": "*",
"pino": "*",
"vue": "3",
"vue-i18n": "9",
"vue-router": "4"
},
"devDependencies": {
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
"tmp": "0.2.1",
"typescript": "4.5.2"
}
}