shipeasy-sdk 3.7.0 → 3.8.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.
- checksums.yaml +4 -4
- data/lib/shipeasy/engine.rb +6 -4
- data/lib/shipeasy/sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25b1e68d67854fc5f617f3a2c67dfec725919b3942b3871cfb3f3c3b59b4dc96
|
|
4
|
+
data.tar.gz: b003f4d035e6aee250c8745e40c04a36608f8465d5f6d6a150182ad86574290b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 932191ab9c4bb0864168aaec1da459a3896c08dac9bab58bfbbbb45a9caa399e53733f71ed9669bc0402bd443e810e8807b19860b78c4f34673f0e22e8a02f12
|
|
7
|
+
data.tar.gz: f5c66c2b1c4a6eb33a6337b9981b0e196f363145f691c9bcf71c204fe728e487c66ade3230e72eea1e8da02c651ee6b4c2ed3d14e0133c1e1868c8049f44d049
|
data/lib/shipeasy/engine.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Shipeasy
|
|
|
32
32
|
See = Shipeasy::SDK::See
|
|
33
33
|
|
|
34
34
|
DEFAULT_BASE_URL = "https://api.shipeasy.ai"
|
|
35
|
-
# CDN origin serving the static loader scripts (/sdk/
|
|
35
|
+
# CDN origin serving the static loader scripts (/sdk/runtime.js,
|
|
36
36
|
# /sdk/i18n/loader.js) — distinct from the edge API the blobs are fetched from.
|
|
37
37
|
DEFAULT_CDN_BASE = "https://cdn.shipeasy.ai"
|
|
38
38
|
|
|
@@ -470,8 +470,9 @@ module Shipeasy
|
|
|
470
470
|
end
|
|
471
471
|
|
|
472
472
|
# Return the cross-platform SSR bootstrap <script> tag for a request:
|
|
473
|
-
#
|
|
474
|
-
# window.__SE_BOOTSTRAP
|
|
473
|
+
# /sdk/runtime.js reads its data-* attributes, installs window.shipeasy,
|
|
474
|
+
# republishes window.__SE_BOOTSTRAP for the npm client SDK and writes the
|
|
475
|
+
# anon cookie. No key is embedded.
|
|
475
476
|
#
|
|
476
477
|
# Every argument is OPTIONAL and falls back to `Shipeasy.configure`:
|
|
477
478
|
# `user` to an anonymous request, `i18n_profile:` to `config.profile`,
|
|
@@ -483,6 +484,7 @@ module Shipeasy
|
|
|
483
484
|
base = cdn_base(base_url || Shipeasy.config.cdn_base_url)
|
|
484
485
|
attrs = [
|
|
485
486
|
"data-se-bootstrap",
|
|
487
|
+
"data-se-boot",
|
|
486
488
|
attr("data-flags", JSON.generate(payload["flags"])),
|
|
487
489
|
attr("data-configs", JSON.generate(payload["configs"])),
|
|
488
490
|
attr("data-experiments", JSON.generate(payload["experiments"])),
|
|
@@ -493,7 +495,7 @@ module Shipeasy
|
|
|
493
495
|
attrs << attr("data-anon-id", anon_id) if anon_id && !anon_id.empty?
|
|
494
496
|
data_user = identity_attrs(user)
|
|
495
497
|
attrs << attr("data-user", data_user) if data_user
|
|
496
|
-
html %(<script src="#{CGI.escapeHTML("#{base}/sdk/
|
|
498
|
+
html %(<script src="#{CGI.escapeHTML("#{base}/sdk/runtime.js")}" #{attrs.join(' ')}></script>)
|
|
497
499
|
end
|
|
498
500
|
|
|
499
501
|
# Return the i18n loader <script> tag (framework-agnostic; the Rails view
|
data/lib/shipeasy/sdk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shipeasy-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shipeasy, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|