@tinacms/graphql 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -6
  2. package/package.json +5 -7
package/dist/index.js CHANGED
@@ -1280,7 +1280,6 @@ var staticDefinitions = [...scalarDefinitions, interfaceDefinitions];
1280
1280
 
1281
1281
  // src/auth/utils.ts
1282
1282
  import crypto from "crypto";
1283
- import scmp from "scmp";
1284
1283
  var DEFAULT_SALT_LENGTH = 32;
1285
1284
  var DEFAULT_KEY_LENGTH = 512;
1286
1285
  var DEFAULT_ITERATIONS = 25e3;
@@ -1359,7 +1358,8 @@ var checkPasswordHash = async ({
1359
1358
  if (err) {
1360
1359
  reject(null);
1361
1360
  }
1362
- if (scmp(hashBuffer, Buffer.from(hash, "hex"))) {
1361
+ const expectedBuffer = Buffer.from(hash, "hex");
1362
+ if (hashBuffer.length === expectedBuffer.length && crypto.timingSafeEqual(hashBuffer, expectedBuffer)) {
1363
1363
  resolve2();
1364
1364
  }
1365
1365
  reject(null);
@@ -3026,7 +3026,7 @@ var validateField = async (field) => {
3026
3026
  var package_default = {
3027
3027
  name: "@tinacms/graphql",
3028
3028
  type: "module",
3029
- version: "2.0.0",
3029
+ version: "2.0.1",
3030
3030
  main: "dist/index.js",
3031
3031
  module: "./dist/index.js",
3032
3032
  files: [
@@ -3036,8 +3036,7 @@ var package_default = {
3036
3036
  exports: {
3037
3037
  ".": {
3038
3038
  types: "./dist/index.d.ts",
3039
- import: "./dist/index.js",
3040
- require: "./dist/index.js"
3039
+ import: "./dist/index.js"
3041
3040
  }
3042
3041
  },
3043
3042
  license: "SEE LICENSE IN LICENSE",
@@ -3077,7 +3076,6 @@ var package_default = {
3077
3076
  micromatch: "catalog:",
3078
3077
  "normalize-path": "catalog:",
3079
3078
  "readable-stream": "catalog:",
3080
- scmp: "catalog:",
3081
3079
  yup: "^1.6.1"
3082
3080
  },
3083
3081
  publishConfig: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tinacms/graphql",
3
3
  "type": "module",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "files": [
@@ -11,8 +11,7 @@
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
- "import": "./dist/index.js",
15
- "require": "./dist/index.js"
14
+ "import": "./dist/index.js"
16
15
  }
17
16
  },
18
17
  "license": "SEE LICENSE IN LICENSE",
@@ -43,10 +42,9 @@
43
42
  "micromatch": "4.0.8",
44
43
  "normalize-path": "^3.0.0",
45
44
  "readable-stream": "^4.7.0",
46
- "scmp": "^2.1.0",
47
45
  "yup": "^1.6.1",
48
- "@tinacms/mdx": "2.0.0",
49
- "@tinacms/schema-tools": "2.0.0"
46
+ "@tinacms/schema-tools": "2.0.0",
47
+ "@tinacms/mdx": "2.0.0"
50
48
  },
51
49
  "publishConfig": {
52
50
  "registry": "https://registry.npmjs.org"
@@ -74,7 +72,7 @@
74
72
  "vitest": "^0.32.4",
75
73
  "zod": "^3.24.2",
76
74
  "@tinacms/schema-tools": "2.0.0",
77
- "@tinacms/scripts": "1.4.1"
75
+ "@tinacms/scripts": "1.4.2"
78
76
  },
79
77
  "scripts": {
80
78
  "types": "pnpm tsc",