psf-bch-api 7.2.2 → 7.2.3

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/bin/server.js CHANGED
@@ -161,7 +161,7 @@ class Server {
161
161
 
162
162
  // Endpoint logging middleware
163
163
  app.use((req, res, next) => {
164
- console.log(`Endpoint called: ${req.method} ${req.path}`)
164
+ console.log(`Endpoint called: ${req.method} ${req.path} by ${req.ip}`)
165
165
  res.on('finish', () => {
166
166
  console.log(`Endpoint responded: ${req.method} ${req.path} - ${res.statusCode}`)
167
167
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "psf-bch-api",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
4
4
  "main": "psf-bch-api.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "slp-token-media": "1.2.10",
26
26
  "winston": "3.11.0",
27
27
  "winston-daily-rotate-file": "4.7.1",
28
- "x402-bch-express": "1.1.1"
28
+ "x402-bch-express": "1.1.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "apidoc": "1.2.0",
@@ -22,14 +22,16 @@ LOCAL_RESTURL=http://172.17.0.1:5942/v6
22
22
  PORT=5942
23
23
 
24
24
  # x402 payments required to access this API?
25
- X402_ENABLED=true
26
- SERVER_BCH_ADDRESS=bitcoincash:qqlrzp23w08434twmvr4fxw672whkjy0py26r63g3d
27
- FACILITATOR_URL=http://localhost:4345/facilitator
28
- X402_PRICE_SAT=200
25
+ X402_ENABLED=false
26
+ #X402_ENABLED=true
27
+ #SERVER_BCH_ADDRESS=bitcoincash:qqlrzp23w08434twmvr4fxw672whkjy0py26r63g3d
28
+ #FACILITATOR_URL=http://localhost:4345/facilitator
29
+ #X402_PRICE_SAT=200
29
30
 
30
31
  # Basic Authentication required to access this API?
31
- USE_BASIC_AUTH=true
32
- BASIC_AUTH_TOKEN=some-random-token
32
+ USE_BASIC_AUTH=false
33
+ #USE_BASIC_AUTH=true
34
+ #BASIC_AUTH_TOKEN=some-random-token
33
35
 
34
36
  # END ACCESS CONTROL
35
37
 
@@ -51,6 +51,8 @@ RUN git clone https://github.com/Permissionless-Software-Foundation/psf-bch-api
51
51
  # and `stage` has the most up-to-date changes.
52
52
  WORKDIR /home/safeuser/psf-bch-api
53
53
 
54
+ RUN git checkout ct-unstable
55
+
54
56
  # Install dependencies
55
57
  RUN npm install
56
58
  RUN npm install minimal-slp-wallet
@@ -58,7 +60,7 @@ RUN npm install minimal-slp-wallet
58
60
  # Generate the API docs
59
61
  RUN npm run docs
60
62
 
61
- COPY .env-local .env
63
+ COPY .env .env
62
64
 
63
65
 
64
66
  CMD ["npm", "start"]
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- npm start
@@ -1,7 +0,0 @@
1
- // Simple Node.js app that prints 'hello world' every 10 seconds
2
-
3
- setInterval(() => {
4
- console.log('hello world')
5
- }, 10000)
6
-
7
- console.log('Timer started. Printing "hello world" every 10 seconds...')