@empathyco/x-adapter-platform 1.0.0-alpha.60 → 1.0.0-alpha.62

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/README.md +5 -5
  2. package/package.json +11 -10
package/README.md CHANGED
@@ -22,7 +22,8 @@ imports it as a plugin.
22
22
  ## Installation
23
23
 
24
24
  ```
25
- npm i @empathyco/x-adapter-platform
25
+ # or pnpm or yarn
26
+ npm install @empathyco/x-adapter-platform
26
27
  ```
27
28
 
28
29
  <br>
@@ -125,7 +126,8 @@ const { suggestions } = await platformAdapter.popularSearches({
125
126
  - response:
126
127
  [`RecommendationsResponse`](https://github.com/empathyco/x/blob/main/packages/x-types/src/response/recommendations-response.model.ts)
127
128
 
128
- These **recommendations** are top clicked products based on user click interactions (note: no personal user data is collected).
129
+ These **recommendations** are top clicked products based on user click interactions (note: no
130
+ personal user data is collected).
129
131
 
130
132
  ```ts
131
133
  import { platformAdapter } from '@empathyco/x-adapter-platform';
@@ -323,9 +325,7 @@ inside each of the project's sections functionalities (`endpoint-adapters`, `map
323
325
  `schemas`).
324
326
 
325
327
  ```
326
-
327
- npm test
328
-
328
+ npm run test
329
329
  ```
330
330
 
331
331
  <br>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-adapter-platform",
3
- "version": "1.0.0-alpha.60",
3
+ "version": "1.0.0-alpha.62",
4
4
  "description": "A search client for the Empathy Platform API",
5
5
  "author": "Empathy Systems Corporation S.L.",
6
6
  "license": "Apache-2.0",
@@ -26,25 +26,26 @@
26
26
  "node": ">=16"
27
27
  },
28
28
  "scripts": {
29
+ "preinstall": "npx only-allow pnpm",
29
30
  "prebuild": "rimraf ./dist ./*.tgz",
30
- "build": "concurrently \"npm run build:*\" && npm run gen:docs",
31
+ "build": "concurrently \"pnpm run build:*\" && pnpm run gen:docs",
31
32
  "build:cjs": "tsc --project tsconfig.cjs.json",
32
33
  "build:esm": "tsc --project tsconfig.esm.json",
33
34
  "gen:model-docs": "api-extractor run -l",
34
35
  "gen:typescript-docs": "api-documenter markdown -i report -o docs",
35
- "gen:docs": "npm run gen:model-docs && npm run gen:typescript-docs",
36
+ "gen:docs": "pnpm run gen:model-docs && pnpm run gen:typescript-docs",
36
37
  "test": "jest",
37
- "postbuild": "npm pack",
38
- "prepublishOnly": "npm run build"
38
+ "postbuild": "pnpm pack",
39
+ "prepublishOnly": "pnpm run build"
39
40
  },
40
41
  "dependencies": {
41
- "@empathyco/x-adapter": "^8.0.0-alpha.23",
42
- "@empathyco/x-types": "^10.0.0-alpha.57",
43
- "@empathyco/x-utils": "^1.0.0-alpha.15",
42
+ "@empathyco/x-adapter": "^8.0.0-alpha.24",
43
+ "@empathyco/x-types": "^10.0.0-alpha.59",
44
+ "@empathyco/x-utils": "^1.0.0-alpha.16",
44
45
  "tslib": "~2.4.1"
45
46
  },
46
47
  "devDependencies": {
47
- "@microsoft/api-documenter": "~7.19.27",
48
+ "@microsoft/api-documenter": "~7.21.3",
48
49
  "@microsoft/api-extractor": "~7.33.7",
49
50
  "@types/jest": "~27.0.3",
50
51
  "concurrently": "~7.6.0",
@@ -56,5 +57,5 @@
56
57
  "publishConfig": {
57
58
  "access": "public"
58
59
  },
59
- "gitHead": "6fccb9c182fa3bad626901b551006a39a7f47d98"
60
+ "gitHead": "4f57a9b390fef3838356cad08971a0ad89712b38"
60
61
  }