casbin 5.20.1 → 5.20.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [5.20.3](https://github.com/casbin/node-casbin/compare/v5.20.2...v5.20.3) (2023-01-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Multiline Separator Handling ([#411](https://github.com/casbin/node-casbin/issues/411)) ([ab3467a](https://github.com/casbin/node-casbin/commit/ab3467a40004d48d323ebc79078077c8e1593514))
7
+
8
+ ## [5.20.2](https://github.com/casbin/node-casbin/compare/v5.20.1...v5.20.2) (2023-01-08)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Upgraded CI Nodejs version to v14.16.18. ([#410](https://github.com/casbin/node-casbin/issues/410)) ([9aadcd7](https://github.com/casbin/node-casbin/commit/9aadcd796cc474e8417b7ce78ecebb7096010a77))
14
+
1
15
  ## [5.20.1](https://github.com/casbin/node-casbin/compare/v5.20.0...v5.20.1) (2022-12-31)
2
16
 
3
17
 
package/lib/cjs/config.js CHANGED
@@ -96,7 +96,7 @@ class Config {
96
96
  }
97
97
  else {
98
98
  let shouldWrite = false;
99
- if (line.includes(Config.DEFAULT_MULTI_LINE_SEPARATOR)) {
99
+ if (line.endsWith(Config.DEFAULT_MULTI_LINE_SEPARATOR)) {
100
100
  currentLine += line.substring(0, line.length - 1).trim();
101
101
  }
102
102
  else {
package/lib/esm/config.js CHANGED
@@ -93,7 +93,7 @@ export class Config {
93
93
  }
94
94
  else {
95
95
  let shouldWrite = false;
96
- if (line.includes(Config.DEFAULT_MULTI_LINE_SEPARATOR)) {
96
+ if (line.endsWith(Config.DEFAULT_MULTI_LINE_SEPARATOR)) {
97
97
  currentLine += line.substring(0, line.length - 1).trim();
98
98
  }
99
99
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "casbin",
3
- "version": "5.20.1",
3
+ "version": "5.20.3",
4
4
  "description": "An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS",
5
5
  "main": "lib/cjs/index.js",
6
6
  "typings": "lib/cjs/index.d.ts",