rescript
Advanced tools
Comparing version 11.1.0-rc.1 to 11.1.0-rc.2
var id = { | ||
contents: 0 | ||
}; | ||
var idMap = new Map(); | ||
function create(str) { | ||
id.contents = id.contents + 1 | 0; | ||
return str + ("/" + id.contents); | ||
var v = idMap.get(str); | ||
var id; | ||
if (v !== undefined) { | ||
var id$1 = v + 1 | 0; | ||
idMap.set(str, id$1); | ||
id = id$1; | ||
} else { | ||
idMap.set(str, 1); | ||
id = 1; | ||
} | ||
return str + ("/" + id); | ||
} | ||
@@ -26,3 +33,2 @@ | ||
export { | ||
id , | ||
create , | ||
@@ -32,2 +38,2 @@ is_extension , | ||
} | ||
/* No side effect */ | ||
/* idMap Not a pure module */ |
@@ -31,2 +31,2 @@ | ||
} | ||
/* No side effect */ | ||
/* Caml_exceptions Not a pure module */ |
'use strict'; | ||
var id = { | ||
contents: 0 | ||
}; | ||
var idMap = new Map(); | ||
function create(str) { | ||
id.contents = id.contents + 1 | 0; | ||
return str + ("/" + id.contents); | ||
var v = idMap.get(str); | ||
var id; | ||
if (v !== undefined) { | ||
var id$1 = v + 1 | 0; | ||
idMap.set(str, id$1); | ||
id = id$1; | ||
} else { | ||
idMap.set(str, 1); | ||
id = 1; | ||
} | ||
return str + ("/" + id); | ||
} | ||
@@ -25,6 +32,5 @@ | ||
exports.id = id; | ||
exports.create = create; | ||
exports.is_extension = is_extension; | ||
exports.exn_slot_name = exn_slot_name; | ||
/* No side effect */ | ||
/* idMap Not a pure module */ |
@@ -29,2 +29,2 @@ 'use strict'; | ||
exports.as_js_exn = as_js_exn; | ||
/* No side effect */ | ||
/* Caml_exceptions Not a pure module */ |
{ | ||
"name": "rescript", | ||
"version": "11.1.0-rc.1", | ||
"version": "11.1.0-rc.2", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "mocha": "10.1.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
87008860
79071