├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .github └── workflows │ ├── npm-publish.yml │ └── pr-test.yml ├── .gitignore ├── .npmignore ├── .prettierignore ├── .prettierrc.json ├── LICENSE ├── README.md ├── __tests__ ├── mock │ ├── request │ │ ├── index.js │ │ ├── initial.js │ │ └── wrap-body-with-data-key.js │ └── response │ │ ├── all-response-transforms.js │ │ ├── index.js │ │ ├── initial.js │ │ ├── remove-attributes.js │ │ └── remove-data.js ├── request │ └── wrap-body-with-data-key.spec.js └── response │ ├── all-response-transforms.spec.js │ ├── remove-attributes.spec.js │ └── remove-data.spec.js ├── jest.config.js ├── package.json ├── server ├── config │ ├── index.js │ └── schema.js ├── index.js ├── middleware │ └── transform.js ├── register.js ├── services │ ├── index.js │ ├── settings-service.js │ └── transform-service │ │ ├── index.js │ │ ├── request.js │ │ ├── response.js │ │ └── util.js └── util │ ├── getPluginService.js │ └── pluginId.js ├── strapi-server.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/.github/workflows/npm-publish.yml -------------------------------------------------------------------------------- /.github/workflows/pr-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/.github/workflows/pr-test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | package-lock.json -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/mock/request/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/mock/request/index.js -------------------------------------------------------------------------------- /__tests__/mock/request/initial.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/mock/request/initial.js -------------------------------------------------------------------------------- /__tests__/mock/request/wrap-body-with-data-key.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/mock/request/wrap-body-with-data-key.js -------------------------------------------------------------------------------- /__tests__/mock/response/all-response-transforms.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/mock/response/all-response-transforms.js -------------------------------------------------------------------------------- /__tests__/mock/response/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/mock/response/index.js -------------------------------------------------------------------------------- /__tests__/mock/response/initial.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/mock/response/initial.js -------------------------------------------------------------------------------- /__tests__/mock/response/remove-attributes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/mock/response/remove-attributes.js -------------------------------------------------------------------------------- /__tests__/mock/response/remove-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/mock/response/remove-data.js -------------------------------------------------------------------------------- /__tests__/request/wrap-body-with-data-key.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/request/wrap-body-with-data-key.spec.js -------------------------------------------------------------------------------- /__tests__/response/all-response-transforms.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/response/all-response-transforms.spec.js -------------------------------------------------------------------------------- /__tests__/response/remove-attributes.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/response/remove-attributes.spec.js -------------------------------------------------------------------------------- /__tests__/response/remove-data.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/__tests__/response/remove-data.spec.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/package.json -------------------------------------------------------------------------------- /server/config/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/config/index.js -------------------------------------------------------------------------------- /server/config/schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/config/schema.js -------------------------------------------------------------------------------- /server/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/index.js -------------------------------------------------------------------------------- /server/middleware/transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/middleware/transform.js -------------------------------------------------------------------------------- /server/register.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/register.js -------------------------------------------------------------------------------- /server/services/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/services/index.js -------------------------------------------------------------------------------- /server/services/settings-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/services/settings-service.js -------------------------------------------------------------------------------- /server/services/transform-service/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/services/transform-service/index.js -------------------------------------------------------------------------------- /server/services/transform-service/request.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/services/transform-service/request.js -------------------------------------------------------------------------------- /server/services/transform-service/response.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/services/transform-service/response.js -------------------------------------------------------------------------------- /server/services/transform-service/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/services/transform-service/util.js -------------------------------------------------------------------------------- /server/util/getPluginService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/util/getPluginService.js -------------------------------------------------------------------------------- /server/util/pluginId.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/server/util/pluginId.js -------------------------------------------------------------------------------- /strapi-server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./server'); 4 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strapi-community/strapi-plugin-transformer/HEAD/yarn.lock --------------------------------------------------------------------------------