Skip to content

Commit

Permalink
Merge pull request redpanda-data#8357 from sago2k8/update-wasm-api-pa…
Browse files Browse the repository at this point in the history
…ckage-name

js: replace wasm-api library scope
  • Loading branch information
ivotron authored Jan 26, 2023
2 parents 1b2e17a + 3848387 commit 2420032
Show file tree
Hide file tree
Showing 9 changed files with 431 additions and 488 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/wasm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
name: wasm-api
on:
push:
tags: 'v*'
tags:
- v*

jobs:
publish:
Expand All @@ -19,7 +20,7 @@ jobs:
steps:
- uses: actions/setup-node@v1
with:
node-version: '12.16.1'
node-version: '14.21.2'
registry-url: 'https://registry.npmjs.org'

- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/cli/cmd/wasm/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func latestClientAPIVersion() string {
}

proc := vos.NewProc()
output, err := proc.RunWithSystemLdPath(2*time.Second, "npm", "search", "@vectorizedio/wasm-api", "--json")
output, err := proc.RunWithSystemLdPath(2*time.Second, "npm", "search", "@redpanda-data/wasm-api", "--json")
if err != nil {
log.Error(err)
return defAPIVersion
Expand Down
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/cli/cmd/wasm/template/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const wasmJs = `const {
SimpleTransform,
PolicyError,
PolicyInjection
} = require("@vectorizedio/wasm-api");
} = require("@redpanda-data/wasm-api");
const transform = new SimpleTransform();
/* Topics that fire the transform function */
transform.subscribe([["test-topic", PolicyInjection.Stored]]);
Expand Down
4 changes: 2 additions & 2 deletions src/js/build-package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "Depedencies",
"description": "Vectorized's materialized stream dependencies",
"description": "Redpanda's materialized stream dependencies",
"version": "0.0.1",
"keywords": [],
"author": "hi@vectorized.io",
"author": "hi@redpanda.com",
"scripts": {
"start": "sudo node ./modules/rpc/service.js"
},
Expand Down
Loading

0 comments on commit 2420032

Please sign in to comment.