From 0202a806238f2042a63b9e629b2e9685f9438438 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 12:31:34 +0000 Subject: [PATCH 1/3] chore(deps): update dependency vite-plugin-dts to v3 --- package.json | 2 +- yarn.lock | 90 ++++++++++------------------------------------------ 2 files changed, 17 insertions(+), 75 deletions(-) diff --git a/package.json b/package.json index c55b7b87e..91880ceb5 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "prettier": "^3.0.0", "tslib": "2.6.2", "vite": "4.4.9", - "vite-plugin-dts": "1.7.3", + "vite-plugin-dts": "3.6.0", "vitest": "^0.34.0", "vue-tsc": "1.8.15" } diff --git a/yarn.lock b/yarn.lock index 66772f20a..6ba4429fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -489,7 +489,7 @@ "@microsoft/tsdoc-config" "~0.16.1" "@rushstack/node-core-library" "3.61.0" -"@microsoft/api-extractor@^7.33.5": +"@microsoft/api-extractor@^7.36.4": version "7.38.0" resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.38.0.tgz#e72546d6766b3866578a462b040f71b17779e1c5" integrity sha512-e1LhZYnfw+JEebuY2bzhw0imDCl1nwjSThTrQqBXl40hrVo6xm3j/1EpUr89QyzgjqmAwek2ZkIVZbrhaR+cqg== @@ -574,7 +574,7 @@ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz#5f1b518ec5fa54437c0b7c4a821546c64fed6922" integrity sha512-6i/8UoL0P5y4leBIGzvkZdS85RDMG9y1ihZzmTZQ5LdHUYmZ7pKFoj8X0236s3lusPs1Fa5HTQUpwI+UfTcmeA== -"@rushstack/node-core-library@3.61.0", "@rushstack/node-core-library@^3.53.2": +"@rushstack/node-core-library@3.61.0": version "3.61.0" resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.61.0.tgz#7441a0d2ae5268b758a7a49588a78cd55af57e66" integrity sha512-tdOjdErme+/YOu4gPed3sFS72GhtWCgNV9oDsHDnoLY5oDfwjKUc9Z+JOZZ37uAxcm/OCahDHfuu2ugqrfWAVQ== @@ -615,16 +615,6 @@ resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== -"@ts-morph/common@~0.18.0": - version "0.18.1" - resolved "https://registry.yarnpkg.com/@ts-morph/common/-/common-0.18.1.tgz#ca40c3a62c3f9e17142e0af42633ad63efbae0ec" - integrity sha512-RVE+zSRICWRsfrkAw5qCAK+4ZH9kwEFv5h0+/YeHTLieWP7F4wWq4JsKFuNWG+fYh/KF+8rAtgdj5zb2mm+DVA== - dependencies: - fast-glob "^3.2.12" - minimatch "^5.1.0" - mkdirp "^1.0.4" - path-browserify "^1.0.1" - "@types/argparse@1.0.38": version "1.0.38" resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-1.0.38.tgz#a81fd8606d481f873a3800c6ebae4f1d768a56a9" @@ -909,7 +899,7 @@ "@typescript-eslint/parser" "^6.7.0" vue-eslint-parser "^9.3.1" -"@vue/language-core@1.8.15": +"@vue/language-core@1.8.15", "@vue/language-core@^1.8.8": version "1.8.15" resolved "https://registry.yarnpkg.com/@vue/language-core/-/language-core-1.8.15.tgz#e84536f529f706c072037d495bfd610d4661fbae" integrity sha512-zche5Aw8kkvp3YaghuLiOZyVIpoWHjSQ0EfjxGSsqHOPMamdCoa9x3HtbenpR38UMUoKJ88wiWuiOrV3B/Yq+A== @@ -1211,11 +1201,6 @@ check-error@^1.0.3: dependencies: get-func-name "^2.0.2" -code-block-writer@^11.0.3: - version "11.0.3" - resolved "https://registry.yarnpkg.com/code-block-writer/-/code-block-writer-11.0.3.tgz#9eec2993edfb79bfae845fbc093758c0a0b73b76" - integrity sha512-NiujjUFB4SwScJq2bwbYUtXbZhBSlY6vYzm++3Q6oC+U+injTqfPYFK8wS9COOmb2lueqp0ZRB4nK1VYeHgNyw== - color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -1706,7 +1691,7 @@ fast-diff@^1.1.2: resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0" integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== -fast-glob@^3.2.12, fast-glob@^3.2.9, fast-glob@^3.3.0: +fast-glob@^3.2.9, fast-glob@^3.3.0: version "3.3.1" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.1.tgz#784b4e897340f3dbbef17413b3f11acf03c874c4" integrity sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg== @@ -1786,15 +1771,6 @@ form-data@^4.0.0: combined-stream "^1.0.8" mime-types "^2.1.12" -fs-extra@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - fs-extra@~7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" @@ -1946,7 +1922,7 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0: +graceful-fs@^4.1.2, graceful-fs@^4.1.6: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -2384,15 +2360,6 @@ jsonfile@^4.0.0: optionalDependencies: graceful-fs "^4.1.6" -jsonfile@^6.0.1: - version "6.1.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" - integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== - dependencies: - universalify "^2.0.0" - optionalDependencies: - graceful-fs "^4.1.6" - keyv@^4.5.3: version "4.5.3" resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.3.tgz#00873d2b046df737963157bd04f294ca818c9c25" @@ -2400,7 +2367,7 @@ keyv@^4.5.3: dependencies: json-buffer "3.0.1" -kolorist@^1.6.0: +kolorist@^1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/kolorist/-/kolorist-1.8.0.tgz#edddbbbc7894bc13302cdf740af6374d4a04743c" integrity sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ== @@ -2542,7 +2509,7 @@ minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: dependencies: brace-expansion "^1.1.7" -minimatch@^5.0.1, minimatch@^5.1.0: +minimatch@^5.0.1: version "5.1.6" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== @@ -2556,11 +2523,6 @@ minimatch@^9.0.0: dependencies: brace-expansion "^2.0.1" -mkdirp@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" - integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== - mlly@^1.2.0, mlly@^1.4.0: version "1.4.2" resolved "https://registry.yarnpkg.com/mlly/-/mlly-1.4.2.tgz#7cf406aa319ff6563d25da6b36610a93f2a8007e" @@ -2765,11 +2727,6 @@ parse5@^7.1.2: dependencies: entities "^4.4.0" -path-browserify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" - integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== - path-exists@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -3320,14 +3277,6 @@ ts-api-utils@^1.0.1: resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg== -ts-morph@17.0.1: - version "17.0.1" - resolved "https://registry.yarnpkg.com/ts-morph/-/ts-morph-17.0.1.tgz#d85df4fcf9a1fcda1b331d52c00655f381c932d1" - integrity sha512-10PkHyXmrtsTvZSL+cqtJLTgFXkU43Gd0JCc0Rw6GchWbqKe0Rwgt1v3ouobTZwQzF1mGhDeAlWYBMGRV7y+3g== - dependencies: - "@ts-morph/common" "~0.18.0" - code-block-writer "^11.0.3" - tslib@2.6.2, tslib@^2.5.0, tslib@^2.6.0: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" @@ -3389,11 +3338,6 @@ universalify@^0.2.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== -universalify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" - integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== - untildify@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b" @@ -3452,19 +3396,17 @@ vite-node@0.34.6: picocolors "^1.0.0" vite "^3.0.0 || ^4.0.0 || ^5.0.0-0" -vite-plugin-dts@1.7.3: - version "1.7.3" - resolved "https://registry.yarnpkg.com/vite-plugin-dts/-/vite-plugin-dts-1.7.3.tgz#cf0c243fff9ae3fc1f103987b97439b3bf813f15" - integrity sha512-u3t45p6fTbzUPMkwYe0ESwuUeiRMlwdPfD3dRyDKUwLe2WmEYcFyVp2o9/ke2EMrM51lQcmNWdV9eLcgjD1/ng== +vite-plugin-dts@3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/vite-plugin-dts/-/vite-plugin-dts-3.6.0.tgz#8d1052e93ae4efef1b0860e44411570a58c77517" + integrity sha512-doxhDRFJCZD2sGjIp4V800nm8Y19GvmwckjG5vYPuiqJ7OBjc9NlW1Vp9Gkyh2aXlUs1jTDRH/lxWfcsPLOQHg== dependencies: - "@microsoft/api-extractor" "^7.33.5" + "@microsoft/api-extractor" "^7.36.4" "@rollup/pluginutils" "^5.0.2" - "@rushstack/node-core-library" "^3.53.2" + "@vue/language-core" "^1.8.8" debug "^4.3.4" - fast-glob "^3.2.12" - fs-extra "^10.1.0" - kolorist "^1.6.0" - ts-morph "17.0.1" + kolorist "^1.8.0" + vue-tsc "^1.8.8" vite@4.4.9, "vite@^3.0.0 || ^4.0.0 || ^5.0.0-0", "vite@^3.1.0 || ^4.0.0 || ^5.0.0-0": version "4.4.9" @@ -3533,7 +3475,7 @@ vue-template-compiler@^2.7.14: de-indent "^1.0.2" he "^1.2.0" -vue-tsc@1.8.15: +vue-tsc@1.8.15, vue-tsc@^1.8.8: version "1.8.15" resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-1.8.15.tgz#e00faee4215b65e797efc29200ab9ad9432318df" integrity sha512-4DoB3LUj7IToLmggoCxRiFG+QU5lem0nv03m1ocqugXA9rSVoTOEoYYaP8vu8b99Eh+/cCVdYOeIAQ+RsgUYUw== From be45e4f219ca36437b689dc50b8f776009c9db5f Mon Sep 17 00:00:00 2001 From: Siva Sankar Reddy Bogala Date: Tue, 3 Oct 2023 18:49:11 +0530 Subject: [PATCH 2/3] fix: vite-dts v3.6.0 migartion issues --- dist/{index.d.ts => main.d.ts} | 20 ++++++++-------- dist/main.js | 42 ++++++++++++++++++---------------- dist/shims-vue.d.ts | 9 -------- dist/vite-env.d.ts | 1 - package.json | 3 ++- vite.config.ts | 10 ++++---- 6 files changed, 38 insertions(+), 47 deletions(-) rename dist/{index.d.ts => main.d.ts} (84%) delete mode 100644 dist/shims-vue.d.ts delete mode 100644 dist/vite-env.d.ts diff --git a/dist/index.d.ts b/dist/main.d.ts similarity index 84% rename from dist/index.d.ts rename to dist/main.d.ts index 72023327d..0ad1ba95c 100644 --- a/dist/index.d.ts +++ b/dist/main.d.ts @@ -1,11 +1,11 @@ -import type { AllowedComponentProps } from 'vue'; -import type { ComponentCustomProps } from 'vue'; -import type { ComponentOptionsMixin } from 'vue'; -import type { DefineComponent } from 'vue'; -import type { ExtractPropTypes } from 'vue'; +import { AllowedComponentProps } from 'vue'; +import { ComponentCustomProps } from 'vue'; +import { ComponentOptionsMixin } from 'vue'; +import { DefineComponent } from 'vue'; +import { ExtractPropTypes } from 'vue'; import { IEDirectives } from '@imageengine/imageengine-helpers'; -import type { Ref } from 'vue'; -import type { VNodeProps } from 'vue'; +import { Ref } from 'vue'; +import { VNodeProps } from 'vue'; declare const Image_2: DefineComponent<{ src: { @@ -52,7 +52,7 @@ declare const Image_2: DefineComponent<{ }>>, { directives: IEDirectives; srcSet: TSrcSet; -}>; +}, {}>; export { Image_2 as Image } export declare const ImageEngineProvider: DefineComponent<{ @@ -71,7 +71,7 @@ export declare const ImageEngineProvider: DefineComponent<{ stripFromSrc: { type: StringConstructor; }; -}>>, {}>; +}>>, {}, {}>; export declare const Source: DefineComponent<{ srcSet: { @@ -95,7 +95,7 @@ export declare const Source: DefineComponent<{ attributes: { type: ObjectConstructor; }; -}>>, {}>; +}>>, {}, {}>; declare type TSrcSet = Array<{ src: string; diff --git a/dist/main.js b/dist/main.js index 430ae6340..b31d57e94 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,5 +1,5 @@ -import { defineComponent as p, inject as l, ref as y, openBlock as f, createElementBlock as m, mergeProps as v, provide as g, renderSlot as O } from "vue"; -var a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, b = {}, E = {}; +import { defineComponent as p, inject as l, ref as v, openBlock as f, createElementBlock as m, mergeProps as y, provide as g, renderSlot as O } from "vue"; +var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, b = {}, E = {}; (function(e) { Object.defineProperty(e, "__esModule", { value: !0 }), e.maybe_create_directive = e.build_IE_query_string = e.build_IE_directives = e.build_IE_url = e.OBJECT_TO_DIRECTIVES_MAP = void 0, e.OBJECT_TO_DIRECTIVES_MAP = { width: "w", @@ -21,17 +21,19 @@ var a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty keep_meta: "meta", noOptimization: "pass", no_optimization: "pass", - force_download: "dl" + force_download: "dl", + max_device_pixel_ratio: "maxdpr", + maxDevicePixelRatio: "maxdpr" }; - function c(r, t, u) { - var o = i(t, u), d = n(o, u), _ = d === "" ? "" : r.includes("?") ? "&" : "?"; - return "" + r + _ + d; + function c(r, t, d) { + var o = i(t, d), a = n(o, d), _ = a === "" ? "" : r.includes("?") ? "&" : "?"; + return "" + r + _ + a; } e.build_IE_url = c; function i(r, t) { - return Object.entries(r).reduce(function(u, o) { - var d = o[0], _ = o[1]; - return u + s(d, _, t); + return Object.entries(r).reduce(function(d, o) { + var a = o[0], _ = o[1]; + return d + s(a, _, t); }, ""); } e.build_IE_directives = i; @@ -39,22 +41,22 @@ var a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty return r && r !== "" ? "imgeng=" + r : (t && console.warn("build_IE_query_string called with an empty directives_string."), ""); } e.build_IE_query_string = n; - function s(r, t, u) { + function s(r, t, d) { var o = e.OBJECT_TO_DIRECTIVES_MAP[r]; - return o && (t || t === 0) ? "/" + o + "_" + t : o ? (u && console.warn("Directive '" + r + "' has an invalid value " + t + "."), "") : (u && console.warn("Directive '" + r + "' isn't recognized and won't be applied to the image."), ""); + return o && (t || t === 0) ? "/" + o + "_" + t : o ? (d && console.warn("Directive '" + r + "' has an invalid value " + t + "."), "") : (d && console.warn("Directive '" + r + "' isn't recognized and won't be applied to the image."), ""); } e.maybe_create_directive = s; })(E); var w = {}; Object.defineProperty(w, "__esModule", { value: !0 }); (function(e) { - var c = a && a.__createBinding || (Object.create ? function(n, s, r, t) { + var c = u && u.__createBinding || (Object.create ? function(n, s, r, t) { t === void 0 && (t = r), Object.defineProperty(n, t, { enumerable: !0, get: function() { return s[r]; } }); } : function(n, s, r, t) { t === void 0 && (t = r), n[t] = s[r]; - }), i = a && a.__exportStar || function(n, s) { + }), i = u && u.__exportStar || function(n, s) { for (var r in n) r !== "default" && !Object.prototype.hasOwnProperty.call(s, r) && c(s, n, r); }; @@ -115,7 +117,7 @@ const S = [ ); const c = l("deliveryAddress"), i = l("stripFromSrc"); return { - count: y(0), + count: v(0), deliveryAddress: c, stripFromSrc: i }; @@ -153,7 +155,7 @@ const S = [ return i; }, A = ["src", "srcSet"]; function T(e, c, i, n, s, r) { - return f(), m("img", v({ + return f(), m("img", y({ src: e.computedDirectives, srcSet: e.srcSetString }, e.attributes), null, 16, A); @@ -162,7 +164,7 @@ const B = /* @__PURE__ */ h(j, [["render", T]]), F = p({ setup() { const e = l("deliveryAddress"), c = l("stripFromSrc"); return { - count: y(0), + count: v(0), deliveryAddress: e, stripFromSrc: c }; @@ -188,10 +190,10 @@ const B = /* @__PURE__ */ h(j, [["render", T]]), F = p({ } } }), P = ["srcSet"]; -function q(e, c, i, n, s, r) { - return f(), m("source", v({ srcSet: e.srcSetString }, e.attributes), null, 16, P); +function D(e, c, i, n, s, r) { + return f(), m("source", y({ srcSet: e.srcSetString }, e.attributes), null, 16, P); } -const U = /* @__PURE__ */ h(F, [["render", q]]), D = p({ +const U = /* @__PURE__ */ h(F, [["render", D]]), q = p({ props: { deliveryAddress: { type: String, @@ -210,7 +212,7 @@ function C(e, c, i, n, s, r) { O(e.$slots, "default") ]); } -const z = /* @__PURE__ */ h(D, [["render", C]]); +const z = /* @__PURE__ */ h(q, [["render", C]]); export { B as Image, z as ImageEngineProvider, diff --git a/dist/shims-vue.d.ts b/dist/shims-vue.d.ts deleted file mode 100644 index 5ae6901f3..000000000 --- a/dist/shims-vue.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -declare module "*.vue" { - import type { DefineComponent } from "vue"; - const component: DefineComponent< - Record, - Record, - any - >; - export default component; -} diff --git a/dist/vite-env.d.ts b/dist/vite-env.d.ts deleted file mode 100644 index 11f02fe2a..000000000 --- a/dist/vite-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/package.json b/package.json index 91880ceb5..c6ac32ec4 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,14 @@ "version": "0.0.5", "author": "Siva Sankar Reddy Bogala", "private": false, + "repository": "https://github.com/imgeng/imageengine-vue3", "type": "module", "files": [ "dist" ], "main": "./dist/main.js", "module": "./dist/main.js", - "types": "./dist/index.d.ts", + "types": "./dist/main.d.ts", "exports": { ".": { "import": "./dist/main.js", diff --git a/vite.config.ts b/vite.config.ts index 4ea63c2a8..956b20da3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,15 +38,13 @@ export default defineConfig({ }, plugins: [ dts({ - outputDir: ["dist"], - // include: ['src/index.ts'], - exclude: ["src/ignore"], - // aliasesExclude: [/^@components/], + outDir: ["dist"], + exclude: ["src/index.ts"], staticImport: true, - skipDiagnostics: false, - logDiagnostics: true, rollupTypes: true, insertTypesEntry: true, + copyDtsFiles: true, + strictOutput: true }), vue(), vueJsx(), From e8793eb37b47f03dfec1300ee640cf8cec84c4d0 Mon Sep 17 00:00:00 2001 From: Siva Sankar Reddy Bogala Date: Tue, 3 Oct 2023 18:51:36 +0530 Subject: [PATCH 3/3] fix: eslint issues --- src/components/Image.vue | 6 +++--- src/components/Source.vue | 2 +- src/components/__tests__/Image.spec.ts | 6 +++--- src/components/__tests__/Source.spec.ts | 2 +- src/components/__tests__/service.spec.ts | 6 +++--- src/utils/service.ts | 4 ++-- vite.config.ts | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/Image.vue b/src/components/Image.vue index 8696831e1..5c6c07459 100644 --- a/src/components/Image.vue +++ b/src/components/Image.vue @@ -49,7 +49,7 @@ export default defineComponent({ setup(props) { if (!props.src) { throw new Error( - `Please ensure that the image component has an 'src' prop.` + `Please ensure that the image component has an 'src' prop.`, ); } @@ -88,12 +88,12 @@ export default defineComponent({ created() { if ( !ALLOWED_INPUT_EXTENSIONS.includes( - this.imageExtension.toLowerCase() as IEFormat + this.imageExtension.toLowerCase() as IEFormat, ) ) { console.warn( `The following image's extension doesn't match any of the allowed types and won't be optimized: ${this.src}.`, - `List of supported extensions: ${ALLOWED_INPUT_EXTENSIONS.join(", ")}.` + `List of supported extensions: ${ALLOWED_INPUT_EXTENSIONS.join(", ")}.`, ); } }, diff --git a/src/components/Source.vue b/src/components/Source.vue index 587a276f4..c14eb0def 100644 --- a/src/components/Source.vue +++ b/src/components/Source.vue @@ -36,7 +36,7 @@ export default defineComponent({ src: image.src.replace(this.stripFromSrc, ""), })) : this.srcSet, - this.deliveryAddress + this.deliveryAddress, ); }, }, diff --git a/src/components/__tests__/Image.spec.ts b/src/components/__tests__/Image.spec.ts index 360263b17..50d34cf9a 100644 --- a/src/components/__tests__/Image.spec.ts +++ b/src/components/__tests__/Image.spec.ts @@ -20,7 +20,7 @@ describe("Image component", () => { const img = wrapper.get("img"); expect(img.attributes("src")).toBe( - "https://blazing-fast-pics.cdn.imgeng.in/images/pic_1_variation_1.jpg?imgeng=/cmpr_0" + "https://blazing-fast-pics.cdn.imgeng.in/images/pic_1_variation_1.jpg?imgeng=/cmpr_0", ); }); @@ -65,11 +65,11 @@ describe("Image component", () => { const srcSetStringComputed = wrapper.vm.srcSetString; expect(srcSetStringComputed).toEqual( `https://blazing-fast-pics.cdn.imgeng.in/images/pic.jpg?imgeng=/w_400 400w,\n` + - `https://blazing-fast-pics.cdn.imgeng.in/images/pic.jpg?imgeng=/w_800 800w,\n` + `https://blazing-fast-pics.cdn.imgeng.in/images/pic.jpg?imgeng=/w_800 800w,\n`, ); expect(imageExtensionComputed).toEqual("jpg"); expect(imageUrlComputed).toEqual( - "https://blazing-fast-pics.cdn.imgeng.in/images/pic.jpg" + "https://blazing-fast-pics.cdn.imgeng.in/images/pic.jpg", ); }); }); diff --git a/src/components/__tests__/Source.spec.ts b/src/components/__tests__/Source.spec.ts index 53630a2f0..d3aed1183 100644 --- a/src/components/__tests__/Source.spec.ts +++ b/src/components/__tests__/Source.spec.ts @@ -41,7 +41,7 @@ describe("Source Component", () => { }); expect(wrapper.vm.srcSetString).toEqual( - `https://blazing-fast-pics.cdn.imgeng.in/images/pic_2.jpg?imgeng=/f_webp/r_60/w_300 300w,\n` + `https://blazing-fast-pics.cdn.imgeng.in/images/pic_2.jpg?imgeng=/f_webp/r_60/w_300 300w,\n`, ); }); }); diff --git a/src/components/__tests__/service.spec.ts b/src/components/__tests__/service.spec.ts index 9ad10598b..5612d8a0d 100644 --- a/src/components/__tests__/service.spec.ts +++ b/src/components/__tests__/service.spec.ts @@ -12,10 +12,10 @@ describe("service", () => { ]; it("generate string url", () => { expect( - generateSrcSetString(srcset, "https://blazing-fast-pics.cdn.imgeng.in") + generateSrcSetString(srcset, "https://blazing-fast-pics.cdn.imgeng.in"), ).toBe( "https://blazing-fast-pics.cdn.imgeng.in/images/pic_1_variation_2.jpg?imgeng=/cmpr_0/w_900 900w," + - `\n` + `\n`, ); }); }); @@ -51,7 +51,7 @@ describe("generateSrcSetString", () => { const result = generateSrcSetString( srcSet, - "https://blazing-fast-pics.cdn.imgeng.in" + "https://blazing-fast-pics.cdn.imgeng.in", ); const expected = diff --git a/src/utils/service.ts b/src/utils/service.ts index 061a38956..e18f5ed13 100644 --- a/src/utils/service.ts +++ b/src/utils/service.ts @@ -7,7 +7,7 @@ export function constructUrl(src: string, directives: IEDirectives): string { export function generateSrcSetString( srcSet: TSrcSet, - deliveryAddress: string + deliveryAddress: string, ): string { return srcSet.reduce((result, { src, width, directives }) => { // Extract width directive and always apply it to the image as @@ -22,7 +22,7 @@ export function generateSrcSetString( ...directives, ...widthDirective, } - : widthDirective + : widthDirective, ); const entry = `${fullImageUrl} ${width},\n`; result += entry; diff --git a/vite.config.ts b/vite.config.ts index 956b20da3..6e7aa009a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -44,7 +44,7 @@ export default defineConfig({ rollupTypes: true, insertTypesEntry: true, copyDtsFiles: true, - strictOutput: true + strictOutput: true, }), vue(), vueJsx(),