Skip to content

Commit f0b0ab5

Browse files
committed
feat: update repo path
1 parent 32a2e68 commit f0b0ab5

4 files changed

Lines changed: 27 additions & 26 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v4
3636

3737
- name: Run semantic-release
38-
if: github.repository == 'casbin/node-casbin' && github.event_name == 'push'
38+
if: github.repository == 'apache/casbin-node-casbin' && github.event_name == 'push'
3939
run: yarn install && yarn semantic-release
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Node-Casbin
22

3-
[![GitHub Actions](https://github.com/casbin/node-casbin/workflows/main/badge.svg)](https://github.com/casbin/node-casbin/actions)
4-
[![Coverage Status](https://coveralls.io/repos/github/casbin/node-casbin/badge.svg?branch=master)](https://coveralls.io/github/casbin/node-casbin?branch=master)
5-
[![Release](https://img.shields.io/github/release/casbin/node-casbin.svg)](https://github.com/casbin/node-casbin/releases/latest)
3+
[![GitHub Actions](https://github.com/apache/casbin-node-casbin/workflows/main/badge.svg)](https://github.com/apache/casbin-node-casbin/actions)
4+
[![Coverage Status](https://coveralls.io/repos/github/apache/casbin-node-casbin/badge.svg?branch=master)](https://coveralls.io/github/apache/casbin-node-casbin?branch=master)
5+
[![Release](https://img.shields.io/github/release/apache/casbin-node-casbin.svg)](https://github.com/apache/casbin-node-casbin/releases/latest)
66
[![NPM version][npm-image]][npm-url]
77
[![NPM download][download-image]][download-url]
88
[![install size](https://packagephobia.now.sh/badge?p=casbin)](https://packagephobia.now.sh/result?p=casbin)
@@ -13,27 +13,27 @@
1313
[download-image]: https://img.shields.io/npm/dm/casbin.svg?style=flat-square
1414
[download-url]: https://npmjs.org/package/casbin
1515

16-
**News**: still worry about how to write the correct `node-casbin` policy? [Casbin online editor](http://casbin.org/editor) is coming to help!
16+
**News**: still worry about how to write the correct `node-casbin` policy? [Casbin online editor](https://casbin.apache.org/editor) is coming to help!
1717

1818
![casbin Logo](casbin-logo.png)
1919

2020
`node-casbin` is a powerful and efficient open-source access control library for Node.JS projects. It provides support for enforcing authorization based on various [access control models](https://wikipedia.org/wiki/Computer_security_model).
2121

2222
## All the languages supported by Casbin:
2323

24-
| [![golang](https://casbin.org/img/langs/golang.png)](https://github.com/casbin/casbin) | [![java](https://casbin.org/img/langs/java.png)](https://github.com/casbin/jcasbin) | [![nodejs](https://casbin.org/img/langs/nodejs.png)](https://github.com/casbin/node-casbin) | [![php](https://casbin.org/img/langs/php.png)](https://github.com/php-casbin/php-casbin) |
25-
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
26-
| [Casbin](https://github.com/casbin/casbin) | [jCasbin](https://github.com/casbin/jcasbin) | [node-Casbin](https://github.com/casbin/node-casbin) | [PHP-Casbin](https://github.com/php-casbin/php-casbin) |
27-
| production-ready | production-ready | production-ready | production-ready |
24+
| [![golang](https://casbin.apache.org/img/langs/golang.png)](https://github.com/casbin/casbin) | [![java](https://casbin.apache.org/img/langs/java.png)](https://github.com/casbin/jcasbin) | [![nodejs](https://casbin.apache.org/img/langs/nodejs.png)](https://github.com/apache/casbin-node-casbin) | [![php](https://casbin.apache.org/img/langs/php.png)](https://github.com/php-casbin/php-casbin) |
25+
| --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
26+
| [Casbin](https://github.com/casbin/casbin) | [jCasbin](https://github.com/casbin/jcasbin) | [node-Casbin](https://github.com/apache/casbin-node-casbin) | [PHP-Casbin](https://github.com/php-casbin/php-casbin) |
27+
| production-ready | production-ready | production-ready | production-ready |
2828

29-
| [![python](https://casbin.org/img/langs/python.png)](https://github.com/casbin/pycasbin) | [![dotnet](https://casbin.org/img/langs/dotnet.png)](https://github.com/casbin-net/Casbin.NET) | [![c++](https://casbin.org/img/langs/cpp.png)](https://github.com/casbin/casbin-cpp) | [![rust](https://casbin.org/img/langs/rust.png)](https://github.com/casbin/casbin-rs) |
30-
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
31-
| [PyCasbin](https://github.com/casbin/pycasbin) | [Casbin.NET](https://github.com/casbin-net/Casbin.NET) | [Casbin-CPP](https://github.com/casbin/casbin-cpp) | [Casbin-RS](https://github.com/casbin/casbin-rs) |
32-
| production-ready | production-ready | beta-test | production-ready |
29+
| [![python](https://casbin.apache.org/img/langs/python.png)](https://github.com/casbin/pycasbin) | [![dotnet](https://casbin.apache.org/img/langs/dotnet.png)](https://github.com/casbin-net/Casbin.NET) | [![c++](https://casbin.apache.org/img/langs/cpp.png)](https://github.com/casbin/casbin-cpp) | [![rust](https://casbin.apache.org/img/langs/rust.png)](https://github.com/casbin/casbin-rs) |
30+
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
31+
| [PyCasbin](https://github.com/casbin/pycasbin) | [Casbin.NET](https://github.com/casbin-net/Casbin.NET) | [Casbin-CPP](https://github.com/casbin/casbin-cpp) | [Casbin-RS](https://github.com/casbin/casbin-rs) |
32+
| production-ready | production-ready | beta-test | production-ready |
3333

3434
## Documentation
3535

36-
https://casbin.org/docs/overview
36+
https://casbin.apache.org/docs/overview
3737

3838
## Installation
3939

@@ -92,33 +92,33 @@ See [Policy management APIs](#policy-management) for more usage.
9292

9393
Casbin provides two sets of APIs to manage permissions:
9494

95-
- [Management API](https://casbin.org/docs/management-api): the primitive API that provides full support for Casbin policy management.
96-
- [RBAC API](https://casbin.org/docs/rbac-api): a more friendly API for RBAC. This API is a subset of Management API. The RBAC users could use this API to simplify the code.
95+
- [Management API](https://casbin.apache.org/docs/management-api): the primitive API that provides full support for Casbin policy management.
96+
- [RBAC API](https://casbin.apache.org/docs/rbac-api): a more friendly API for RBAC. This API is a subset of Management API. The RBAC users could use this API to simplify the code.
9797

9898
## Official Model
9999

100-
https://casbin.org/docs/supported-models
100+
https://casbin.apache.org/docs/supported-models
101101

102102
## Policy persistence
103103

104-
https://casbin.org/docs/adapters
104+
https://casbin.apache.org/docs/adapters
105105

106106
## Policy consistence between multiple nodes
107107

108-
https://casbin.org/docs/watchers
108+
https://casbin.apache.org/docs/watchers
109109

110110
## Role manager
111111

112-
https://casbin.org/docs/role-managers
112+
https://casbin.apache.org/docs/role-managers
113113

114114
## Contributors
115115

116116
This project exists thanks to all the people who contribute.
117-
<a href="https://github.com/casbin/node-casbin/graphs/contributors"><img src="https://opencollective.com/node-casbin/contributors.svg?width=890&button=false" /></a>
117+
<a href="https://github.com/apache/casbin-node-casbin/graphs/contributors"><img src="https://opencollective.com/node-casbin/contributors.svg?width=890&button=false" /></a>
118118

119119
## Star History
120120

121-
[![Star History Chart](https://api.star-history.com/svg?repos=casbin/node-casbin&type=Date)](https://star-history.com/#casbin/node-casbin&Date)
121+
[![Star History Chart](https://api.star-history.com/svg?repos=apache/casbin-node-casbin&type=Date)](https://star-history.com/#apache/casbin-node-casbin&Date)
122122

123123
## License
124124

@@ -127,5 +127,6 @@ This project is licensed under the [Apache 2.0 license](LICENSE).
127127
## Contact
128128

129129
If you have any issues or feature requests, please contact us. PR is welcomed.
130-
- https://github.com/casbin/node-casbin/issues
130+
131+
- https://github.com/apache/casbin-node-casbin/issues
131132
- https://discord.gg/S5UjpzGZjN

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@
5757
"lib",
5858
"examples"
5959
],
60-
"homepage": "http://casbin.org",
60+
"homepage": "https://casbin.apache.org",
6161
"repository": {
6262
"type": "git",
63-
"url": "https://github.com/casbin/node-casbin.git"
63+
"url": "https://github.com/apache/casbin-node-casbin.git"
6464
},
6565
"license": "Apache-2.0",
6666
"husky": {

test/enforcer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ test('test ABAC multiple eval()', async () => {
606606
await testEnforce(e, 78, (34 as unknown) as string, 'read', false);
607607
});
608608

609-
// https://github.com/casbin/node-casbin/issues/438
609+
// https://github.com/apache/casbin-node-casbin/issues/438
610610
test('test ABAC single eval() with r. in unexpected places', async () => {
611611
const m = newModel();
612612
m.addDef('r', 'r', 'sub, obj, act');

0 commit comments

Comments
 (0)