Skip to content

Commit 65b23bf

Browse files
committed
ReScript
1 parent c3ae44a commit 65b23bf

File tree

11 files changed

+256
-283
lines changed

11 files changed

+256
-283
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ node_modules
99
# npm unused lock file (we use yarn.lock)
1010
package-lock.json
1111

12-
# ReScript / Reason / Ocaml artifacts
13-
#*.bs.js # we do want this files to ensure zero-cost
12+
# ReScript artifacts
13+
# *.bs.js # we do want this files to ensure zero-cost
1414
.bsb.lock
1515
**/lib/bs
1616
**/lib/ocaml

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Changelog of `@reason-react-native/keychain`
1+
# Changelog of `@rescript-react-native/keychain`
22

33
## 6.2.0 - 2020-11-06
44

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-2019 Control Center Apps GmbH, @reason-react-native contributors
3+
Copyright (c) 2018-2019 Control Center Apps GmbH, @rescript-react-native contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# `@reason-react-native/keychain`
1+
# `@rescript-react-native/keychain`
22

3-
[![Build Status](https://github.com/reason-react-native/keychain/workflows/Build/badge.svg)](https://github.com/reason-react-native/keychain/actions)
4-
[![Version](https://img.shields.io/npm/v/@reason-react-native/keychain.svg)](https://www.npmjs.com/@reason-react-native/keychain)
5-
[![Chat](https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue)](https://reason-react-native.github.io/discord/)
3+
[![Build Status](https://github.com/rescript-react-native/keychain/workflows/Build/badge.svg)](https://github.com/rescript-react-native/keychain/actions)
4+
[![Version](https://img.shields.io/npm/v/@rescript-react-native/keychain.svg)](https://www.npmjs.com/@rescript-react-native/keychain)
5+
[![ReScript Forum](https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org)](https://forum.rescript-lang.org/)
66

7-
[ReScript](https://rescript-lang.org) / [Reason](https://reasonml.github.io) bindings for
7+
[ReScript](https://rescript-lang.org) bindings for
88
[`react-native-keychain`](https://github.com/oblador/react-native-keychain).
99

1010
Exposed as `ReactNativeKeychain` module.
1111

12-
`@reason-react-native/keychain` X.y.\* means it's compatible with
12+
`@rescript-react-native/keychain` X.y.\* means it's compatible with
1313
`react-native-keychain` X.y.\*
1414

1515
## Installation
@@ -19,22 +19,22 @@ is properly installed & configured by following their installation instructions,
1919
you can install the bindings:
2020

2121
```console
22-
npm install @reason-react-native/keychain
22+
npm install @rescript-react-native/keychain
2323
# or
24-
yarn add @reason-react-native/keychain
24+
yarn add @rescript-react-native/keychain
2525
```
2626

27-
`@reason-react-native/keychain` should be added to `bs-dependencies` in your
27+
`@rescript-react-native/keychain` should be added to `bs-dependencies` in your
2828
`bsconfig.json`:
2929

3030
```diff
3131
{
3232
//...
3333
"bs-dependencies": [
34-
"reason-react",
35-
"reason-react-native",
34+
"@rescript/react",
35+
"rescript-react-native",
3636
// ...
37-
+ "@reason-react-native/keychain"
37+
+ "@rescript-react-native/keychain"
3838
],
3939
//...
4040
}
@@ -56,11 +56,11 @@ releases.
5656
## Contribute
5757

5858
Read the
59-
[contribution guidelines](https://github.com/reason-react-native/.github/blob/master/CONTRIBUTING.md)
59+
[contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md)
6060
before contributing.
6161

6262
## Code of Conduct
6363

6464
We want this community to be friendly and respectful to each other. Please read
65-
[our full code of conduct](https://github.com/reason-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
65+
[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
6666
so that you can understand what actions will and will not be tolerated.

bsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
2-
"name": "@reason-react-native/keychain",
3-
"refmt": 3,
4-
"reason": {
5-
"react-jsx": 3
6-
},
2+
"name": "@rescript-react-native/keychain",
3+
"reason": { "react-jsx": 3 },
74
"package-specs": {
85
"module": "commonjs",
96
"in-source": true

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@reason-react-native/keychain",
2+
"name": "@rescript-react-native/keychain",
33
"description": "ReScript bindings for react-native-keychain.",
44
"version": "6.2.0",
55
"publishConfig": {
@@ -9,22 +9,20 @@
99
"react-native-keychain": "^6.2.0"
1010
},
1111
"author": "Christoph Knittel <ck@cca.io>",
12-
"repository": "https://github.com/reason-react-native/keychain.git",
12+
"repository": "https://github.com/rescript-react-native/keychain.git",
1313
"license": "MIT",
1414
"keywords": [
1515
"rescript",
16-
"reason",
17-
"reasonml",
18-
"bucklescript",
1916
"react-native",
20-
"reason-react-native",
17+
"rescript-react-native",
2118
"react-native-keychain",
2219
"keychain"
2320
],
2421
"files": [
2522
"*.md",
2623
"bsconfig.json",
27-
"src/**/*.re",
24+
"src/**/*.res",
25+
"src/**/*.resi",
2826
"src/**/*.js",
2927
"!src/**/*.bs.js"
3028
],
@@ -41,7 +39,7 @@
4139
"release": "npmpub"
4240
},
4341
"devDependencies": {
44-
"bs-platform": "^8.2.0",
42+
"bs-platform": "^9.0.0",
4543
"husky": "^4.0.0",
4644
"lint-staged": "^10.0.0",
4745
"npmpub": "^5.0.0",

src/ReactNativeKeychain.bs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function decodeGetGenericPasswordResult(result) {
2626
var match = Belt_Option.map(Js_dict.get(dict$1, "service"), Js_json.classify);
2727
var match$1 = Belt_Option.map(Js_dict.get(dict$1, "username"), Js_json.classify);
2828
var match$2 = Belt_Option.map(Js_dict.get(dict$1, "password"), Js_json.classify);
29-
if (match !== undefined && !(typeof match === "number" || match.TAG || !(match$1 !== undefined && !(typeof match$1 === "number" || match$1.TAG || !(match$2 !== undefined && !(typeof match$2 === "number" || match$2.TAG)))))) {
29+
if (match !== undefined && !(typeof match === "number" || !(match.TAG === /* JSONString */0 && match$1 !== undefined && !(typeof match$1 === "number" || !(match$1.TAG === /* JSONString */0 && match$2 !== undefined && !(typeof match$2 === "number" || match$2.TAG !== /* JSONString */0)))))) {
3030
return {
3131
service: match._0,
3232
username: match$1._0,

0 commit comments

Comments
 (0)