Skip to content

Commit

Permalink
[FIX] pin version until a released jsr version is available
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Jun 11, 2024
1 parent e3238ce commit e62dd1b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 247 deletions.
2 changes: 1 addition & 1 deletion bin/cjs-fix-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ for (const fn of files) {
const data = await Deno.readFile(fn);
const txt = new TextDecoder().decode(data);

let mod = txt.replace(/jsr:@nats-io\/nkeys/gim, "nkeys.js");
let mod = txt.replace(/(jsr:@nats-io\/nkeys)(@\d+.\d+.\d+(-\d+)?)?/gim, "nkeys.js");
if (!fn.endsWith("nkeys.ts") && !fn.endsWith("nuid.ts")) {
mod = mod.replace(/from\s+"(\S+).[t|j]s"/gim, 'from "$1"');
}
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/jwt",
"version": "0.0.10-3",
"version": "0.0.10-4",
"exports": {
".": "./src/mod.ts"
},
Expand Down
235 changes: 0 additions & 235 deletions deno.lock

This file was deleted.

10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nats-jwt",
"version": "0.0.10-3",
"version": "0.0.10-4",
"description": "NATS jwt.js",
"main": "cjs/jwt.js",
"module": "./esm/jwt.js",
Expand Down Expand Up @@ -37,11 +37,11 @@
"bump-release": "npm version patch --no-commit-hooks --no-git-tag-version"
},
"dependencies": {
"nkeys.js": "1.1.0"
"nkeys.js": "^1.2.0-4"
},
"devDependencies": {
"shx": "^0.3.3",
"@types/node": "^20.11.x",
"shx": "^0.3.3",
"typedoc": "^0.25.10",
"typescript": "^5.3.x"
},
Expand Down
2 changes: 1 addition & 1 deletion src/nkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import * as nkeys from "jsr:@nats-io/nkeys";
import * as nkeys from "jsr:@nats-io/nkeys@1.2.0-4";

const createOperator = nkeys.createOperator;
const createAccount = nkeys.createAccount;
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

// this file is autogenerated - do not edit
export const Version = "0.0.10-3";
export const Version = "0.0.10-4";

0 comments on commit e62dd1b

Please sign in to comment.