-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrated FFI to ES modules via 'lebab' * Removed '"use strict";' in FFI files * Update to CI to use 'unstable' purescript * Update Bower dependencies to master or main * Update pulp to 16.0.0-0 * Update psa to 0.8.2 * Update Bower dependencies to master or main * Update eslint to es6 * Fix FFI export * Update CI to use Node 14 * Add changelog entry
- Loading branch information
1 parent
b8e10f3
commit 9603e90
Showing
10 changed files
with
44 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
"use strict"; | ||
|
||
exports.new = function(options) { | ||
const newImpl = function (options) { | ||
return function() { | ||
return new QueuingStrategy(options); | ||
}; | ||
}; | ||
export { newImpl as new }; | ||
|
||
exports.byteLengthQueuingStrategy = function(options) { | ||
export function byteLengthQueuingStrategy(options) { | ||
return function() { | ||
return new ByteLengthQueuingStrategy(options); | ||
}; | ||
}; | ||
} | ||
|
||
exports.countQueuingStrategy = function(options) { | ||
export function countQueuingStrategy(options) { | ||
return function() { | ||
return new CountQueuingStrategy(options); | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
"use strict"; | ||
|
||
exports._new = function(source, strategy) { | ||
export function _new(source, strategy) { | ||
return new ReadableStream(source, strategy); | ||
}; | ||
} | ||
|
||
exports.cancel = function(stream) { | ||
export function cancel(stream) { | ||
return function() { | ||
return stream.cancel(); | ||
}; | ||
}; | ||
} | ||
|
||
exports.locked = function(stream) { | ||
export function locked(stream) { | ||
return function() { | ||
return stream.locked; | ||
}; | ||
}; | ||
} | ||
|
||
exports.getReader = function(stream) { | ||
export function getReader(stream) { | ||
return function() { | ||
return stream.getReader(); | ||
}; | ||
}; | ||
} | ||
|
||
exports._tee = function(tuple, stream) { | ||
export function _tee(tuple, stream) { | ||
var r = stream.tee(); | ||
return tuple(r[0])(r[1]); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
"use strict"; | ||
|
||
exports.enqueue = function(chunk) { | ||
export function enqueue(chunk) { | ||
return function(controller) { | ||
return function() { | ||
return controller.enqueue(chunk); | ||
}; | ||
}; | ||
}; | ||
} | ||
|
||
exports.close = function(controller) { | ||
export function close(controller) { | ||
return function() { | ||
return controller.close(); | ||
}; | ||
}; | ||
} | ||
|
||
exports.error = function(error) { | ||
export function error(error) { | ||
return function(controller) { | ||
return function() { | ||
return controller.error(error); | ||
}; | ||
}; | ||
}; | ||
} | ||
|
||
exports.desiredSize = function(controller) { | ||
export function desiredSize(controller) { | ||
return function() { | ||
return controller.desiredSize; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
"use strict"; | ||
|
||
exports._read = function(nothing, just, reader) { | ||
export function _read(nothing, just, reader) { | ||
return reader.read().then(function(res) { | ||
if (res.done) { | ||
return nothing; | ||
} | ||
return just(res.value); | ||
}); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters