branch-video-player-sdk 0.2.0 → 0.2.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/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/package.json +20 -6
package/dist/vite.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("node:path"),l=require("node:url"),e=require("node:fs");var i=typeof document<"u"?document.currentScript:null;const p=o.dirname(l.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:i&&i.tagName.toUpperCase()==="SCRIPT"&&i.src||new URL("vite.cjs",document.baseURI).href));function c(u={}){const s=u.publicPath||"branch-video-runtime",r=o.resolve(p,"
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("node:path"),l=require("node:url"),e=require("node:fs");var i=typeof document<"u"?document.currentScript:null;const p=o.dirname(l.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:i&&i.tagName.toUpperCase()==="SCRIPT"&&i.src||new URL("vite.cjs",document.baseURI).href));function c(u={}){const s=u.publicPath||"branch-video-runtime",r=o.resolve(p,"./runtime");return{name:"branch-video-player-sdk",config(t){const a=typeof t.publicDir=="string"?t.publicDir:"public",d=t.root??process.cwd(),n=o.resolve(d,a,s);if(!e.existsSync(r))throw new Error(`[branch-video-player-sdk] Runtime 静态资源不存在:${r}。请确认 npm 包已正确安装。`);(!e.existsSync(n)||e.statSync(r).mtime>e.statSync(n).mtime)&&e.cpSync(r,n,{recursive:!0,force:!0})}}}exports.branchVideoPlayerSdkPlugin=c;exports.default=c;
|
package/dist/vite.js
CHANGED
|
@@ -3,7 +3,7 @@ import { fileURLToPath as p } from "node:url";
|
|
|
3
3
|
import { existsSync as o, statSync as n, cpSync as a } from "node:fs";
|
|
4
4
|
const l = i.dirname(p(import.meta.url));
|
|
5
5
|
function y(c = {}) {
|
|
6
|
-
const s = c.publicPath || "branch-video-runtime", r = i.resolve(l, "
|
|
6
|
+
const s = c.publicPath || "branch-video-runtime", r = i.resolve(l, "./runtime");
|
|
7
7
|
return {
|
|
8
8
|
name: "branch-video-player-sdk",
|
|
9
9
|
config(e) {
|
package/package.json
CHANGED
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "branch-video-player-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"unpkg": "./dist/index.umd.cjs",
|
|
9
9
|
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.umd.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./url": {
|
|
16
|
+
"types": "./dist/url.d.ts",
|
|
17
|
+
"import": "./dist/url.js",
|
|
18
|
+
"require": "./dist/url.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./vite": {
|
|
21
|
+
"types": "./dist/vite.d.ts",
|
|
22
|
+
"import": "./dist/vite.js",
|
|
23
|
+
"require": "./dist/vite.cjs"
|
|
24
|
+
}
|
|
13
25
|
},
|
|
14
|
-
"files": [
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"README.md"
|
|
29
|
+
]
|
|
15
30
|
}
|
|
16
|
-
|