@capture.dev/sdk 0.3.58

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/CHANGELOG.md ADDED
@@ -0,0 +1,33 @@
1
+ # @capture.dev/sdk
2
+
3
+ ## 0.3.58
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [74cc8e7]
8
+ - @capture.dev/core@0.0.10
9
+
10
+ ## 0.3.57
11
+
12
+ ## 0.3.56
13
+
14
+ ### Patch Changes
15
+
16
+ - 11126af: Use tsup
17
+ - Updated dependencies [11126af]
18
+ - @capture.dev/core@0.0.7
19
+
20
+ ## 0.3.55
21
+
22
+ ## 0.3.54
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [cdb0bc9]
27
+ - @capture.dev/core@0.0.4
28
+
29
+ ## 0.3.53
30
+
31
+ ## 0.3.52
32
+
33
+ ## 0.3.51
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ let e=require(`@capture.dev/core/internal`),t=!1;const n=[];function r(t){(0,e.setGlobalClientOptions)(t),i()}function i(){t=!1;let e=`https://cdn.capture.dev/capture-js/browser/v${`0.3.58`.split(`.`)[0]}/latest.js`,r=document.createElement(`script`);r.src=e,r.async=!0,r.onload=()=>{t=!1,n.forEach(e=>a(e)),n.length=0},r.onerror=()=>{t=!0},document.head.appendChild(r)}function a(r){if(t)return;let i=(0,e.getGlobalClient)();i?i[r.method](...r.args):n.push(r)}exports.init=r;
@@ -0,0 +1,6 @@
1
+ import { CaptureClientOptions } from "@capture.dev/core";
2
+
3
+ //#region src/index.d.ts
4
+ declare function init(options: CaptureClientOptions): void;
5
+ //#endregion
6
+ export { init };
@@ -0,0 +1,6 @@
1
+ import { CaptureClientOptions } from "@capture.dev/core";
2
+
3
+ //#region src/index.d.ts
4
+ declare function init(options: CaptureClientOptions): void;
5
+ //#endregion
6
+ export { init };
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import{getGlobalClient as e,setGlobalClientOptions as t}from"@capture.dev/core/internal";let n=!1;const r=[];function i(e){t(e),a()}function a(){n=!1;let e=`https://cdn.capture.dev/capture-js/browser/v${`0.3.58`.split(`.`)[0]}/latest.js`,t=document.createElement(`script`);t.src=e,t.async=!0,t.onload=()=>{n=!1,r.forEach(e=>o(e)),r.length=0},t.onerror=()=>{n=!0},document.head.appendChild(t)}function o(t){if(n)return;let i=e();i?i[t.method](...t.args):r.push(t)}export{i as init};
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@capture.dev/sdk",
3
+ "version": "0.3.58",
4
+ "homepage": "https://capture.dev",
5
+ "license": "MIT",
6
+ "sideEffects": false,
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "require": "./dist/index.cjs",
11
+ "import": "./dist/index.mjs"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "main": "./dist/index.cjs",
16
+ "module": "./dist/index.mjs",
17
+ "types": "./dist/index.d.cts",
18
+ "files": [
19
+ "dist/**",
20
+ "CHANGELOG.md"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsdown",
24
+ "clean": "rimraf dist",
25
+ "generate-version": "genversion src/version.ts --esm --semi --double"
26
+ },
27
+ "dependencies": {
28
+ "@capture.dev/core": "*"
29
+ },
30
+ "devDependencies": {
31
+ "@capture/tsdown-config": "*",
32
+ "@capture/vitest-config": "*",
33
+ "genversion": "^3.2.0",
34
+ "tsdown": "^0.20.1",
35
+ "typescript": "^5.9.3",
36
+ "vitest": "^4.0.18"
37
+ },
38
+ "volta": {
39
+ "extends": "../../package.json"
40
+ },
41
+ "publishConfig": {
42
+ "exports": {
43
+ ".": {
44
+ "require": "./dist/index.cjs",
45
+ "import": "./dist/index.mjs"
46
+ },
47
+ "./package.json": "./package.json"
48
+ }
49
+ }
50
+ }