Comparing version 1.0.5 to 1.0.6-1
@@ -289,3 +289,3 @@ "use strict"; | ||
let b = data[i]; | ||
crc = ((crc << 8) & 0xffff) ^ crc16tab[((crc >> 8) ^ (b)) & 0x00FF]; | ||
crc = ((crc << 8) & 0xffff) ^ crc16tab[((crc >> 8) ^ b) & 0x00FF]; | ||
} | ||
@@ -292,0 +292,0 @@ return crc; |
@@ -87,2 +87,3 @@ /** | ||
export declare enum Prefix { | ||
Unknown = -1, | ||
Seed = 144, | ||
@@ -89,0 +90,0 @@ Private = 120, |
@@ -102,2 +102,3 @@ "use strict"; | ||
(function (Prefix) { | ||
Prefix[Prefix["Unknown"] = -1] = "Unknown"; | ||
//Seed is the version byte used for encoded NATS Seeds | ||
@@ -117,3 +118,3 @@ Prefix[Prefix["Seed"] = 144] = "Seed"; | ||
Prefix[Prefix["User"] = 160] = "User"; | ||
})(Prefix = exports.Prefix || (exports.Prefix = {})); | ||
})(Prefix || (exports.Prefix = Prefix = {})); | ||
/** | ||
@@ -137,3 +138,3 @@ * @private | ||
let v = this.parsePrefix(prefix); | ||
return v != -1; | ||
return v !== Prefix.Unknown; | ||
} | ||
@@ -157,3 +158,3 @@ static parsePrefix(v) { | ||
default: | ||
return -1; | ||
return Prefix.Unknown; | ||
} | ||
@@ -181,3 +182,3 @@ } | ||
NKeysErrorCode["ClearedPair"] = "nkeys: pair is cleared"; | ||
})(NKeysErrorCode = exports.NKeysErrorCode || (exports.NKeysErrorCode = {})); | ||
})(NKeysErrorCode || (exports.NKeysErrorCode = NKeysErrorCode = {})); | ||
class NKeysError extends Error { | ||
@@ -184,0 +185,0 @@ /** |
{ | ||
"name": "nkeys.js", | ||
"version": "1.0.5", | ||
"version": "1.0.6-1", | ||
"description": "A public-key signature system based on Ed25519 for the NATS ecosystem in javascript", | ||
@@ -16,3 +16,6 @@ "main": "lib/index.js", | ||
"test": "npm run prepare && ava --verbose && deno test -A --unstable test/", | ||
"doc": "npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll" | ||
"doc": "npm run clean && rm -Rf docs && npm run stage && node_modules/.bin/typedoc --out docs/ && touch ./docs/.nojekyll", | ||
"bump-qualifier": "npm version prerelease --no-commit-hooks --no-git-tag-version", | ||
"bump-release": "npm version patch --no-commit-hooks --no-git-tag-version", | ||
"check-package": "deno run --allow-all bin/check-bundle-version.ts" | ||
}, | ||
@@ -24,3 +27,3 @@ "engines": { | ||
"type": "git", | ||
"url": "https://github.com//nats-io/nkeys.js" | ||
"url": "https://github.com/nats-io/nkeys.js" | ||
}, | ||
@@ -38,6 +41,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "^18.11.x", | ||
"ava": "^5.1.x", | ||
"typedoc": "^0.23.x", | ||
"typescript": "^4.9.x" | ||
"@types/node": "^20.8.x", | ||
"ava": "^5.2.x", | ||
"typedoc": "^0.25.x", | ||
"typescript": "^5.2.x" | ||
}, | ||
@@ -44,0 +47,0 @@ "ava": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109961
3181
3