-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
77 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"name": "@primate/go", | ||
"version": "0.1.0", | ||
"description": "Primate Go module", | ||
"homepage": "https://primatejs.com/modules/go", | ||
"bugs": "https://github.com/primatejs/primate/issues", | ||
"license": "MIT", | ||
"files": [ | ||
"src/**/*.go", | ||
"src/**/*.sum", | ||
"src/**/*.mod", | ||
"src/**/*.js", | ||
"!src/**/*.spec.js" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/primatejs/primate", | ||
"directory": "packages/go" | ||
}, | ||
"dependencies": { | ||
"@primate/core": "workspace:^", | ||
"@rcompat/cli": "^0.5.0", | ||
"@rcompat/env": "^0.3.0", | ||
"@rcompat/fs": "^0.4.0", | ||
"@rcompat/invariant": "^0.5.0", | ||
"@rcompat/object": "^0.5.0", | ||
"@rcompat/platform": "^0.3.0", | ||
"@rcompat/stdio": "^0.4.0" | ||
}, | ||
"type": "module", | ||
"imports": { | ||
"#*": { | ||
"@primate/lt": "./src/private/*.js", | ||
"default": "./src/private/*.js" | ||
}, | ||
"#error/*": { | ||
"@primate/lt": "./src/private/error/*.js", | ||
"default": "./src/private/error/*.js" | ||
} | ||
}, | ||
"exports": { | ||
"./to-request": "./src/to-request.js", | ||
"./to-response": "./src/to-response.js", | ||
"./env": "./src/env.js", | ||
".": { | ||
"runtime": "./src/runtime.js", | ||
"default": "./src/default.js" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import build from "#build"; | ||
import default_extension from "#extension"; | ||
import name from "#name"; | ||
|
||
export default ({ extension = default_extension } = {}) => ({ | ||
name, | ||
build: build({ extension }), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "./vendored/wasm_exec.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ding/src/private/error/faulty-go-route.js → ...ages/go/src/private/error/faulty-route.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import module from "#name"; | ||
import log from "@primate/core/log"; | ||
import file from "@rcompat/fs/file"; | ||
|
||
export default (...params) => log.error({ | ||
params, | ||
name: file(import.meta.url).base, | ||
module: "@primate/binding", | ||
module, | ||
message: "the Go route {0} contains the following error\n {1}", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default ".go"; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default "@primate/go"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import name from "#name"; | ||
|
||
export default () => ({ name }); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json" | ||
} |