@solana/assertions 2.0.0-experimental.fcae73c → 2.0.0-experimental.fe07532

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018 Solana Labs, Inc
1
+ Copyright (c) 2023 Solana Labs, Inc
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -18,6 +18,10 @@ This package contains utilities for asserting that a JavaScript environment supp
18
18
 
19
19
  ## Functions
20
20
 
21
+ `assertDigestCapabilityIsAvailable()`
22
+
23
+ Throws an exception unless `crypto.subtle.digest()` is available in the current JavaScript environment.
24
+
21
25
  `assertKeyExporterIsAvailable()`
22
26
 
23
27
  Throws an exception unless `crypto.subtle.exportKey()` is available in the current JavaScript environment.
@@ -53,3 +53,5 @@ async function assertVerificationCapabilityIsAvailable() {
53
53
  }
54
54
 
55
55
  export { assertDigestCapabilityIsAvailable, assertKeyExporterIsAvailable, assertKeyGenerationIsAvailable, assertSigningCapabilityIsAvailable, assertVerificationCapabilityIsAvailable };
56
+ //# sourceMappingURL=out.js.map
57
+ //# sourceMappingURL=index.native.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/assertions",
3
- "version": "2.0.0-experimental.fcae73c",
3
+ "version": "2.0.0-experimental.fe07532",
4
4
  "description": "Helpers for asserting that a JavaScript environment supports certain features necessary for the operation of the Solana JavaScript SDK",
5
5
  "exports": {
6
6
  "browser": {
@@ -50,21 +50,21 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@solana/eslint-config-solana": "^1.0.2",
53
- "@swc/jest": "^0.2.27",
54
- "@types/jest": "^29.5.3",
55
- "@typescript-eslint/eslint-plugin": "^6.0.0",
56
- "@typescript-eslint/parser": "^6.0.0",
53
+ "@swc/jest": "^0.2.29",
54
+ "@types/jest": "^29.5.6",
55
+ "@typescript-eslint/eslint-plugin": "^6.7.0",
56
+ "@typescript-eslint/parser": "^6.3.0",
57
57
  "agadoo": "^3.0.0",
58
58
  "eslint": "^8.45.0",
59
- "eslint-plugin-jest": "^27.2.3",
59
+ "eslint-plugin-jest": "^27.4.2",
60
60
  "eslint-plugin-sort-keys-fix": "^1.1.2",
61
- "jest": "^29.6.1",
62
- "jest-environment-jsdom": "^29.6.0",
63
- "jest-runner-eslint": "^2.1.0",
61
+ "jest": "^29.7.0",
62
+ "jest-environment-jsdom": "^29.7.0",
63
+ "jest-runner-eslint": "^2.1.2",
64
64
  "jest-runner-prettier": "^1.0.0",
65
- "prettier": "^2.8.8",
66
- "tsup": "6.7.0",
67
- "typescript": "^5.1.6",
65
+ "prettier": "^2.8",
66
+ "tsup": "7.2.0",
67
+ "typescript": "^5.2.2",
68
68
  "version-from-git": "^1.1.1",
69
69
  "build-scripts": "0.0.0",
70
70
  "test-config": "0.0.0",
@@ -83,11 +83,12 @@
83
83
  "compile:typedefs": "tsc -p ./tsconfig.declarations.json",
84
84
  "dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
85
85
  "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
86
+ "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
86
87
  "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
87
88
  "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
88
89
  "test:treeshakability:browser": "agadoo dist/index.browser.js",
89
- "test:treeshakability:native": "agadoo dist/index.node.js",
90
- "test:treeshakability:node": "agadoo dist/index.native.js",
90
+ "test:treeshakability:native": "agadoo dist/index.native.js",
91
+ "test:treeshakability:node": "agadoo dist/index.node.js",
91
92
  "test:typecheck": "tsc --noEmit",
92
93
  "test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --rootDir . --silent",
93
94
  "test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --rootDir . --silent"