@flowfuse/file-server 2.12.0 → 2.12.1-8605fe4-202501071158.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/forge/auth.js CHANGED
@@ -8,7 +8,7 @@ module.exports = fp(async function (app, opts, done) {
8
8
  const client = got.extend({
9
9
  prefixUrl: `${app.config.base_url}/account/check/project`,
10
10
  headers: {
11
- 'user-agent': 'FlowForge Storage Server',
11
+ 'user-agent': 'FlowFuse Storage Server',
12
12
  'ff-quota': true
13
13
  },
14
14
  timeout: {
@@ -152,12 +152,16 @@ module.exports = {
152
152
  if (changeSize >= 0) {
153
153
  const currentSize = await this.quota(instanceId)
154
154
  if (currentSize + changeSize > quotaLimit) {
155
+ app.log.warn(`context quota check fail: ${instanceId}/${scope} current=${currentSize} delta=${changeSize} limit=${quotaLimit} requested=${currentSize + changeSize}`)
155
156
  const err = new Error('Over Quota')
156
157
  err.code = 'over_quota'
157
158
  err.error = err.message
158
159
  err.limit = quotaLimit
159
160
  throw err
160
161
  }
162
+ app.log.warn(`context quota check pass: ${instanceId}/${scope} current=${currentSize} delta=${changeSize} limit=${quotaLimit} requested=${currentSize + changeSize}`)
163
+ } else {
164
+ app.log.info(`context quota check pass: ${instanceId}/${scope} delta=${changeSize}`)
161
165
  }
162
166
  }
163
167
 
@@ -47,7 +47,7 @@ module.exports = function (app) {
47
47
  fs.mkdirSync(rootPath, { recursive: true })
48
48
  }
49
49
 
50
- app.log.info(`FlowForge File Storage localfs root Directory: ${rootPath}`)
50
+ app.log.info(`FlowFuse File Storage localfs root Directory: ${rootPath}`)
51
51
 
52
52
  function resolvePath (teamId, projectId, path) {
53
53
  let resolvedPath
package/index.js CHANGED
@@ -2,12 +2,12 @@
2
2
  'use strict'
3
3
 
4
4
  const semver = require('semver')
5
- const flowForgeFileServer = require('./forge/fileServer')
5
+ const fileServer = require('./forge/fileServer')
6
6
  const YAML = require('yaml')
7
7
 
8
8
  const app = (async function () {
9
9
  if (!semver.satisfies(process.version, '>=16.0.0')) {
10
- console.error(`FlowForge File Server requires at least NodeJS v16, ${process.version} found`)
10
+ console.error(`FlowFuse File Server requires at least NodeJS v16, ${process.version} found`)
11
11
  process.exit(1)
12
12
  }
13
13
 
@@ -25,14 +25,14 @@ const app = (async function () {
25
25
  }
26
26
  }
27
27
 
28
- const server = await flowForgeFileServer(options)
28
+ const server = await fileServer(options)
29
29
  let stopping = false
30
30
  async function exitWhenStopped () {
31
31
  if (!stopping) {
32
32
  stopping = true
33
- server.log.info('Stopping FlowForge File Server')
33
+ server.log.info('Stopping FlowFuse File Server')
34
34
  await server.close()
35
- server.log.info('FlowForge File Server stopped')
35
+ server.log.info('FlowFuse File Server stopped')
36
36
  process.exit(0)
37
37
  }
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowfuse/file-server",
3
- "version": "2.12.0",
3
+ "version": "2.12.1-8605fe4-202501071158.0",
4
4
  "description": "A basic Object Storage backend",
5
5
  "main": "index.js",
6
6
  "scripts": {