Skip to content

Commit 210b79b

Browse files
committed
chores(0.0.4): bump version
1 parent eb53597 commit 210b79b

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Analyze broken and malicious JavaScript and TypeScript modules.
1313
The analyzer is available for use in Deno. It comes with a default static analyzer and optional (but recommended) runtime analyzer.
1414

1515
```typescript
16-
import { analyze } from "https://x.nest.land/[email protected].3/mod.ts";
16+
import { analyze } from "https://x.nest.land/[email protected].4/mod.ts";
1717

1818
const source_code = `Deno.run({ cmd: "shutdown now"})` // oh no! malicious!
1919

@@ -60,7 +60,7 @@ Therefore, we have a **runtime analyzer**
6060
The runtime analyzer comes with the analyzer module published at nest.land
6161

6262
```typescript
63-
import { analyze } from "https://x.nest.land/[email protected].3/mod.ts";
63+
import { analyze } from "https://x.nest.land/[email protected].4/mod.ts";
6464

6565
analyze(source_code, {
6666
runtime: true // enable the runtime analyzer

deno/wasm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function analyze(
2929
let runtimeDiagnostics: RuntimeDiagnostics[] = [];
3030
if (options?.runtime) {
3131
let anl = new runtime(FnRules);
32-
runtimeDiagnostics.push(await anl.analyze(src));
32+
runtimeDiagnostics.push(await anl.analyze(src, true));
3333
}
3434
let diagnostics: Diagnostics = {
3535
static: wasm_analyze(src),

egg.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "analyzer",
33
"description": "Analyze and detect broken and malicious JavaScript and TypeScript modules.",
44
"stable": true,
5-
"version": "0.0.3-rc1",
5+
"version": "0.0.4",
66
"repository": "https://github.com/nestdotland/analyzer",
77
"files": [
88
"./deno/**/*",

runtime/mod.ts

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export class Analyze {
6464
presets: [[babelPresetEnv, { targets: "> 0.25%, not dead" }]],
6565
plugins: [babelPluginTopAwait],
6666
};
67-
console.log(js);
6867
// @ts-ignore
6968
let out = babelCore.transform(js, config);
7069
const runtimeDiagnostics = await runtimeAnalyze(out.code, this.sig);

0 commit comments

Comments
 (0)