Skip to content

Commit

Permalink
Upgrade to bs-platform 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
scull7 committed Jul 10, 2018
1 parent 6ebc55d commit 7c74866
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@glennsl/bs-jest": "^0.4.2",
"bs-platform": "^3.1.5",
"bs-platform": "^4.0.0",
"coveralls": "^3.0.1",
"husky": "^0.14.3",
"lint-staged": "^7.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/MySql2.re
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ let handler = (callback, exn, res, meta) =>
let execute = (conn, sql, params, callback) => {
let options = Options.fromParams(sql, params);

options |. Options.namedPlaceholders ?
options |. Options.namedPlaceholdersGet ?
execute(conn, options, handler(callback)) :
query(conn, options, handler(callback));
};
6 changes: 3 additions & 3 deletions src/MySql2_response.re
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ module Select = {
t(~rows, ~meta=meta |. Belt.Array.map(Meta.make));

let flatMap = (t, fn) =>
Belt.Array.map(t |. rows, row => fn(row, t |. meta));
Belt.Array.map(t |. rowsGet, row => fn(row, t |. metaGet));

let mapDecoder = (t, decoder) => Belt.Array.map(t |. rows, decoder);
let mapDecoder = (t, decoder) => Belt.Array.map(t |. rowsGet, decoder);

let count = t => Belt.Array.length(t |. rows);
let count = t => Belt.Array.length(t |. rowsGet);
};

/* https://github.com/mysqljs/mysql#getting-the-number-of-changed-rows */
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@ browser-resolve@^1.11.2:
dependencies:
resolve "1.1.7"

bs-platform@^3.1.5:
version "3.1.5"
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-3.1.5.tgz#fb34ee4702bc9163848d5537096c4f31ebaeed40"
bs-platform@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-4.0.0.tgz#4190460550414eecff92f1e2bbaf4d9c557b60af"

bser@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit 7c74866

Please sign in to comment.