-
-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix value parse check #99
Conversation
@zMotivat0r the question is I can't execute the build task. yesterday I can ┑( ̄Д  ̄)┍
|
Ok, I'm checking it. Meanwhile, maybe I should add a build step to the CI, what do you think? |
I can only execute |
The structure of this repo does not support the use of just build before ci and publish. but why the tests are depending on js files not ts files? |
we use Lerna and publish output files. It doesn't allow publish unstaged files, so we definitely need js files in our repo. But yes, you're probably right - it seems like a wrong decision to test against js files |
@zMotivat0r solved build problem. config |
Ok, cool |
@zMotivat0r Why don't use third party libs? |
npm scripts {
"scripts":{
"prepare":"yarn s build"
}
} |
@zMotivat0r Why did you merge #104 instead of this? And this fix ISO-8601 date string. |
@Diluka no worries, we will merge yours too. We need contributors, thats why I'm reviewing all PRs. His PR was good and it fixed that bug, do you agree? I'm not around at the moment, but will try to get to my laptop today evening or tomorrow. Meanwhile could you please coberage? |
@zMotivat0r OK. I'll rebase and refactor with #104 . But when do you remove the compiled files from repo? |
build sequence will be in order
1. `isBoolean` return `true` if val is `boolean` otherwise return `false` 2. `isNumeric` return `true` if val string is a normal number e.g. `-123.456` 3. `isDateString` return `true` if val string is not numeric and can be parsed into a valid date 4. `isDate` return `true` if val is instance of `Date` 5. `isValue` return `true` if val is one of non-empty `string`, `number`, `boolean` or `Date`. In short, the val can be database value. 6. `hasValue` return `true` if val is `isValue` or non-empty array with each val is `isValue`
1. refactor #104 to use utils 2. add support for ISO-8601 the date format of `JSON.stringify(new Date())`. Useful for multi-time zone projects. 3. fix some lint error 4. change test. Now filters can receive values as expected.
emmm, seems like your pretest failed ┑( ̄Д  ̄)┍ @zMotivat0r |
this fix #97 close #49
value has been parsed correctly, but check only length. Numbers and Booleans don't have length.refactor #104 and add ISO-8601 support