Skip to content

Commit

Permalink
feat(dev-cli): add Variant tag to Module on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Dec 19, 2023
1 parent 66f2193 commit 4604444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dev-cli/container/src/node/src/defaults.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const DEFAULT_MODULE_FORMAT_TAG = { name: 'Module-Format', value: 'wasm32-unknown-emscripten' }
export const DEFAULT_INPUT_ENCODING_TAG = { name: 'Input-Encoding', value: 'JSON-1' }
export const DEFAULT_OUTPUT_ENCODING_TAG = { name: 'Output-Encoding', value: 'JSON-1' }
export const DEFAULT_VARIANT_TAG = { name: 'Variant', value: 'ao.TN.1' }

export const DEFAULT_BUNDLER_HOST = 'https://node2.irys.xyz'

Expand All @@ -10,5 +11,6 @@ export const AoModuleTags = [
DEFAULT_MODULE_FORMAT_TAG,
DEFAULT_INPUT_ENCODING_TAG,
DEFAULT_OUTPUT_ENCODING_TAG,
DEFAULT_VARIANT_TAG,
{ name: 'Content-Type', value: 'application/wasm' }
]
6 changes: 3 additions & 3 deletions dev-cli/container/src/node/test/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('uploadModuleWith', () => {
* custom tag, plus default tags, then only use
* the first Module-Format tag
*/
assert.equal(params.tags.length, 7)
assert.equal(params.tags.length, 8)
return { params, id: '123' }
}
}
Expand All @@ -87,7 +87,7 @@ describe('uploadModuleWith', () => {
* custom tag, plus default tags, then only use
* the first Input-Encoding tag
*/
assert.equal(params.tags.length, 7)
assert.equal(params.tags.length, 8)
return { params, id: '123' }
}
}
Expand All @@ -114,7 +114,7 @@ describe('uploadModuleWith', () => {
* custom tag, plus default tags, then only use
* the first Input-Encoding tag
*/
assert.equal(params.tags.length, 7)
assert.equal(params.tags.length, 8)
return { params, id: '123' }
}
}
Expand Down

0 comments on commit 4604444

Please sign in to comment.