Skip to content
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Commit 7360823

Browse files
author
Hongbo Zhang
committed
update with the new version
1 parent f0af906 commit 7360823

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/node-http-server/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"devDependencies": {
3-
"bs-platform": "^0.5.5"
3+
"bs-platform": "0.6.2"
44
},
55
"scripts" : {
66
"build" : "bsc -c test_http_server.ml"

examples/node-http-server/test_http_server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// GENERATED CODE BY BUCKLESCRIPT VERSION 0.5.5 , PLEASE EDIT WITH CARE
1+
// GENERATED CODE BY BUCKLESCRIPT VERSION 0.6.2 , PLEASE EDIT WITH CARE
22
'use strict';
33

44
var Pervasives = require("bs-platform/lib/js/pervasives");

examples/node-http-server/test_http_server.ml

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ let create_server http =
3939

4040
type req
4141

42-
type resp = <
42+
type resp = [%bs.obj:<
4343
statusCode_set : int -> unit ;
4444
setHeader : string * string -> unit ;
4545
end_ : string -> unit
46-
> [@bs.obj]
46+
> ]
4747

48-
type server = <
48+
type server = [%bs.obj:<
4949
listen : int * string * (unit -> unit) -> unit
50-
> [@bs.obj]
50+
> ]
5151

5252

5353

54-
type http = <
54+
type http = [%bs.obj:<
5555
createServer : (req * resp -> unit ) -> server
56-
> [@bs.obj]
56+
> ]
5757

5858

5959
external http : http = "http" [@@bs.val_of_module ]

0 commit comments

Comments
 (0)