@rasputin-ai/sveltekit 0.7.0 → 0.7.1
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/dist/runtime/node.js
CHANGED
package/dist/sdk-meta.d.ts
CHANGED
package/dist/vite/index.js
CHANGED
|
@@ -4584,6 +4584,7 @@ var instrumentServerModule = (state, code, filePath, incomingMap, decideFunction
|
|
|
4584
4584
|
// src/vite/upload-build-artifacts.ts
|
|
4585
4585
|
import { createHash as createHash2 } from "node:crypto";
|
|
4586
4586
|
import {
|
|
4587
|
+
encodeJsonRequestBody,
|
|
4587
4588
|
INSTRUMENTATION_MANIFEST_SCHEMA_VERSION,
|
|
4588
4589
|
resolveEndpointUrls,
|
|
4589
4590
|
uploadInstrumentationManifest
|
|
@@ -4595,6 +4596,13 @@ var shouldSkipUpload = (key) => key.length === 0 || key.startsWith("rdn_") || ke
|
|
|
4595
4596
|
var isCaptureClass = (value) => value === "full" || value === "structure" || value === "skip" || value === "reactive-sparse";
|
|
4596
4597
|
var captureClassOf = (value) => isCaptureClass(value) ? value : "full";
|
|
4597
4598
|
var nullableCount = (value) => typeof value === "number" && value > 0 ? value : null;
|
|
4599
|
+
var omitSourceMapSourcesContent = (map) => {
|
|
4600
|
+
if (!map || typeof map !== "object" || Array.isArray(map)) return map;
|
|
4601
|
+
if (!("sourcesContent" in map)) return map;
|
|
4602
|
+
const next = { ...map };
|
|
4603
|
+
Reflect.deleteProperty(next, "sourcesContent");
|
|
4604
|
+
return next;
|
|
4605
|
+
};
|
|
4598
4606
|
var packageNameOf = (plan) => {
|
|
4599
4607
|
const value = plan[2];
|
|
4600
4608
|
return typeof value === "string" && value ? value : null;
|
|
@@ -4700,7 +4708,10 @@ var snapshotClientBuildArtifact = (state, debugImages) => {
|
|
|
4700
4708
|
destructures,
|
|
4701
4709
|
expressionSites,
|
|
4702
4710
|
classification,
|
|
4703
|
-
debugImages
|
|
4711
|
+
debugImages: debugImages.map((image) => ({
|
|
4712
|
+
...image,
|
|
4713
|
+
map: omitSourceMapSourcesContent(image.map)
|
|
4714
|
+
})),
|
|
4704
4715
|
verificationFailed: [...state.verificationFailed]
|
|
4705
4716
|
};
|
|
4706
4717
|
};
|
|
@@ -4796,23 +4807,25 @@ var uploadClientBuildArtifact = async (input) => {
|
|
|
4796
4807
|
""
|
|
4797
4808
|
);
|
|
4798
4809
|
try {
|
|
4810
|
+
const { body, gzip } = encodeJsonRequestBody({
|
|
4811
|
+
buildId: input.artifacts.buildId,
|
|
4812
|
+
release: input.release,
|
|
4813
|
+
contentHash: contentHash(input.artifacts),
|
|
4814
|
+
artifact: input.artifacts
|
|
4815
|
+
});
|
|
4799
4816
|
const response = await fetch(`${apiUrl}/browserArtifacts`, {
|
|
4800
4817
|
method: "POST",
|
|
4801
4818
|
headers: {
|
|
4802
4819
|
authorization: `Bearer ${key}`,
|
|
4803
|
-
"content-type": "application/json"
|
|
4820
|
+
"content-type": "application/json",
|
|
4821
|
+
...gzip ? { "content-encoding": "gzip" } : {}
|
|
4804
4822
|
},
|
|
4805
|
-
body
|
|
4806
|
-
buildId: input.artifacts.buildId,
|
|
4807
|
-
release: input.release,
|
|
4808
|
-
contentHash: contentHash(input.artifacts),
|
|
4809
|
-
artifact: input.artifacts
|
|
4810
|
-
})
|
|
4823
|
+
body
|
|
4811
4824
|
});
|
|
4812
4825
|
if (response.status === 409) return "conflict";
|
|
4813
4826
|
if (response.status === 200 || response.status === 201) {
|
|
4814
|
-
const
|
|
4815
|
-
if (
|
|
4827
|
+
const body2 = await response.json().catch(() => ({}));
|
|
4828
|
+
if (body2 && typeof body2 === "object" && "duplicate" in body2 && body2.duplicate === true) {
|
|
4816
4829
|
return "duplicate";
|
|
4817
4830
|
}
|
|
4818
4831
|
return "uploaded";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-build-artifacts.d.ts","sourceRoot":"","sources":["../../src/vite/upload-build-artifacts.ts"],"names":[],"mappings":"AACA,OAAO,
|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GAAG,SAAS,GAAG,QAAQ,CAgB5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rasputin-ai/sveltekit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Official Rasputin AI SDK for SvelteKit.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@rasputin-ai/browser": "0.7.
|
|
46
|
-
"@rasputin-ai/core": "0.7.
|
|
47
|
-
"@rasputin-ai/node": "0.7.
|
|
45
|
+
"@rasputin-ai/browser": "0.7.1",
|
|
46
|
+
"@rasputin-ai/core": "0.7.1",
|
|
47
|
+
"@rasputin-ai/node": "0.7.1",
|
|
48
48
|
"typescript": ">=5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|