Skip to content

Commit acf39c2

Browse files
authored
feat: switch dependency to our own package: @casbin/expression-eval 5.2.0 (#489)
1 parent 980ef14 commit acf39c2

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
"typescript": "^3.7.2"
5050
},
5151
"dependencies": {
52+
"@casbin/expression-eval": "^5.2.0",
5253
"await-lock": "^2.0.1",
5354
"buffer": "^6.0.3",
5455
"csv-parse": "^5.3.5",
55-
"expression-eval": "^5.0.0",
5656
"minimatch": "^7.4.2"
5757
},
5858
"files": [

src/coreEnforcer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import { compile, compileAsync, addBinaryOp } from 'expression-eval';
15+
import { compile, compileAsync, addBinaryOp } from '@casbin/expression-eval';
1616

1717
import { DefaultEffector, Effect, Effector } from './effect';
1818
import { FunctionMap, Model, newModelFromFile, PolicyOp } from './model';

test/util.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import { getLogger, logPrint, Util as util } from '../src';
16-
import { compile } from 'expression-eval';
16+
import { compile } from '@casbin/expression-eval';
1717

1818
test('test enableLog success', () => {
1919
getLogger().enableLog(true);

yarn.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,13 @@
301301
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
302302
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
303303

304+
"@casbin/expression-eval@^5.2.0":
305+
version "5.2.0"
306+
resolved "https://registry.yarnpkg.com/@casbin/expression-eval/-/expression-eval-5.2.0.tgz#a388405077acfca0d9e223a969eb78d0a6c83aaa"
307+
integrity sha512-QNyxosVLIyMRPemwLs5IkuEp81YXMxb6uX/Y1dVR9Z8mCRfZjy/FWV1TuKz5q84oKbXwwo7Wg1IBMQ8Jgcw43g==
308+
dependencies:
309+
jsep "^0.3.0"
310+
304311
"@cnakazawa/watch@^1.0.3":
305312
version "1.0.4"
306313
resolved "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a"
@@ -2900,13 +2907,6 @@ expect@^26.6.2:
29002907
jest-message-util "^26.6.2"
29012908
jest-regex-util "^26.0.0"
29022909

2903-
expression-eval@^5.0.0:
2904-
version "5.0.0"
2905-
resolved "https://registry.yarnpkg.com/expression-eval/-/expression-eval-5.0.0.tgz#0add5fa9e12c9bbaa8e81f16fc9e560599523afd"
2906-
integrity sha512-2H7OBTa/UKBgTVRRb3/lXd+D89cLjClNtldnzOpZYWZK1zBLIlrz8BLWp5f81AAYOc37GbhkCRXtl5Z/q4D91g==
2907-
dependencies:
2908-
jsep "^0.3.0"
2909-
29102910
extend-shallow@^2.0.1:
29112911
version "2.0.1"
29122912
resolved "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f"

0 commit comments

Comments
 (0)