Skip to content

Commit

Permalink
fix(build): Now using cusom package @anniken/strapi-sdk-js
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnikenYT committed Feb 3, 2023
1 parent 5723d00 commit 7ce39a9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"release": "changelogen --release"
},
"dependencies": {
"@anniken/strapi-sdk-js": "^2.4.0",
"@headlessui/vue": "^1.5.0",
"@heroicons/vue": "^1.0.6",
"@tailwindcss/aspect-ratio": "^0.4.0",
Expand All @@ -23,7 +24,6 @@
"eslint-plugin-snakecasejs": "^2.2.0",
"markdown-it": "^12.3.2",
"strapi-generate-types": "^1.0.0",
"strapi-sdk-js": "^2.1.5",
"three-dots": "^0.2.3",
"typescript": "^4.4.4",
"vite-plugin-rewrite-all": "^0.1.2",
Expand Down
3 changes: 3 additions & 0 deletions src/pages/account/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ const mutation = useStrapiUpdateMutation<StrapiUser>({
onSuccess: () => {
console.debug('Updated!');
},
onError: (error) => {
console.error(error);
},
});
const update = () => {
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"@util/*": [
"src/util/*"
],
"strapi-sdk-js": [
"@anniken/strapi-sdk-js"
]
}
},
"include": [
Expand Down
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
"@jridgewell/gen-mapping" "^0.1.0"
"@jridgewell/trace-mapping" "^0.3.9"

"@anniken/strapi-sdk-js@^2.4.0":
version "2.4.0"
resolved "https://registry.yarnpkg.com/@anniken/strapi-sdk-js/-/strapi-sdk-js-2.4.0.tgz#0ec5a160b12fc35fa720c54fb09cd9363c5e07b2"
integrity sha512-uAZd6hYqIRf0jvOAzcU9ptd3+bDv+vZzCvXpc7E5jgUhuPT9eWwRsK417k/0FA6A2uhirsmbZCILYj0Ou90S+g==
dependencies:
"@types/js-cookie" "^3.0.0"
"@types/qs" "^6.9.6"
axios "^0.24.0"
defu "^5.0.0"
js-cookie "^3.0.0"
qs "^6.10.1"

"@ardatan/relay-compiler@12.0.0":
version "12.0.0"
resolved "https://registry.yarnpkg.com/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz#2e4cca43088e807adc63450e8cab037020e91106"
Expand Down Expand Up @@ -5333,18 +5345,6 @@ strapi-generate-types@^1.0.0:
fs-extra "10.0.0"
graphql "16.6.0"

strapi-sdk-js@^2.1.5:
version "2.2.0"
resolved "https://registry.yarnpkg.com/strapi-sdk-js/-/strapi-sdk-js-2.2.0.tgz#e7fe878954d9b3ea6fb4bb2d9b05cdf63888ccf1"
integrity sha512-0cUy2zHPcBN9yY2jCO5Y7ZH7IqSNrdW8Ywh/s0keqP3RiQJlGsu4PcEPF/l/m99bAgFqfwUITZ/wJ8ciVgwT+g==
dependencies:
"@types/js-cookie" "^3.0.0"
"@types/qs" "^6.9.6"
axios "^0.24.0"
defu "^5.0.0"
js-cookie "^3.0.0"
qs "^6.10.1"

streamsearch@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764"
Expand Down

0 comments on commit 7ce39a9

Please sign in to comment.