Skip to content

Commit

Permalink
update CHANGELOG and add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 13, 2020
1 parent 943695f commit 6efbc31
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* add repr of global object
* add repr of classes
* add support for creating anonymous classes
* add `do-generator` macro
* add `do-iterator` macro
* add repr of `Map` and `Set`
* add `digit-value` function
* add `#d` prefix for decimal numbers
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![npm](https://img.shields.io/badge/npm-1.0.0%E2%80%93beta.9-blue.svg)](https://www.npmjs.com/package/@jcubic/lips)
![1.0.0 Complete](https://img.shields.io/github/milestones/progress-percent/jcubic/lips/1?label=1.0.0%20Complete)
[![travis](https://travis-ci.org/jcubic/lips.svg?branch=devel&d30bbeafec9b7579edd7323c25c498d95ffc1910)](https://travis-ci.org/jcubic/lips)
[![travis](https://travis-ci.org/jcubic/lips.svg?branch=devel&943695f973b09669f49d7ddc5e9b04197dfd5657)](https://travis-ci.org/jcubic/lips)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&4ad2a0cc51eda574815b5c09cef1fa86)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Join Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jcubic/lips)
[![GitHub license](https://img.shields.io/github/license/jcubic/lips.svg)](https://github.com/jcubic/lips/blob/master/LICENSE)
Expand Down
12 changes: 8 additions & 4 deletions dist/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Copyright (c) 2014-present, Facebook, Inc.
* released under MIT license
*
* build: Fri, 11 Dec 2020 14:51:12 +0000
* build: Sun, 13 Dec 2020 10:26:22 +0000
*/
(function () {
'use strict';
Expand Down Expand Up @@ -2522,11 +2522,15 @@

return fn(value);
} // ----------------------------------------------------------------------
// :: Function similar to Array.from that work on async iterators
// ----------------------------------------------------------------------


function uniterate_async(_x3) {
return _uniterate_async.apply(this, arguments);
} // ----------------------------------------------------------------------
// :: function that return mather function that match string against string
// ----------------------------------------------------------------------


function _uniterate_async() {
Expand Down Expand Up @@ -11951,10 +11955,10 @@

var banner = function () {
// Rollup tree-shaking is removing the variable if it's normal string because
// obviously 'Fri, 11 Dec 2020 14:51:12 +0000' == '{{' + 'DATE}}'; can be removed
// obviously 'Sun, 13 Dec 2020 10:26:22 +0000' == '{{' + 'DATE}}'; can be removed
// but disablig Tree-shaking is adding lot of not used code so we use this
// hack instead
var date = LString('Fri, 11 Dec 2020 14:51:12 +0000').valueOf();
var date = LString('Sun, 13 Dec 2020 10:26:22 +0000').valueOf();

var _date = date === '{{' + 'DATE}}' ? new Date() : new Date(date);

Expand Down Expand Up @@ -11991,7 +11995,7 @@
var lips = {
version: 'DEV',
banner: banner,
date: 'Fri, 11 Dec 2020 14:51:12 +0000',
date: 'Sun, 13 Dec 2020 10:26:22 +0000',
exec: exec,
// unwrap async generator into Promise<Array>
parse: compose(uniterate_async, parse),
Expand Down
4 changes: 2 additions & 2 deletions dist/lips.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,8 @@
return fn(value);
}
// ----------------------------------------------------------------------
// :: Function similar to Array.from that work on async iterators
// ----------------------------------------------------------------------
async function uniterate_async(object) {
const result = [];
for await (let item of object) {
Expand All @@ -981,6 +983,8 @@
return result;
}
// ----------------------------------------------------------------------
// :: function that return mather function that match string against string
// ----------------------------------------------------------------------
function matcher(name, arg) {
if (arg instanceof RegExp) {
return x => String(x).match(arg);
Expand Down

0 comments on commit 6efbc31

Please sign in to comment.