@socialgouv/matomo-postgres 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 (3) hide show
  1. package/README.md +1 -1
  2. package/dist/db.js +3 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@ Extract matomo data from [`Live.getLastVisitsDetails`](https://developer.matomo.
6
6
 
7
7
  ## Usage
8
8
 
9
- Create the [initial table](./initial.sql) database table then run the following job with correct environment variables.
9
+ Run the following job with correct environment variables.
10
10
 
11
11
  ```sh
12
12
  npx @socialgouv/matomo-postgres
package/dist/db.js CHANGED
@@ -13,6 +13,9 @@ exports.db = new kysely_1.Kysely({
13
13
  dialect: new kysely_1.PostgresDialect({
14
14
  pool: new pg_1.Pool({
15
15
  connectionString: config_1.PGDATABASE,
16
+ ssl: {
17
+ rejectUnauthorized: false,
18
+ }
16
19
  }),
17
20
  }),
18
21
  log(event) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@socialgouv/matomo-postgres",
3
3
  "description": "Extract visitor events from Matomo API and push to Postgres",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "types": "types/index.d.ts",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/index.js",