63 lines
1.4 KiB
JSON
Raw Normal View History

{
"name": "@strapi/admin-test-utils",
2023-07-05 16:46:16 +02:00
"version": "4.11.4",
"private": true,
"description": "Test utilities for the Strapi administration panel",
"license": "MIT",
"author": {
"name": "Strapi Solutions SAS",
"email": "hi@strapi.io",
"url": "https://strapi.io"
},
"maintainers": [
{
"name": "Strapi Solutions SAS",
"email": "hi@strapi.io",
"url": "https://strapi.io"
}
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js"
},
"./after-env": {
"require": "./dist/after-env.js"
},
"./environment": {
"require": "./dist/environment.js"
},
"./file-mock": {
"require": "./dist/file-mock.js"
},
"./global-setup": {
"require": "./dist/global-setup.js"
}
},
"dependencies": {
"@juggle/resize-observer": "3.4.0",
"@testing-library/jest-dom": "5.16.5",
Chore: Replace axios calls with helper-plugin utils (#16628) * overwrite the Authorization header when passed as config * replace axios call with fetchClient and remove axios cancel from the admin * replace axios call in the UseCasePage form * replace axios with useFetchClient inside the App component for the analytics call * replace axios calls with the post useFetchClient inside the AuthPage * remove axios instances inside the CollectionTypeFormWrapper and the SingleTypeFormWrapper * Replace axios call with useFetchClient inside the Register component * replace axios call with useFetchClient sinde the urlToFile utils * remove axios instances inside the useFetchContentTypeLayout * remove axios instances inside the ComponentSettingsView component * update test urlToFile * remove axios as dependency in admin and remove cancel token from ListView * remove axios dependency from the admin * revert dependency * replace the downloadFile axios call with getFetchClient * remove console log * fix issue if preferedLanguage is null * replace axios call with getFetchClient inside the urlToAssets utility * revert back cancel token inside CollectionTypeFormWrapper * revert cancel token logic * add the logic to handle paths without prepending slash * remove tip for the relative path * move the fetchMarketplaceProviders util inside the useFetchMarketplaceProviders file * use fetch instead of useFetchClient for external calls * remove the control of the preferedLanguage inside the Profile page * move up useFetchClient call * refactor normalize url * add mock getFetchClient in FromComputerForm test * fix check full url * refactor fetch * cleanup code * fix comments * fix review comments * refaactor fetch calls and fix types and format code * add more info in the documentation * fix unit tests marketplace and add a constants file shared between the two hooks * change the import order * refactor hooks returining type * move whatwg-fetch import inside the admin-test-util and small refactoring * fix test, remove comments and remove only
2023-05-17 11:01:28 +02:00
"jest-styled-components": "7.1.1",
"whatwg-fetch": "3.6.2"
},
"devDependencies": {
2023-07-05 16:46:16 +02:00
"eslint-config-custom": "4.11.4",
2023-02-09 14:51:02 +01:00
"redux": "^4.2.1",
2023-07-05 16:46:16 +02:00
"tsconfig": "4.11.4"
},
2022-08-08 23:33:39 +02:00
"peerDependencies": {
2023-02-09 14:51:02 +01:00
"redux": "^4.2.1"
2022-08-08 23:33:39 +02:00
},
"scripts": {
"build": "run -T tsc",
"build:ts": "run -T tsc",
"watch": "run -T tsc -w --preserveWatchOutput",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint ."
},
"engines": {
2022-09-08 08:44:27 +02:00
"node": ">=14.19.1 <=18.x.x"
}
}