Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
puffyCid committed Dec 2, 2023
1 parent 293355e commit 469a302
Show file tree
Hide file tree
Showing 26 changed files with 130 additions and 121 deletions.
16 changes: 8 additions & 8 deletions accounts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "macos-accounts.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "macos-accounts.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
4 changes: 2 additions & 2 deletions advance_nom/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "advance-nom.js",
bundle: true,
format: "cjs",
Expand Down
6 changes: 3 additions & 3 deletions advance_nom/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function main() {
`I nommed: '${result.nommed}'. I have remaining: '${result.remaining}'`,
);

const bytes = new Uint8Array([ 0, 0, 0, 0, 1 ]);
const bytes = new Uint8Array([0, 0, 0, 0, 1]);

const rsultBytes = takeWhile(bytes, 0);
if (rsultBytes instanceof Error) {
Expand Down Expand Up @@ -53,8 +53,8 @@ function main() {
console.log(result.nommed);
}

const bytes2 = new Uint8Array([ 1, 0, 0, 13, 223 ]);
const stop = new Uint8Array([ 223 ]);
const bytes2 = new Uint8Array([1, 0, 0, 13, 223]);
const stop = new Uint8Array([223]);
const resultBytes = takeUntil(bytes2, stop);
if (resultBytes instanceof Error) {
console.error(`Failed to nom bytes until: ${resultBytes.message}`);
Expand Down
2 changes: 1 addition & 1 deletion browser_addons/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { chromiumExtensions } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/applications/chromium.ts";
import { firefoxAddons } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/applications/firefox.ts";
import { PlatformType } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/system/platform.ts";
import { PlatformType } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/system/systeminfo.ts";

interface BrowserExtensions {
firefox: [];
Expand Down
4 changes: 2 additions & 2 deletions chocolatey-packages/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "chocolatey.js",
bundle: true,
format: "cjs",
Expand Down
4 changes: 2 additions & 2 deletions deb-packages/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "deb-packages.js",
bundle: true,
format: "cjs",
Expand Down
16 changes: 8 additions & 8 deletions emond/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "emond.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "emond.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
16 changes: 8 additions & 8 deletions enhanced_userassist/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "enhance_userassist.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "enhance_userassist.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
12 changes: 10 additions & 2 deletions libreoffice_recently_opened/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions libreoffice_recently_opened/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { fileHistory } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/applications/libreoffice.ts";
import { recentFiles } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/applications/libreoffice.ts";
import { PlatformType } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/system/systeminfo.ts";

function main() {
const results = fileHistory();
const results = recentFiles(PlatformType.Darwin);
return results;
}
main();
16 changes: 8 additions & 8 deletions loginitems/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "loginitems.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "loginitems.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
16 changes: 8 additions & 8 deletions macos-wifi/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "wifi.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "wifi.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
4 changes: 2 additions & 2 deletions macos-wifi/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { wifiNetworks } from "https://raw.githubusercontent.com/puffycid/artemis

function main() {
const data = wifiNetworks();
console.log(data[ 0 ].name);
console.log(data[0].name);
}

main();
main();
2 changes: 1 addition & 1 deletion macos_firewall/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { firewallStatus } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/macos/firewall.ts";
import { firewallStatus } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/macos/plist/firewall.ts";

function main() {
const results = firewallStatus();
Expand Down
2 changes: 1 addition & 1 deletion policies/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { passwordPolicy } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/macos/policies.ts";
import { passwordPolicy } from "https://raw.githubusercontent.com/puffycid/artemis-api/master/src/macos/plist/policies.ts";
function main() {
const results = passwordPolicy();
return results;
Expand Down
16 changes: 8 additions & 8 deletions prefetch/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "prefetch.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "prefetch.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
2 changes: 1 addition & 1 deletion process_creation/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function main() {

const processes: EventLogRecord[] = [];
for (const record of records) {
if (record.data[ "Event" ][ "System" ][ "EventID" ] != 4688) {
if (record.data["Event"]["System"]["EventID"] != 4688) {
continue;
}
processes.push(record);
Expand Down
16 changes: 8 additions & 8 deletions service_installs/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "service-installs.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "service-installs.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
4 changes: 2 additions & 2 deletions service_installs/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function main() {
const service_installs: EventLogRecord[] = [];
for (const record of records) {
if (
record.data[ "Event" ][ "System" ][ "EventID" ] != 7045 &&
record.data[ "Event" ][ "System" ][ "EventID" ][ "#text" ] != 7045
record.data["Event"]["System"]["EventID"] != 7045 &&
record.data["Event"]["System"]["EventID"]["#text"] != 7045
) {
continue;
}
Expand Down
16 changes: 8 additions & 8 deletions shellbags/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "shellbags.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "shellbags.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
16 changes: 8 additions & 8 deletions shimdb/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "shimdb.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "shimdb.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
16 changes: 8 additions & 8 deletions srum/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as esbuild from "https://deno.land/x/[email protected]/mod.js";
import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts";

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
outfile: "srum.js",
bundle: true,
format: "cjs",
});
const _result = await esbuild.build({
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "srum.js",
bundle: true,
format: "cjs",
});

esbuild.stop();
esbuild.stop();
}

main();
4 changes: 2 additions & 2 deletions update-history/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { denoPlugin } from "https://deno.land/x/[email protected]/mod.ts

async function main() {
const _result = await esbuild.build({
plugins: [ denoPlugin() ],
entryPoints: [ "./main.ts" ],
plugins: [denoPlugin()],
entryPoints: ["./main.ts"],
outfile: "update-history.js",
bundle: true,
format: "cjs",
Expand Down
Loading

0 comments on commit 469a302

Please sign in to comment.