New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reactive-vscode

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-vscode - npm Package Compare versions

Comparing version 0.2.0-beta.4 to 0.2.0-beta.5

8

dist/index.d.ts

@@ -71,2 +71,6 @@ /// <reference types="vscode" />

$update: (key: keyof C, value: C[keyof C], configurationTarget?: Nullable<ConfigurationTarget>, overrideInLanguage?: boolean) => Promise<void>;
/**
* Set the value without updating the workspace.
*/
$set: (key: keyof C, value: C[keyof C]) => void;
}>;

@@ -81,2 +85,6 @@

update: (value: T, configurationTarget?: ConfigurationTarget | boolean | null, overrideInLanguage?: boolean) => Promise<void>;
/**
* Set the value without updating the workspace.
*/
set: (value: T) => void;
}

@@ -83,0 +91,0 @@

109

dist/index.js
import { getCurrentScope as N, onScopeDispose as F, shallowRef as l, effectScope as q, computed as d, shallowReactive as L, toValue as a, watchEffect as h, watch as C, ref as x, toRaw as J, isRef as K } from "@reactive-vscode/reactivity";
export * from "@reactive-vscode/reactivity";
import { workspace as b, commands as E, window as c, debug as y, extensions as k, comments as z, env as w, EventEmitter as O, tasks as D, Uri as Y, languages as G, ColorThemeKind as V, l10n as A } from "vscode";
import { workspace as b, commands as E, window as c, debug as y, extensions as k, comments as z, env as T, EventEmitter as O, tasks as D, Uri as Y, languages as G, ColorThemeKind as V, l10n as A } from "vscode";
function Q(e) {

@@ -24,5 +24,5 @@ return N() ? (F(e), !0) : !1;

}
const I = [];
const $ = [];
function fe(e) {
I.push(e);
$.push(e);
}

@@ -32,23 +32,25 @@ const p = l(null), R = q();

