diff --git a/src/helpers/__snapshots__/utils.test.ts.snap b/src/helpers/__snapshots__/utils.test.ts.snap index f185e182..b5905059 100644 --- a/src/helpers/__snapshots__/utils.test.ts.snap +++ b/src/helpers/__snapshots__/utils.test.ts.snap @@ -180,7 +180,7 @@ exports[`availableTargets > returns all available targets 1`] = ` "clients": [ { "description": "Promise based HTTP client for the browser and node.js", - "extname": ".cjs", + "extname": ".js", "installation": "npm install axios --save", "key": "axios", "link": "https://github.com/axios/axios", diff --git a/src/helpers/utils.test.ts b/src/helpers/utils.test.ts index e9033793..dfe75158 100644 --- a/src/helpers/utils.test.ts +++ b/src/helpers/utils.test.ts @@ -22,7 +22,7 @@ describe('extname', () => { expect(extname('c', 'libcurl')).toBe('.c'); expect(extname('clojure', 'clj_http')).toBe('.clj'); expect(extname('javascript', 'axios')).toBe('.js'); - expect(extname('node', 'axios')).toBe('.cjs'); + expect(extname('node', 'axios')).toBe('.js'); }); it('returns empty string if the extension is not found', () => { diff --git a/src/targets/node/axios/client.ts b/src/targets/node/axios/client.ts index 2cd93815..193b528e 100644 --- a/src/targets/node/axios/client.ts +++ b/src/targets/node/axios/client.ts @@ -19,7 +19,7 @@ export const axios: Client = { title: 'Axios', link: 'https://github.com/axios/axios', description: 'Promise based HTTP client for the browser and node.js', - extname: '.cjs', + extname: '.js', installation: 'npm install axios --save', }, convert: ({ method, fullUrl, allHeaders, postData }, options) => { diff --git a/src/targets/node/axios/fixtures/application-form-encoded.cjs b/src/targets/node/axios/fixtures/application-form-encoded.js similarity index 100% rename from src/targets/node/axios/fixtures/application-form-encoded.cjs rename to src/targets/node/axios/fixtures/application-form-encoded.js diff --git a/src/targets/node/axios/fixtures/application-json.cjs b/src/targets/node/axios/fixtures/application-json.js similarity index 100% rename from src/targets/node/axios/fixtures/application-json.cjs rename to src/targets/node/axios/fixtures/application-json.js diff --git a/src/targets/node/axios/fixtures/cookies.cjs b/src/targets/node/axios/fixtures/cookies.js similarity index 100% rename from src/targets/node/axios/fixtures/cookies.cjs rename to src/targets/node/axios/fixtures/cookies.js diff --git a/src/targets/node/axios/fixtures/custom-method.cjs b/src/targets/node/axios/fixtures/custom-method.js similarity index 100% rename from src/targets/node/axios/fixtures/custom-method.cjs rename to src/targets/node/axios/fixtures/custom-method.js diff --git a/src/targets/node/axios/fixtures/full.cjs b/src/targets/node/axios/fixtures/full.js similarity index 100% rename from src/targets/node/axios/fixtures/full.cjs rename to src/targets/node/axios/fixtures/full.js diff --git a/src/targets/node/axios/fixtures/headers.cjs b/src/targets/node/axios/fixtures/headers.js similarity index 100% rename from src/targets/node/axios/fixtures/headers.cjs rename to src/targets/node/axios/fixtures/headers.js diff --git a/src/targets/node/axios/fixtures/http-insecure.cjs b/src/targets/node/axios/fixtures/http-insecure.js similarity index 100% rename from src/targets/node/axios/fixtures/http-insecure.cjs rename to src/targets/node/axios/fixtures/http-insecure.js diff --git a/src/targets/node/axios/fixtures/jsonObj-multiline.cjs b/src/targets/node/axios/fixtures/jsonObj-multiline.js similarity index 100% rename from src/targets/node/axios/fixtures/jsonObj-multiline.cjs rename to src/targets/node/axios/fixtures/jsonObj-multiline.js diff --git a/src/targets/node/axios/fixtures/jsonObj-null-value.cjs b/src/targets/node/axios/fixtures/jsonObj-null-value.js similarity index 100% rename from src/targets/node/axios/fixtures/jsonObj-null-value.cjs rename to src/targets/node/axios/fixtures/jsonObj-null-value.js diff --git a/src/targets/node/axios/fixtures/multipart-data.cjs b/src/targets/node/axios/fixtures/multipart-data.js similarity index 100% rename from src/targets/node/axios/fixtures/multipart-data.cjs rename to src/targets/node/axios/fixtures/multipart-data.js diff --git a/src/targets/node/axios/fixtures/multipart-file.cjs b/src/targets/node/axios/fixtures/multipart-file.js similarity index 100% rename from src/targets/node/axios/fixtures/multipart-file.cjs rename to src/targets/node/axios/fixtures/multipart-file.js diff --git a/src/targets/node/axios/fixtures/multipart-form-data-no-params.cjs b/src/targets/node/axios/fixtures/multipart-form-data-no-params.js similarity index 100% rename from src/targets/node/axios/fixtures/multipart-form-data-no-params.cjs rename to src/targets/node/axios/fixtures/multipart-form-data-no-params.js diff --git a/src/targets/node/axios/fixtures/multipart-form-data.cjs b/src/targets/node/axios/fixtures/multipart-form-data.js similarity index 100% rename from src/targets/node/axios/fixtures/multipart-form-data.cjs rename to src/targets/node/axios/fixtures/multipart-form-data.js diff --git a/src/targets/node/axios/fixtures/nested.cjs b/src/targets/node/axios/fixtures/nested.js similarity index 100% rename from src/targets/node/axios/fixtures/nested.cjs rename to src/targets/node/axios/fixtures/nested.js diff --git a/src/targets/node/axios/fixtures/postdata-malformed.cjs b/src/targets/node/axios/fixtures/postdata-malformed.js similarity index 100% rename from src/targets/node/axios/fixtures/postdata-malformed.cjs rename to src/targets/node/axios/fixtures/postdata-malformed.js diff --git a/src/targets/node/axios/fixtures/query-encoded.cjs b/src/targets/node/axios/fixtures/query-encoded.js similarity index 100% rename from src/targets/node/axios/fixtures/query-encoded.cjs rename to src/targets/node/axios/fixtures/query-encoded.js diff --git a/src/targets/node/axios/fixtures/query.cjs b/src/targets/node/axios/fixtures/query.js similarity index 100% rename from src/targets/node/axios/fixtures/query.cjs rename to src/targets/node/axios/fixtures/query.js diff --git a/src/targets/node/axios/fixtures/short.cjs b/src/targets/node/axios/fixtures/short.js similarity index 100% rename from src/targets/node/axios/fixtures/short.cjs rename to src/targets/node/axios/fixtures/short.js diff --git a/src/targets/node/axios/fixtures/text-plain.cjs b/src/targets/node/axios/fixtures/text-plain.js similarity index 100% rename from src/targets/node/axios/fixtures/text-plain.cjs rename to src/targets/node/axios/fixtures/text-plain.js