@csedl/svelte-on-rails 13.0.0 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,8 @@ npm i @csedl/svelte-on-rails
9
9
  Add to your entrypoint file, like `application.js`
10
10
 
11
11
  ```javascript
12
- import '@csedl/svelte-on-rails';
12
+ import { SvelteOnRails } from '@csedl/svelte-on-rails/setup';
13
+ SvelteOnRails.start();
13
14
  ```
14
15
 
15
16
  ## What it does
@@ -18,8 +19,8 @@ import '@csedl/svelte-on-rails';
18
19
  rendered by the ruby gem. Initializing means that the component is mounted or hydrated, together
19
20
  with the properties given by the ruby gem.
20
21
 
21
- ## Description
22
+ ## Details
22
23
 
23
24
  Please follow [svelte-on-rails docs](https://svelte-on-rails.dev) for more information.
24
25
 
25
- The repository is shared with the gem [SOR](https://gitlab.com/sedl/svelte-on-rails) (monorepo).
26
+ The repository is shared with the [svelte-on-rails](https://gitlab.com/sedl/svelte-on-rails) gem (monorepo).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csedl/svelte-on-rails",
3
- "version": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "description": "Client-side runtime for svelte-on-rails: hydration, SSR build support & Turbo Stream actions",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "exports": {
14
14
  ".": "./index.js",
15
- "./init": "./src/config.js",
15
+ "./setup": "./src/config.js",
16
16
  "./ssr": {
17
17
  "types": "./ssr.d.ts",
18
18
  "import": "./ssr.js",
package/src/ssr/render.js CHANGED
@@ -9,6 +9,7 @@ const compiledComponentPath = process.argv[2];
9
9
  try {
10
10
  console.log(`Awaiting load component: ${compiledComponentPath}`);
11
11
  const module = await import(`file://${compiledComponentPath}`);
12
+ console.log(`Loaded module typeof: ${typeof module}`);
12
13
 
13
14
  const compiledComponent = module.default;
14
15
  if (!compiledComponent) {