return {
activate: (t) => (p.value = t, R.run(() => (P.map((n) => n(t)), e()))),
activate: (t) => (p.value = t, R.run(() => (I.map((n) => n(t)), e()))),
deactivate: () => {
I.map((t) => t()), R.stop();
$.map((t) => t()), R.stop();
}
};
}
const P = [];
function $(e) {
p.value ? e(p.value) : P.push(e);
const I = [];
function P(e) {
p.value ? e(p.value) : I.push(e);
}
function X(e, t, n) {
const r = b.getConfiguration(e, n);
function i(u, f) {
const v = l(f), m = d({
get: () => v.value,
set: (T) => {
v.value = T, r.update(u, T);
function i(u, v) {
const f = l(v), m = d({
get: () => f.value,
set: (w) => {
f.value = w, r.update(u, w);
}
});
return m.update = async (T, H, U) => {
await r.update(u, T, H, U), m.value = T;
return m.update = async (w, H, U) => {
await r.update(u, w, H, U), m.value = w;
}, m.set = (w) => {
f.value = w;
}, m;

@@ -59,9 +61,9 @@ }

);
return $(() => {
return P(() => {
s(b.onDidChangeConfiguration((u) => {
if (!u.affectsConfiguration(e))
return;
const f = b.getConfiguration(e);
for (const v in t)
u.affectsConfiguration(`${e}.${v}`) && (o[v].value = f.get(v));
const v = b.getConfiguration(e);
for (const f in t)
u.affectsConfiguration(`${e}.${f}`) && o[f].set(v.get(f));
}));

@@ -74,4 +76,7 @@ }), o;

...r,
$update(i, o, u, f) {
return r[i].update(o, u, f);
$update(i, o, u, v) {
return r[i].update(o, u, v);
},
$set(i, o) {
return r[i].set(o);
}

@@ -82,3 +87,3 @@ });

const n = l(null), r = [], i = (o) => (...u) => n.value ? n.value[o](...u) : (r.push([o, u]), null);
return $(() => {
return P(() => {
n.value = oe(e, t);

@@ -190,4 +195,4 @@ for (const [o, u] of r)

}
function i(f) {
r().sendText(f);
function i(v) {
r().sendText(v);
}

@@ -210,4 +215,4 @@ function o() {

const ke = g(() => {
const e = l(w.shell);
return s(w.onDidChangeShell((t) => {
const e = l(T.shell);
return s(T.onDidChangeShell((t) => {
e.value = t;

@@ -288,4 +293,4 @@ })), d(() => e.value);

provideFoldingRanges(i, o, u) {
var f;
return (f = r.value) == null ? void 0 : f.call(r, i, o, u);
var v;
return (v = r.value) == null ? void 0 : v.call(r, i, o, u);
}

@@ -308,4 +313,4 @@ }

}), Le = g(() => {
const e = l(w.isTelemetryEnabled);
return s(w.onDidChangeTelemetryEnabled((t) => {
const e = l(T.isTelemetryEnabled);
return s(T.onDidChangeTelemetryEnabled((t) => {
e.value = t;

@@ -318,4 +323,4 @@ })), d(() => e.value);

const We = g(() => {
const e = l(w.logLevel);
return s(w.onDidChangeLogLevel((t) => {
const e = l(T.logLevel);
return s(T.onDidChangeLogLevel((t) => {
e.value = t;

@@ -327,5 +332,5 @@ })), d(() => e.value);

}
function Ie(e) {
const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), r = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), o = String(t.getHours()).padStart(2, "0"), u = String(t.getMinutes()).padStart(2, "0"), f = String(t.getSeconds()).padStart(2, "0"), v = String(t.getMilliseconds()).padStart(3, "0");
return `${n}-${r}-${i} ${o}:${u}:${f}.${v} [${e}] `;
function $e(e) {
const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), r = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), o = String(t.getHours()).padStart(2, "0"), u = String(t.getMinutes()).padStart(2, "0"), v = String(t.getSeconds()).padStart(2, "0"), f = String(t.getMilliseconds()).padStart(3, "0");
return `${n}-${r}-${i} ${o}:${u}:${v}.${f} [${e}] `;
}

@@ -370,3 +375,3 @@ function oe(e, t = {}) {

}
function Pe(e) {
function Ie(e) {
const t = ue(e);

@@ -382,3 +387,3 @@ return d({

}
function $e(e) {
function Pe(e) {
var n;

@@ -528,4 +533,4 @@ const t = l(((n = a(e)) == null ? void 0 : n.visibleRanges) ?? []);

getChildren(u) {
var f;
return u ? ((f = u.children) == null || f.forEach((v) => i.set(v, u)), u.children) : a(t);
var v;
return u ? ((v = u.children) == null || v.forEach((f) => i.set(f, u)), u.children) : a(t);
},

@@ -579,4 +584,4 @@ getParent(u) {

{
resolveWebviewView(v, m) {
r.value = v, i.value = m, n != null && n.onDidReceiveMessage && v.webview.onDidReceiveMessage(n.onDidReceiveMessage);
resolveWebviewView(f, m) {
r.value = f, i.value = m, n != null && n.onDidReceiveMessage && f.webview.onDidReceiveMessage(n.onDidReceiveMessage);
}

@@ -597,13 +602,13 @@ },

}), n != null && n.webviewOptions) {
const v = n.webviewOptions;
const f = n.webviewOptions;
h(() => {
r.value && (r.value.webview.options = a(v));
r.value && (r.value.webview.options = a(f));
});
}
n != null && n.title && B(r, n.title), n != null && n.badge && j(r, n.badge);
function f(v) {
function v(f) {
var m;
return (m = r.value) == null ? void 0 : m.webview.postMessage(v);
return (m = r.value) == null ? void 0 : m.webview.postMessage(f);
}
return { view: r, context: i, postMessage: f, forceRefresh: u };
return { view: r, context: i, postMessage: v, forceRefresh: u };
},

@@ -626,6 +631,6 @@ (e) => e

export {
P as activateCbs,
I as activateCbs,
W as createKeyedComposable,
g as createSingletonComposable,
I as deactivateCbs,
$ as deactivateCbs,
ge as defineConfigObject,

@@ -638,4 +643,4 @@ X as defineConfigs,

R as extensionScope,
Ie as getDefaultLoggerPrefix,
$ as onActivate,
$e as getDefaultLoggerPrefix,
P as onActivate,
fe as onDeactivate,

@@ -670,5 +675,5 @@ Q as tryOnScopeDispose,

oe as useLogger,
Pe as useNotebookEditorSelection,
Ie as useNotebookEditorSelection,
ue as useNotebookEditorSelections,
$e as useNotebookEditorVisibleRanges,
Pe as useNotebookEditorVisibleRanges,
Me as useOpenedTerminals,

@@ -675,0 +680,0 @@ ae as useOutputChannel,

{
"name": "reactive-vscode",
"type": "module",
"version": "0.2.0-beta.4",
"version": "0.2.0-beta.5",
"description": "Develop VSCode extension with Vue Reactivity API",

@@ -40,3 +40,3 @@ "author": "_Kerman <kermanx@qq.com>",

"dependencies": {
"@reactive-vscode/reactivity": "0.2.0-beta.4"
"@reactive-vscode/reactivity": "0.2.0-beta.5"
},

@@ -43,0 +43,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc