@vssue/utils
Advanced tools
Comparing version 0.1.2 to 0.2.0
import format from 'date-fns/format'; | ||
import compareDesc from 'date-fns/compare_desc'; | ||
import { parse, stringify, } from 'qs'; | ||
@@ -23,5 +22,2 @@ export var buildURL = function (cleanURL, params) { | ||
}; | ||
export var compareDateDesc = function (dateA, dateB) { | ||
return compareDesc(dateA, dateB); | ||
}; | ||
export var noop = function () { }; | ||
@@ -35,5 +31,4 @@ export default { | ||
formatDateTime: formatDateTime, | ||
compareDateDesc: compareDateDesc, | ||
noop: noop, | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxNQUFNLE1BQU0saUJBQWlCLENBQUE7QUFDcEMsT0FBTyxXQUFXLE1BQU0sdUJBQXVCLENBQUE7QUFDL0MsT0FBTyxFQUNMLEtBQUssRUFDTCxTQUFTLEdBQ1YsTUFBTSxJQUFJLENBQUE7QUFFWCxNQUFNLENBQUMsSUFBTSxRQUFRLEdBQUcsVUFBQyxRQUFnQixFQUFFLE1BQWM7SUFDdkQsSUFBSSxLQUFLLEdBQUcsU0FBUyxDQUFDLE1BQU0sRUFBRSxFQUFFLGNBQWMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFBO0lBQ3ZELE9BQU8sS0FBRyxRQUFRLEdBQUcsS0FBTyxDQUFBO0FBQzlCLENBQUMsQ0FBQTtBQUVELE1BQU0sQ0FBQyxJQUFNLFNBQVMsR0FBRyxVQUFDLE9BQWUsRUFBRSxJQUFZO0lBQ3JELElBQUksU0FBUyxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFBO0lBQzFDLElBQUksVUFBVSxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUMsS0F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OiBzdHJpbmcgPT4ge1xuICBjb25zdCBjbGVhblVSTCA9IGZ1bGxVUkwuc3BsaXQoJz8nKVswXSB8fCAnJ1xuICByZXR1cm4gY2xlYW5VUkxcbn1cblxuZXhwb3J0IGNvbnN0IHBhcnNlUXVlcnkgPSAoVVJMOiBzdHJpbmcpOiBhbnkgPT4gcGFyc2UoVVJMLCB7IGlnbm9yZVF1ZXJ5UHJlZml4OiB0cnVlIH0pXG5cbmV4cG9ydCBjb25zdCBidWlsZFF1ZXJ5ID0gKHBhcmFtczogT2JqZWN0KTogc3RyaW5nID0+IHN0cmluZ2lmeShwYXJhbXMpXG5cbmV4cG9ydCBjb25zdCBmb3JtYXREYXRlVGltZSA9IChzdHI6IHN0cmluZyk6IHN0cmluZyA9PiB7XG4gIGNvbnN0IGRhdGVUaW1lID0gZm9ybWF0KHN0ciwgJ1lZWVktTU0tREQgSEg6bW06c3MnKVxuICByZXR1cm4gZGF0ZVRpbWVcbn1cblxuZXhwb3J0IGNvbnN0IG5vb3AgPSAoKSA9PiB7fVxuXG5leHBvcnQgZGVmYXVsdCB7XG4gIGJ1aWxkVVJMLFxuICBjb25jYXRVUkwsXG4gIGdldENsZWFuVVJMLFxuICBwYXJzZVF1ZXJ5LFxuICBidWlsZFF1ZXJ5LFxuICBmb3JtYXREYXRlVGltZSxcbiAgbm9vcCxcbn1cbiJdfQ== |
{ | ||
"name": "@vssue/utils", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Vssue internal utils", | ||
@@ -35,3 +35,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "4af2c8f42692e27dc5e39cf3af2b68aac734a193" | ||
"gitHead": "b766459604ded3b56082a642a88e211433c7dbc2" | ||
} |
@@ -7,3 +7,2 @@ export declare const buildURL: (cleanURL: string, params: Object) => string; | ||
export declare const formatDateTime: (str: string) => string; | ||
export declare const compareDateDesc: (dateA: any, dateB: any) => Number; | ||
export declare const noop: () => void; | ||
@@ -17,5 +16,4 @@ declare const _default: { | ||
formatDateTime: (str: string) => string; | ||
compareDateDesc: (dateA: any, dateB: any) => Number; | ||
noop: () => void; | ||
}; | ||
export default _default; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
608038
6
48