Commit
# Conflicts: # packages/endomoat/src/policy-gen/policy-generator-context.js
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This fixture is not used directly; it's only here in order to create a snapshot: | ||
|
||
```bash | ||
npm run start | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import addon from 'hello_world' | ||
export const hello = addon.hello() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "hello", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"description": "this code actually runs", | ||
"private": true, | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "npx snapshot-fs . ../json/dynamic.json" | ||
}, | ||
"dependencies": { | ||
"hello_world": "0.0.0" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"/package.json": "{\n \"name\": \"hello\",\n \"version\": \"0.0.0\",\n \"type\": \"module\",\n \"description\": \"this code actually runs\",\n \"private\": true,\n \"main\": \"index.js\",\n \"scripts\": {\n \"start\": \"npx snapshot-fs . ../json/dynamic.json\"\n },\n \"dependencies\": {\n \"hello_world\": \"0.0.0\"\n }\n}\n", | ||
"/index.js": "import addon from 'hello_world'\nexport const hello = addon.hello()\n", | ||
"/README.md": "This fixture is not used directly; it's only here in order to create a snapshot:\n\n```bash\nnpm run start\n```\n", | ||
"/node_modules/hello_world/world.js": "export default 'world';\n", | ||
"/node_modules/hello_world/package.json": "{\n \"name\": \"hello_world\",\n \"version\": \"0.0.0\",\n \"description\": \"Node.js Addons Example #1\",\n \"main\": \"hello.js\",\n \"type\": \"module\",\n \"private\": true,\n \"dependencies\": {\n \"dynamic-require\": \"1.0.0\"\n }\n}\n", | ||
"/node_modules/hello_world/hello.js": "import { dynamic } from \"dynamic-require\";\nimport { fileURLToPath } from \"url\";\n\nexport default {\n hello: () => `hello ${dynamic(fileURLToPath(new URL('./world.js', import.meta.url)))}`\n}\n", | ||
"/node_modules/hello_world/README.md": "THis is just a package that consumes another package (`dynamic-require`) which executes a dynamic require.\n", | ||
"/node_modules/dynamic-require/world.js": "module.exports = 'world'\n", | ||
"/node_modules/dynamic-require/package.json": "{\n \"name\": \"dynamic-require\",\n \"version\": \"1.0.0\",\n \"license\": \"ISC\",\n \"private\": true,\n \"main\": \"index.js\"\n\n}\n", | ||
"/node_modules/dynamic-require/index.js": "exports.dynamic = (value) => {\n return require(value)\n}\n" | ||
} |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"/package.json": "{\n \"name\": \"native\",\n \"version\": \"1.0.0\",\n \"type\": \"module\",\n \"license\": \"ISC\",\n \"private\": true,\n \"main\": \"app.js\",\n \"dependencies\": {\n \"hello\": \"^1.0.0\"\n }\n}\n", | ||
"/index.js": "import addon from 'hello'\nexport const hello = addon.hello()\n", | ||
"/node_modules/hello/package.json": "{\n \"name\": \"hello\",\n \"version\": \"0.0.0\",\n \"description\": \"this code does not run\",\n \"private\": true,\n \"main\": \"index.js\"\n}\n", | ||
"/node_modules/hello/index.js": "var addon = require('./hello')\n\nconsole.log(addon.hello()) // 'world'\n\nmodule.exports = addon\n", | ||
"/node_modules/hello/hello.node": "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000", | ||
"/node_modules/hello/README.md": "This fixture is an example of a package shipping a native module (`hello.node`). `hello.node` is not _actually_ a native module, but it has the right extension and is full of null bytes. Good enough.\n" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This fixture is not used directly; it's only here in order to create a snapshot: | ||
|
||
```bash | ||
npm run start | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import addon from 'hello_world' | ||
export const hello = addon.hello() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.