@forestadmin/agent 1.0.0-beta.47 → 1.0.0-beta.48

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # @forestadmin/agent [1.0.0-beta.48](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/agent@1.0.0-beta.47...@forestadmin/agent@1.0.0-beta.48) (2022-08-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **prefix:** allow all possible prefixes as defined in the RFC ([12e4cbd](https://github.com/ForestAdmin/agent-nodejs/commit/12e4cbd9c841e818c2b37b1da320a676e833c2b9))
7
+
1
8
  # @forestadmin/agent [1.0.0-beta.47](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/agent@1.0.0-beta.46...@forestadmin/agent@1.0.0-beta.47) (2022-08-26)
2
9
 
3
10
 
@@ -72,7 +72,7 @@ class OptionsValidator {
72
72
  }
73
73
  }
74
74
  static checkOtherOptions(options) {
75
- if (typeof options.prefix !== 'string' || !/^[-/a-z]*$/i.test(options.prefix)) {
75
+ if (typeof options.prefix !== 'string' || !/^[-~/\w]*$/i.test(options.prefix)) {
76
76
  throw new Error('options.prefix is invalid. It should contain the prefix on which ' +
77
77
  'forest admin routes should be mounted (i.e. "/api/v1")');
78
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forestadmin/agent",
3
- "version": "1.0.0-beta.47",
3
+ "version": "1.0.0-beta.48",
4
4
  "main": "dist/index.js",
5
5
  "license": "GPL-3.0",
6
6
  "publishConfig": {