diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f4078bc46ef8914cc7bfc846269f384b67c5b1fd..1531f646206dd8807b11395d8ee3e033e1d031e0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,7 @@ - git checkout $CI_COMMIT_REF_NAME - npm ci --cache .npm --prefer-offline script: - - echo "const path = \"https://unpkg.com/@startinblox/component-chat@$(semantic-release --dry-run | grep -oP 'Published release \K.*? ' | sed 's/ *$//g')\";module.exports = path;" > src/path.js + - echo "const path = \"https://cdn.skypack.dev/@startinblox/component-chat@$(semantic-release --dry-run | grep -oP 'Published release \K.*? ' | sed 's/ *$//g')\";module.exports = path;" > src/path.js - npm run build - semantic-release only: diff --git a/README.md b/README.md index b97dcd63ce1df314129f5affa0c753285b3faee7..42476493db385af3f2493d401771c19269fa893a 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ You can use the `solid-xmpp-chat` component: <html> <head> <!-- import the module in the head of the page --> - <script type="module" src="https://unpkg.com/@startinblox/component-chat/"></script> + <script type="module" src="https://cdn.skypack.dev/@startinblox/component-chat/"></script> </head> <body> diff --git a/src/index.js b/src/index.js index 996e0a024d17cc089f6ad0aab9e73881be43f3d7..f0127c3e5b1ec903fb204169dc598a1fa6fbefa6 100644 --- a/src/index.js +++ b/src/index.js @@ -1,10 +1,10 @@ import { SolidXMPPChat } from './solid-xmpp-chat.js'; import ComponentPath from './path.js'; -import { Helpers } from "https://unpkg.com/@startinblox/core@0.12"; +import { Helpers } from "https://cdn.skypack.dev/@startinblox/core@0.13"; Helpers.importCSS(ComponentPath+'/dist/conversejs/converse.min.css'); Helpers.importCSS(ComponentPath+'/dist/index.css'); //- Workaround, as the two imports right above don't works. -Helpers.importCSS('https://unpkg.com/converse.js@4.2/css/fonts.css'); +Helpers.importCSS('https://cdn.skypack.dev/converse.js@4.2/css/fonts.css'); export { SolidXMPPChat } diff --git a/src/solid-xmpp-chat.js b/src/solid-xmpp-chat.js index d03d0482c1b1acd68211e57a6313dc4867713d6a..956e622e736e7fcc259f49954cc65878e7371bd7 100644 --- a/src/solid-xmpp-chat.js +++ b/src/solid-xmpp-chat.js @@ -1,9 +1,9 @@ import './conversejs/converse.min.js'; import './conversejs/emojis.js'; import './plugins/converse-rai.js'; -import { Helpers, store } from 'https://unpkg.com/@startinblox/core@0.12'; -import { Sib } from "https://unpkg.com/@startinblox/core@0.12/dist/libs/Sib.js"; -import { StoreMixin } from 'https://unpkg.com/@startinblox/core@0.12/dist/mixins/storeMixin.js'; +import { Helpers, store } from 'https://cdn.skypack.dev/@startinblox/core@0.13'; +import { Sib } from "https://cdn.skypack.dev/@startinblox/core@0.13/dist/libs/Sib.js"; +import { StoreMixin } from 'https://cdn.skypack.dev/@startinblox/core@0.13/dist/mixins/storeMixin.js'; import ComponentPath from './path.js'; class Deferred {