@jup-ag/plugin 1.0.0 → 1.0.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/README.md +4 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,3 +5,7 @@ Jupiter Plugin is an open-sourced, lite version of Jupiter that provides end-to-
|
|
|
5
5
|
Visit our Demo / Playground over at https://plugin.jup.ag
|
|
6
6
|
|
|
7
7
|
With several templates to get you started, and auto generated code snippets.
|
|
8
|
+
|
|
9
|
+
## Local Development
|
|
10
|
+
|
|
11
|
+
If you are running the project locally, you will need to set `NEXT_PUBLIC_IS_PLUGIN_DEV=true` in your `.env` file.
|
package/dist/index.js
CHANGED
|
@@ -85,7 +85,7 @@ var require_package = __commonJS({
|
|
|
85
85
|
"package.json"(exports2, module2) {
|
|
86
86
|
module2.exports = {
|
|
87
87
|
name: "@jup-ag/plugin",
|
|
88
|
-
version: "1.0.
|
|
88
|
+
version: "1.0.1",
|
|
89
89
|
private: false,
|
|
90
90
|
license: "MIT",
|
|
91
91
|
scripts: {
|
|
@@ -323,12 +323,15 @@ var packageJson = require_package();
|
|
|
323
323
|
var bundleName = `plugin-${packageJson.version}`;
|
|
324
324
|
var scriptDomain = (() => {
|
|
325
325
|
var _a2;
|
|
326
|
+
if (!process.env.NEXT_PUBLIC_IS_PLUGIN_DEV) {
|
|
327
|
+
return null;
|
|
328
|
+
}
|
|
326
329
|
if (typeof window === "undefined" || typeof document === "undefined") return "";
|
|
327
330
|
const url = (_a2 = document.currentScript) == null ? void 0 : _a2.src;
|
|
328
331
|
if (url) {
|
|
329
332
|
return new URL(url).origin;
|
|
330
333
|
}
|
|
331
|
-
return
|
|
334
|
+
return null;
|
|
332
335
|
})() || "https://plugin.jup.ag";
|
|
333
336
|
function loadRemote(id, href, type2) {
|
|
334
337
|
return __async(this, null, function* () {
|