@openneuro/search 4.19.3 → 4.20.0-alpha.0

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/dist/names.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Hash mappping objects to provide a stable index name if the mapping is unchanged
2
+ * Hash mapping objects to provide a stable index name if the mapping is unchanged
3
3
  * @param mapping ElasticSearch mapping object
4
4
  */
5
5
  export declare const hashElasticMapping: (mapping: Record<string, unknown>) => string;
package/dist/names.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.elasticMappingName = exports.hashElasticMapping = void 0;
7
7
  const crypto_1 = __importDefault(require("crypto"));
8
8
  /**
9
- * Hash mappping objects to provide a stable index name if the mapping is unchanged
9
+ * Hash mapping objects to provide a stable index name if the mapping is unchanged
10
10
  * @param mapping ElasticSearch mapping object
11
11
  */
12
12
  const hashElasticMapping = (mapping) => crypto_1.default.createHash('sha1').update(JSON.stringify(mapping)).digest('hex');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openneuro/search",
3
- "version": "4.19.3",
3
+ "version": "4.20.0-alpha.0",
4
4
  "description": "OpenNeuro search client functions.",
5
5
  "main": "dist/index.js",
6
6
  "browser": "src/index.ts",
@@ -17,17 +17,17 @@
17
17
  "dependencies": {
18
18
  "@apollo/client": "3.7.2",
19
19
  "@elastic/elasticsearch": "7.15.0",
20
+ "graphql": "16.6.0",
20
21
  "jsonwebtoken": "^9.0.0"
21
22
  },
22
23
  "devDependencies": {
23
- "@babel/runtime-corejs3": "^7.13.10",
24
24
  "@types/jsonwebtoken": "^8",
25
25
  "@types/node": "18.11.9",
26
26
  "core-js": "^3.10.1",
27
- "vitest": "^0.25.2"
27
+ "vitest": "0.33.0"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
- "gitHead": "0a72f7f93897f2b3fed01b4b017f4b1f977a0a04"
32
+ "gitHead": "cc6822c27d8e66562e325042fc11a2998cb2eef7"
33
33
  }
package/src/names.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import crypto from 'crypto'
2
2
 
3
3
  /**
4
- * Hash mappping objects to provide a stable index name if the mapping is unchanged
4
+ * Hash mapping objects to provide a stable index name if the mapping is unchanged
5
5
  * @param mapping ElasticSearch mapping object
6
6
  */
7
7
  export const hashElasticMapping = (mapping: Record<string, unknown>): string =>