@haluo/util 0.0.12 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/.babelrc +0 -21
- package/.eslintrc.js +0 -216
- package/__tests__/unit/date/date.spec.js +0 -14
- package/__tests__/unit/jest.conf.js +0 -25
- package/__tests__/unit/specs/date.test.js +0 -11
- package/coverage/clover.xml +0 -78
- package/coverage/coverage-final.json +0 -2
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -79
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -111
- package/coverage/lcov-report/index.ts.html +0 -668
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -170
- package/coverage/lcov.info +0 -170
- package/dist/index.js +0 -36
- package/dist/modules/cookie/index.js +0 -54
- package/dist/modules/date/index.js +0 -192
- package/dist/modules/dom/index.js +0 -62
- package/dist/modules/filter/index.js +0 -57
- package/dist/modules/format/index.js +0 -21
- package/dist/modules/match/index.js +0 -31
- package/dist/modules/number/index.js +0 -102
- package/dist/modules/sentry/index.js +0 -81
- package/dist/modules/tools/index.js +0 -393
- package/global.d.ts +0 -0
- package/publish.sh +0 -11
- package/specification/CSS.md +0 -25
- package/specification/JS.md +0 -9
- package/specification/VUE.md +0 -1
- package/src/consts/httpCode.js +0 -10
- package/src/index.ts +0 -54
- package/src/modules/cookie/index.ts +0 -69
- package/src/modules/date/index.ts +0 -196
- package/src/modules/dom/index.ts +0 -78
- package/src/modules/filter/index.ts +0 -57
- package/src/modules/format/index.ts +0 -19
- package/src/modules/match/index.ts +0 -31
- package/src/modules/number/index.ts +0 -108
- package/src/modules/sentry/index.ts +0 -82
- package/src/modules/tools/index.ts +0 -427
- package/tsconfig.json +0 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haluo/util",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"author": "<wanghui@jddmoto.com>",
|
|
6
6
|
"description": "哈罗摩托工具库",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"precommit": "lint-staged"
|
|
14
14
|
},
|
|
15
15
|
"types": "dist/types/index.d.ts",
|
|
16
|
+
"files": ["./dist/**/*", "./package.json"],
|
|
16
17
|
"lint-staged": {
|
|
17
18
|
"src/**/*.{js,vue}": [
|
|
18
19
|
"eslint --fix",
|
package/.babelrc
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
const DOMGlobals = [] // ['window']
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
parserOptions: {
|
|
6
|
-
parser: 'babel-eslint',
|
|
7
|
-
sourceType: 'module'
|
|
8
|
-
},
|
|
9
|
-
env: {
|
|
10
|
-
browser: true,
|
|
11
|
-
node: true,
|
|
12
|
-
es6: true,
|
|
13
|
-
jest: true
|
|
14
|
-
},
|
|
15
|
-
extends: ['plugin:vue/recommended', 'eslint:recommended'],
|
|
16
|
-
globals: {
|
|
17
|
-
document: true,
|
|
18
|
-
navigator: true,
|
|
19
|
-
window: true,
|
|
20
|
-
wx: true,
|
|
21
|
-
Toast: true,
|
|
22
|
-
AppCall: true,
|
|
23
|
-
QRCode: true
|
|
24
|
-
},
|
|
25
|
-
// 0 关闭 1警告 2报错
|
|
26
|
-
// add your custom rules here
|
|
27
|
-
// it is base on https://github.com/vuejs/eslint-config-vue
|
|
28
|
-
rules: {
|
|
29
|
-
'vue/max-attributes-per-line': [2, {
|
|
30
|
-
'singleline': 10,
|
|
31
|
-
'multiline': {
|
|
32
|
-
'max': 1,
|
|
33
|
-
'allowFirstLine': false
|
|
34
|
-
}
|
|
35
|
-
}],
|
|
36
|
-
'vue/name-property-casing': [2, 'PascalCase'],
|
|
37
|
-
'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
|
|
38
|
-
'vue/require-prop-types': 0,
|
|
39
|
-
'vue/html-self-closing': 0,
|
|
40
|
-
'accessor-pairs': 2,
|
|
41
|
-
'arrow-spacing': [2, {
|
|
42
|
-
'before': true,
|
|
43
|
-
'after': true
|
|
44
|
-
}],
|
|
45
|
-
'block-spacing': [2, 'always'],
|
|
46
|
-
'brace-style': [2, '1tbs', {
|
|
47
|
-
'allowSingleLine': true
|
|
48
|
-
}],
|
|
49
|
-
'camelcase': [0, {
|
|
50
|
-
'properties': 'always'
|
|
51
|
-
}],
|
|
52
|
-
'comma-dangle': 0, // [2, 'never'],
|
|
53
|
-
'comma-spacing': [2, {
|
|
54
|
-
'before': false,
|
|
55
|
-
'after': true
|
|
56
|
-
}],
|
|
57
|
-
'comma-style': [2, 'last'],
|
|
58
|
-
'constructor-super': 2,
|
|
59
|
-
'curly': [2, 'multi-line'],
|
|
60
|
-
'dot-location': [2, 'property'],
|
|
61
|
-
'eol-last': 2,
|
|
62
|
-
'eqeqeq': [2, 'allow-null'],
|
|
63
|
-
'generator-star-spacing': [2, {
|
|
64
|
-
'before': true,
|
|
65
|
-
'after': true
|
|
66
|
-
}],
|
|
67
|
-
'handle-callback-err': [2, '^(err|error)$'],
|
|
68
|
-
'indent': 0, // [2, 2, { 'SwitchCase': 1 }],
|
|
69
|
-
'jsx-quotes': [2, 'prefer-single'],
|
|
70
|
-
'key-spacing': [2, {
|
|
71
|
-
'beforeColon': false,
|
|
72
|
-
'afterColon': true
|
|
73
|
-
}],
|
|
74
|
-
'keyword-spacing': [2, {
|
|
75
|
-
'before': true,
|
|
76
|
-
'after': true
|
|
77
|
-
}],
|
|
78
|
-
'max-depth': [1, { 'max': 4 }],
|
|
79
|
-
'max-len': [1, { 'code': 150, 'tabWidth': 2, 'ignoreUrls': true, 'ignoreRegExpLiterals': true }],
|
|
80
|
-
'max-lines': [1, { 'max': 1000, 'skipBlankLines': true, 'skipComments': true }],
|
|
81
|
-
// 'max-lines-per-function': [1, { 'max': 20, 'skipComments': true }],
|
|
82
|
-
'max-params': [1, 3],
|
|
83
|
-
'new-cap': [2, {
|
|
84
|
-
'newIsCap': true,
|
|
85
|
-
'capIsNew': false
|
|
86
|
-
}],
|
|
87
|
-
'new-parens': 2,
|
|
88
|
-
'no-array-constructor': 2,
|
|
89
|
-
'no-caller': 2,
|
|
90
|
-
'no-console': 0,
|
|
91
|
-
'no-class-assign': 2,
|
|
92
|
-
'no-cond-assign': 2,
|
|
93
|
-
'no-const-assign': 2,
|
|
94
|
-
'no-control-regex': 0,
|
|
95
|
-
'no-delete-var': 2,
|
|
96
|
-
'no-dupe-args': 2,
|
|
97
|
-
'no-dupe-class-members': 2,
|
|
98
|
-
'no-dupe-keys': 2,
|
|
99
|
-
'no-duplicate-case': 2,
|
|
100
|
-
'no-empty-character-class': 2,
|
|
101
|
-
'no-empty-pattern': 2,
|
|
102
|
-
'no-eval': 2,
|
|
103
|
-
'no-ex-assign': 2,
|
|
104
|
-
'no-extend-native': 2,
|
|
105
|
-
'no-extra-bind': 2,
|
|
106
|
-
'no-extra-boolean-cast': 2,
|
|
107
|
-
'no-extra-parens': [2, 'functions'],
|
|
108
|
-
'no-fallthrough': 2,
|
|
109
|
-
'no-floating-decimal': 2,
|
|
110
|
-
'no-func-assign': 2,
|
|
111
|
-
'no-implied-eval': 2,
|
|
112
|
-
'no-inner-declarations': [2, 'functions'],
|
|
113
|
-
'no-invalid-regexp': 2,
|
|
114
|
-
'no-irregular-whitespace': 2,
|
|
115
|
-
'no-iterator': 2,
|
|
116
|
-
'no-label-var': 2,
|
|
117
|
-
'no-labels': [2, {
|
|
118
|
-
'allowLoop': false,
|
|
119
|
-
'allowSwitch': false
|
|
120
|
-
}],
|
|
121
|
-
'no-lone-blocks': 2,
|
|
122
|
-
'no-magic-numbers': [1, { 'ignore': [-1, 0, 1, 10, 12, 24, 30, 60, 100, 200, 1000, 2000, 3000, 3600, 5000], "ignoreArrayIndexes": true }],
|
|
123
|
-
'no-mixed-spaces-and-tabs': 2,
|
|
124
|
-
'no-multi-spaces': 2,
|
|
125
|
-
'no-multi-str': 2,
|
|
126
|
-
'no-multiple-empty-lines': [2, {
|
|
127
|
-
'max': 1
|
|
128
|
-
}],
|
|
129
|
-
'no-native-reassign': 2,
|
|
130
|
-
'no-negated-in-lhs': 2,
|
|
131
|
-
'no-new-object': 2,
|
|
132
|
-
'no-new-require': 2,
|
|
133
|
-
'no-new-symbol': 2,
|
|
134
|
-
'no-new-wrappers': 2,
|
|
135
|
-
'no-obj-calls': 2,
|
|
136
|
-
'no-octal': 2,
|
|
137
|
-
'no-octal-escape': 2,
|
|
138
|
-
'no-path-concat': 2,
|
|
139
|
-
'no-proto': 2,
|
|
140
|
-
'no-redeclare': 2,
|
|
141
|
-
'no-regex-spaces': 2,
|
|
142
|
-
'no-return-assign': 0,
|
|
143
|
-
'no-restricted-globals': [1, ...DOMGlobals],
|
|
144
|
-
'no-self-assign': 2,
|
|
145
|
-
'no-self-compare': 2,
|
|
146
|
-
'no-sequences': 0,
|
|
147
|
-
'no-shadow-restricted-names': 2,
|
|
148
|
-
'no-spaced-func': 2,
|
|
149
|
-
'no-sparse-arrays': 2,
|
|
150
|
-
'no-this-before-super': 2,
|
|
151
|
-
'no-throw-literal': 2,
|
|
152
|
-
'no-trailing-spaces': 2,
|
|
153
|
-
'no-undef': 2,
|
|
154
|
-
'no-undef-init': 2,
|
|
155
|
-
'no-unexpected-multiline': 2,
|
|
156
|
-
'no-unmodified-loop-condition': 2,
|
|
157
|
-
'no-unneeded-ternary': [2, {
|
|
158
|
-
'defaultAssignment': false
|
|
159
|
-
}],
|
|
160
|
-
'no-unreachable': 2,
|
|
161
|
-
'no-unsafe-finally': 2,
|
|
162
|
-
'no-unused-vars': [2, {
|
|
163
|
-
'vars': 'all',
|
|
164
|
-
'args': 'none'
|
|
165
|
-
}],
|
|
166
|
-
'no-useless-call': 2,
|
|
167
|
-
'no-useless-computed-key': 2,
|
|
168
|
-
'no-useless-constructor': 2,
|
|
169
|
-
'no-useless-escape': 0,
|
|
170
|
-
'no-whitespace-before-property': 2,
|
|
171
|
-
'no-with': 2,
|
|
172
|
-
'one-var': [2, {
|
|
173
|
-
'initialized': 'never'
|
|
174
|
-
}],
|
|
175
|
-
'operator-linebreak': [2, 'after', {
|
|
176
|
-
'overrides': {
|
|
177
|
-
'?': 'before',
|
|
178
|
-
':': 'before'
|
|
179
|
-
}
|
|
180
|
-
}],
|
|
181
|
-
'padded-blocks': [2, 'never'],
|
|
182
|
-
'quotes': [2, 'single', {
|
|
183
|
-
'avoidEscape': true,
|
|
184
|
-
'allowTemplateLiterals': true
|
|
185
|
-
}],
|
|
186
|
-
'semi': 0,
|
|
187
|
-
'semi-spacing': [2, {
|
|
188
|
-
'before': false,
|
|
189
|
-
'after': true
|
|
190
|
-
}],
|
|
191
|
-
'space-before-blocks': [2, 'always'],
|
|
192
|
-
'space-before-function-paren': 0,
|
|
193
|
-
'space-before-function-paren': 0,
|
|
194
|
-
'space-in-parens': [2, 'never'],
|
|
195
|
-
'space-infix-ops': 2,
|
|
196
|
-
'space-unary-ops': [2, {
|
|
197
|
-
'words': true,
|
|
198
|
-
'nonwords': false
|
|
199
|
-
}],
|
|
200
|
-
'spaced-comment': [2, 'always', {
|
|
201
|
-
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
|
|
202
|
-
}],
|
|
203
|
-
'template-curly-spacing': [2, 'never'],
|
|
204
|
-
'use-isnan': 2,
|
|
205
|
-
'valid-typeof': 2,
|
|
206
|
-
'wrap-iife': [2, 'any'],
|
|
207
|
-
'yield-star-spacing': [2, 'both'],
|
|
208
|
-
'yoda': [2, 'never'],
|
|
209
|
-
'prefer-const': 2,
|
|
210
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
211
|
-
'object-curly-spacing': [2, 'always', {
|
|
212
|
-
objectsInObjects: false
|
|
213
|
-
}],
|
|
214
|
-
'array-bracket-spacing': [2, 'never']
|
|
215
|
-
}
|
|
216
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { format, formatPassTimeForDetail } from '../../../src/modules/date/index.ts'
|
|
2
|
-
describe('date', () => {
|
|
3
|
-
it('formatTime()默认格式,返回时间格式是否正常', () => {
|
|
4
|
-
expect(format(1586934316925)).toBe('2020-04-15 15:05:16')
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
it('formatTime()传参数,返回时间格式是否正常', () => {
|
|
8
|
-
expect(format(1586934316925, 'YYYY.MM.DD')).toBe('2020.04.15')
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
it('formatPassTimeForDetail()传参数,返回时间格式是否正常', () => {
|
|
12
|
-
expect(formatPassTimeForDetail(Date.now() - 60 * 60 * 1000)).toBe('1小时前')
|
|
13
|
-
})
|
|
14
|
-
})
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
preset: 'ts-jest',
|
|
5
|
-
verbose: true,
|
|
6
|
-
rootDir: path.resolve(__dirname, '../../'),
|
|
7
|
-
moduleFileExtensions: [
|
|
8
|
-
'js',
|
|
9
|
-
'json',
|
|
10
|
-
'ts'
|
|
11
|
-
],
|
|
12
|
-
transform: {
|
|
13
|
-
'^.+\\.ts$': 'ts-jest',
|
|
14
|
-
'^.+\\.js$': 'babel-jest',
|
|
15
|
-
},
|
|
16
|
-
testMatch: [
|
|
17
|
-
'**/__tests__/**/*.(spec|test).[jt]s?(x)',
|
|
18
|
-
],
|
|
19
|
-
transformIgnorePatterns: ['/node_modules/'],
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// 语句覆盖率(statement coverage)
|
|
23
|
-
// 分支覆盖率(branch coverage)
|
|
24
|
-
// 函数覆盖率(function coverage)
|
|
25
|
-
// 行覆盖率(line coverage)
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const date = require('../../../src/modules/date/index');
|
|
2
|
-
|
|
3
|
-
console.log(date);
|
|
4
|
-
describe('date 模块', () => {
|
|
5
|
-
test('formatTime()默认格式,返回时间格式是否正常', () => {
|
|
6
|
-
expect(date.format(1586934316925)).toBe('2020-04-15 15:05:16');
|
|
7
|
-
})
|
|
8
|
-
test('format()传参数,返回时间格式是否正常', () => {
|
|
9
|
-
expect(date.format(1586934316925, 'YYYY.MM.DD')).toBe('2020.04.15');
|
|
10
|
-
})
|
|
11
|
-
});
|
package/coverage/clover.xml
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="1629095384494" clover="3.2.0">
|
|
3
|
-
<project timestamp="1629095384494" name="All files">
|
|
4
|
-
<metrics statements="69" coveredstatements="25" conditionals="74" coveredconditionals="26" methods="9" coveredmethods="4" elements="152" coveredelements="55" complexity="0" loc="69" ncloc="69" packages="1" files="1" classes="1"/>
|
|
5
|
-
<file name="index.ts" path="/Users/wanghui/Desktop/Work/Code/JDD/H5/haluo-util/src/modules/date/index.ts">
|
|
6
|
-
<metrics statements="69" coveredstatements="25" conditionals="74" coveredconditionals="26" methods="9" coveredmethods="4"/>
|
|
7
|
-
<line num="14" count="4" type="stmt"/>
|
|
8
|
-
<line num="15" count="32" type="cond" truecount="2" falsecount="0"/>
|
|
9
|
-
<line num="16" count="14" type="cond" truecount="1" falsecount="1"/>
|
|
10
|
-
<line num="19" count="4" type="stmt"/>
|
|
11
|
-
<line num="28" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
12
|
-
<line num="29" count="4" type="stmt"/>
|
|
13
|
-
<line num="31" count="4" type="stmt"/>
|
|
14
|
-
<line num="41" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
15
|
-
<line num="42" count="0" type="stmt"/>
|
|
16
|
-
<line num="43" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
17
|
-
<line num="44" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
18
|
-
<line num="45" count="4" type="stmt"/>
|
|
19
|
-
<line num="55" count="4" type="stmt"/>
|
|
20
|
-
<line num="64" count="4" type="stmt"/>
|
|
21
|
-
<line num="65" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
22
|
-
<line num="66" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
23
|
-
<line num="68" count="4" type="stmt"/>
|
|
24
|
-
<line num="79" count="0" type="stmt"/>
|
|
25
|
-
<line num="80" count="0" type="stmt"/>
|
|
26
|
-
<line num="81" count="0" type="stmt"/>
|
|
27
|
-
<line num="90" count="0" type="stmt"/>
|
|
28
|
-
<line num="91" count="0" type="stmt"/>
|
|
29
|
-
<line num="92" count="0" type="stmt"/>
|
|
30
|
-
<line num="93" count="0" type="stmt"/>
|
|
31
|
-
<line num="94" count="0" type="stmt"/>
|
|
32
|
-
<line num="95" count="0" type="stmt"/>
|
|
33
|
-
<line num="96" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
34
|
-
<line num="97" count="0" type="stmt"/>
|
|
35
|
-
<line num="98" count="0" type="stmt"/>
|
|
36
|
-
<line num="111" count="0" type="stmt"/>
|
|
37
|
-
<line num="112" count="0" type="stmt"/>
|
|
38
|
-
<line num="113" count="0" type="stmt"/>
|
|
39
|
-
<line num="114" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
40
|
-
<line num="115" count="0" type="stmt"/>
|
|
41
|
-
<line num="116" count="0" type="stmt"/>
|
|
42
|
-
<line num="117" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
43
|
-
<line num="118" count="0" type="stmt"/>
|
|
44
|
-
<line num="119" count="0" type="stmt"/>
|
|
45
|
-
<line num="120" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
46
|
-
<line num="121" count="0" type="stmt"/>
|
|
47
|
-
<line num="122" count="0" type="stmt"/>
|
|
48
|
-
<line num="123" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
49
|
-
<line num="124" count="0" type="stmt"/>
|
|
50
|
-
<line num="125" count="0" type="stmt"/>
|
|
51
|
-
<line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
52
|
-
<line num="127" count="0" type="stmt"/>
|
|
53
|
-
<line num="129" count="0" type="stmt"/>
|
|
54
|
-
<line num="137" count="0" type="stmt"/>
|
|
55
|
-
<line num="147" count="1" type="cond" truecount="1" falsecount="3"/>
|
|
56
|
-
<line num="148" count="1" type="stmt"/>
|
|
57
|
-
<line num="149" count="1" type="stmt"/>
|
|
58
|
-
<line num="150" count="1" type="cond" truecount="2" falsecount="0"/>
|
|
59
|
-
<line num="151" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
60
|
-
<line num="152" count="0" type="stmt"/>
|
|
61
|
-
<line num="153" count="1" type="stmt"/>
|
|
62
|
-
<line num="154" count="0" type="stmt"/>
|
|
63
|
-
<line num="155" count="0" type="stmt"/>
|
|
64
|
-
<line num="160" count="0" type="stmt"/>
|
|
65
|
-
<line num="161" count="0" type="stmt"/>
|
|
66
|
-
<line num="162" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
67
|
-
<line num="163" count="0" type="stmt"/>
|
|
68
|
-
<line num="164" count="0" type="stmt"/>
|
|
69
|
-
<line num="166" count="0" type="stmt"/>
|
|
70
|
-
<line num="168" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
71
|
-
<line num="169" count="0" type="stmt"/>
|
|
72
|
-
<line num="171" count="1" type="cond" truecount="4" falsecount="1"/>
|
|
73
|
-
<line num="172" count="0" type="stmt"/>
|
|
74
|
-
<line num="174" count="1" type="cond" truecount="6" falsecount="7"/>
|
|
75
|
-
<line num="181" count="2" type="stmt"/>
|
|
76
|
-
</file>
|
|
77
|
-
</project>
|
|
78
|
-
</coverage>
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
{"/Users/wanghui/Desktop/Work/Code/JDD/H5/haluo-util/src/modules/date/index.ts": {"path":"/Users/wanghui/Desktop/Work/Code/JDD/H5/haluo-util/src/modules/date/index.ts","statementMap":{"0":{"start":{"line":14,"column":4},"end":{"line":18,"column":5}},"1":{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},"2":{"start":{"line":16,"column":12},"end":{"line":16,"column":130}},"3":{"start":{"line":19,"column":4},"end":{"line":19,"column":15}},"4":{"start":{"line":28,"column":4},"end":{"line":30,"column":5}},"5":{"start":{"line":29,"column":8},"end":{"line":29,"column":93}},"6":{"start":{"line":31,"column":4},"end":{"line":31,"column":15}},"7":{"start":{"line":41,"column":8},"end":{"line":42,"column":22}},"8":{"start":{"line":42,"column":12},"end":{"line":42,"column":22}},"9":{"start":{"line":43,"column":23},"end":{"line":43,"column":90}},"10":{"start":{"line":44,"column":8},"end":{"line":44,"column":72}},"11":{"start":{"line":45,"column":16},"end":{"line":54,"column":9}},"12":{"start":{"line":55,"column":21},"end":{"line":63,"column":9}},"13":{"start":{"line":64,"column":8},"end":{"line":64,"column":45}},"14":{"start":{"line":65,"column":8},"end":{"line":67,"column":9}},"15":{"start":{"line":66,"column":12},"end":{"line":66,"column":157}},"16":{"start":{"line":68,"column":8},"end":{"line":68,"column":39}},"17":{"start":{"line":79,"column":18},"end":{"line":79,"column":32}},"18":{"start":{"line":80,"column":8},"end":{"line":80,"column":38}},"19":{"start":{"line":81,"column":8},"end":{"line":81,"column":45}},"20":{"start":{"line":90,"column":24},"end":{"line":90,"column":34}},"21":{"start":{"line":91,"column":19},"end":{"line":91,"column":36}},"22":{"start":{"line":92,"column":17},"end":{"line":92,"column":53}},"23":{"start":{"line":93,"column":17},"end":{"line":93,"column":53}},"24":{"start":{"line":94,"column":17},"end":{"line":94,"column":48}},"25":{"start":{"line":95,"column":17},"end":{"line":95,"column":43}},"26":{"start":{"line":96,"column":8},"end":{"line":97,"column":25}},"27":{"start":{"line":97,"column":12},"end":{"line":97,"column":25}},"28":{"start":{"line":98,"column":8},"end":{"line":103,"column":10}},"29":{"start":{"line":111,"column":28},"end":{"line":111,"column":38}},"30":{"start":{"line":112,"column":21},"end":{"line":112,"column":44}},"31":{"start":{"line":113,"column":21},"end":{"line":113,"column":71}},"32":{"start":{"line":114,"column":8},"end":{"line":115,"column":31}},"33":{"start":{"line":115,"column":12},"end":{"line":115,"column":31}},"34":{"start":{"line":116,"column":22},"end":{"line":116,"column":67}},"35":{"start":{"line":117,"column":8},"end":{"line":118,"column":33}},"36":{"start":{"line":118,"column":12},"end":{"line":118,"column":33}},"37":{"start":{"line":119,"column":20},"end":{"line":119,"column":60}},"38":{"start":{"line":120,"column":8},"end":{"line":121,"column":30}},"39":{"start":{"line":121,"column":12},"end":{"line":121,"column":30}},"40":{"start":{"line":122,"column":21},"end":{"line":122,"column":56}},"41":{"start":{"line":123,"column":8},"end":{"line":124,"column":32}},"42":{"start":{"line":124,"column":12},"end":{"line":124,"column":32}},"43":{"start":{"line":125,"column":20},"end":{"line":125,"column":50}},"44":{"start":{"line":126,"column":8},"end":{"line":129,"column":24}},"45":{"start":{"line":127,"column":12},"end":{"line":127,"column":31}},"46":{"start":{"line":129,"column":12},"end":{"line":129,"column":24}},"47":{"start":{"line":137,"column":8},"end":{"line":137,"column":86}},"48":{"start":{"line":147,"column":21},"end":{"line":147,"column":108}},"49":{"start":{"line":148,"column":22},"end":{"line":148,"column":70}},"50":{"start":{"line":149,"column":24},"end":{"line":149,"column":48}},"51":{"start":{"line":150,"column":28},"end":{"line":150,"column":110}},"52":{"start":{"line":151,"column":8},"end":{"line":152,"column":22}},"53":{"start":{"line":152,"column":12},"end":{"line":152,"column":22}},"54":{"start":{"line":153,"column":27},"end":{"line":167,"column":9}},"55":{"start":{"line":154,"column":26},"end":{"line":154,"column":40}},"56":{"start":{"line":155,"column":20},"end":{"line":159,"column":13}},"57":{"start":{"line":160,"column":12},"end":{"line":160,"column":45}},"58":{"start":{"line":161,"column":25},"end":{"line":161,"column":44}},"59":{"start":{"line":162,"column":12},"end":{"line":165,"column":13}},"60":{"start":{"line":163,"column":33},"end":{"line":163,"column":56}},"61":{"start":{"line":164,"column":16},"end":{"line":164,"column":46}},"62":{"start":{"line":166,"column":12},"end":{"line":166,"column":43}},"63":{"start":{"line":168,"column":8},"end":{"line":173,"column":9}},"64":{"start":{"line":169,"column":12},"end":{"line":169,"column":24}},"65":{"start":{"line":171,"column":13},"end":{"line":173,"column":9}},"66":{"start":{"line":172,"column":12},"end":{"line":172,"column":32}},"67":{"start":{"line":174,"column":8},"end":{"line":178,"column":100}},"68":{"start":{"line":181,"column":0},"end":{"line":181,"column":33}}},"fnMap":{"0":{"name":"replacementDate","decl":{"start":{"line":13,"column":9},"end":{"line":13,"column":24}},"loc":{"start":{"line":13,"column":36},"end":{"line":20,"column":1}},"line":13},"1":{"name":"replacementYear","decl":{"start":{"line":27,"column":9},"end":{"line":27,"column":24}},"loc":{"start":{"line":27,"column":36},"end":{"line":32,"column":1}},"line":27},"2":{"name":"(anonymous_2)","decl":{"start":{"line":40,"column":4},"end":{"line":40,"column":5}},"loc":{"start":{"line":40,"column":46},"end":{"line":69,"column":5}},"line":40},"3":{"name":"(anonymous_3)","decl":{"start":{"line":78,"column":4},"end":{"line":78,"column":5}},"loc":{"start":{"line":78,"column":30},"end":{"line":82,"column":5}},"line":78},"4":{"name":"(anonymous_4)","decl":{"start":{"line":89,"column":4},"end":{"line":89,"column":5}},"loc":{"start":{"line":89,"column":24},"end":{"line":104,"column":5}},"line":89},"5":{"name":"(anonymous_5)","decl":{"start":{"line":110,"column":4},"end":{"line":110,"column":5}},"loc":{"start":{"line":110,"column":30},"end":{"line":130,"column":5}},"line":110},"6":{"name":"(anonymous_6)","decl":{"start":{"line":136,"column":4},"end":{"line":136,"column":5}},"loc":{"start":{"line":136,"column":32},"end":{"line":138,"column":5}},"line":136},"7":{"name":"(anonymous_7)","decl":{"start":{"line":146,"column":4},"end":{"line":146,"column":5}},"loc":{"start":{"line":146,"column":62},"end":{"line":179,"column":5}},"line":146},"8":{"name":"(anonymous_8)","decl":{"start":{"line":153,"column":27},"end":{"line":153,"column":28}},"loc":{"start":{"line":153,"column":39},"end":{"line":167,"column":9}},"line":153}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},"type":"if","locations":[{"start":{"line":15,"column":8},"end":{"line":17,"column":9}},{"start":{"line":15,"column":8},"end":{"line":17,"column":9}}],"line":15},"1":{"loc":{"start":{"line":16,"column":41},"end":{"line":16,"column":128}},"type":"cond-expr","locations":[{"start":{"line":16,"column":69},"end":{"line":16,"column":76}},{"start":{"line":16,"column":81},"end":{"line":16,"column":127}}],"line":16},"2":{"loc":{"start":{"line":28,"column":4},"end":{"line":30,"column":5}},"type":"if","locations":[{"start":{"line":28,"column":4},"end":{"line":30,"column":5}},{"start":{"line":28,"column":4},"end":{"line":30,"column":5}}],"line":28},"3":{"loc":{"start":{"line":40,"column":17},"end":{"line":40,"column":44}},"type":"default-arg","locations":[{"start":{"line":40,"column":23},"end":{"line":40,"column":44}}],"line":40},"4":{"loc":{"start":{"line":41,"column":8},"end":{"line":42,"column":22}},"type":"if","locations":[{"start":{"line":41,"column":8},"end":{"line":42,"column":22}},{"start":{"line":41,"column":8},"end":{"line":42,"column":22}}],"line":41},"5":{"loc":{"start":{"line":43,"column":23},"end":{"line":43,"column":90}},"type":"cond-expr","locations":[{"start":{"line":43,"column":50},"end":{"line":43,"column":83}},{"start":{"line":43,"column":86},"end":{"line":43,"column":90}}],"line":43},"6":{"loc":{"start":{"line":44,"column":19},"end":{"line":44,"column":71}},"type":"cond-expr","locations":[{"start":{"line":44,"column":46},"end":{"line":44,"column":60}},{"start":{"line":44,"column":63},"end":{"line":44,"column":71}}],"line":44},"7":{"loc":{"start":{"line":48,"column":18},"end":{"line":48,"column":80}},"type":"cond-expr","locations":[{"start":{"line":48,"column":51},"end":{"line":48,"column":53}},{"start":{"line":48,"column":56},"end":{"line":48,"column":80}}],"line":48},"8":{"loc":{"start":{"line":65,"column":8},"end":{"line":67,"column":9}},"type":"if","locations":[{"start":{"line":65,"column":8},"end":{"line":67,"column":9}},{"start":{"line":65,"column":8},"end":{"line":67,"column":9}}],"line":65},"9":{"loc":{"start":{"line":66,"column":42},"end":{"line":66,"column":122}},"type":"cond-expr","locations":[{"start":{"line":66,"column":68},"end":{"line":66,"column":116}},{"start":{"line":66,"column":120},"end":{"line":66,"column":122}}],"line":66},"10":{"loc":{"start":{"line":66,"column":68},"end":{"line":66,"column":116}},"type":"cond-expr","locations":[{"start":{"line":66,"column":91},"end":{"line":66,"column":105}},{"start":{"line":66,"column":108},"end":{"line":66,"column":116}}],"line":66},"11":{"loc":{"start":{"line":96,"column":8},"end":{"line":97,"column":25}},"type":"if","locations":[{"start":{"line":96,"column":8},"end":{"line":97,"column":25}},{"start":{"line":96,"column":8},"end":{"line":97,"column":25}}],"line":96},"12":{"loc":{"start":{"line":99,"column":17},"end":{"line":99,"column":40}},"type":"cond-expr","locations":[{"start":{"line":99,"column":27},"end":{"line":99,"column":35}},{"start":{"line":99,"column":38},"end":{"line":99,"column":40}}],"line":99},"13":{"loc":{"start":{"line":100,"column":17},"end":{"line":100,"column":40}},"type":"cond-expr","locations":[{"start":{"line":100,"column":27},"end":{"line":100,"column":35}},{"start":{"line":100,"column":38},"end":{"line":100,"column":40}}],"line":100},"14":{"loc":{"start":{"line":101,"column":17},"end":{"line":101,"column":40}},"type":"cond-expr","locations":[{"start":{"line":101,"column":27},"end":{"line":101,"column":35}},{"start":{"line":101,"column":38},"end":{"line":101,"column":40}}],"line":101},"15":{"loc":{"start":{"line":102,"column":17},"end":{"line":102,"column":40}},"type":"cond-expr","locations":[{"start":{"line":102,"column":27},"end":{"line":102,"column":35}},{"start":{"line":102,"column":38},"end":{"line":102,"column":40}}],"line":102},"16":{"loc":{"start":{"line":114,"column":8},"end":{"line":115,"column":31}},"type":"if","locations":[{"start":{"line":114,"column":8},"end":{"line":115,"column":31}},{"start":{"line":114,"column":8},"end":{"line":115,"column":31}}],"line":114},"17":{"loc":{"start":{"line":117,"column":8},"end":{"line":118,"column":33}},"type":"if","locations":[{"start":{"line":117,"column":8},"end":{"line":118,"column":33}},{"start":{"line":117,"column":8},"end":{"line":118,"column":33}}],"line":117},"18":{"loc":{"start":{"line":120,"column":8},"end":{"line":121,"column":30}},"type":"if","locations":[{"start":{"line":120,"column":8},"end":{"line":121,"column":30}},{"start":{"line":120,"column":8},"end":{"line":121,"column":30}}],"line":120},"19":{"loc":{"start":{"line":123,"column":8},"end":{"line":124,"column":32}},"type":"if","locations":[{"start":{"line":123,"column":8},"end":{"line":124,"column":32}},{"start":{"line":123,"column":8},"end":{"line":124,"column":32}}],"line":123},"20":{"loc":{"start":{"line":126,"column":8},"end":{"line":129,"column":24}},"type":"if","locations":[{"start":{"line":126,"column":8},"end":{"line":129,"column":24}},{"start":{"line":126,"column":8},"end":{"line":129,"column":24}}],"line":126},"21":{"loc":{"start":{"line":146,"column":34},"end":{"line":146,"column":52}},"type":"default-arg","locations":[{"start":{"line":146,"column":40},"end":{"line":146,"column":52}}],"line":146},"22":{"loc":{"start":{"line":147,"column":21},"end":{"line":147,"column":108}},"type":"cond-expr","locations":[{"start":{"line":147,"column":50},"end":{"line":147,"column":64}},{"start":{"line":147,"column":67},"end":{"line":147,"column":108}}],"line":147},"23":{"loc":{"start":{"line":147,"column":77},"end":{"line":147,"column":87}},"type":"binary-expr","locations":[{"start":{"line":147,"column":77},"end":{"line":147,"column":81}},{"start":{"line":147,"column":85},"end":{"line":147,"column":87}}],"line":147},"24":{"loc":{"start":{"line":150,"column":28},"end":{"line":150,"column":110}},"type":"binary-expr","locations":[{"start":{"line":150,"column":28},"end":{"line":150,"column":84}},{"start":{"line":150,"column":88},"end":{"line":150,"column":110}}],"line":150},"25":{"loc":{"start":{"line":151,"column":8},"end":{"line":152,"column":22}},"type":"if","locations":[{"start":{"line":151,"column":8},"end":{"line":152,"column":22}},{"start":{"line":151,"column":8},"end":{"line":152,"column":22}}],"line":151},"26":{"loc":{"start":{"line":162,"column":12},"end":{"line":165,"column":13}},"type":"if","locations":[{"start":{"line":162,"column":12},"end":{"line":165,"column":13}},{"start":{"line":162,"column":12},"end":{"line":165,"column":13}}],"line":162},"27":{"loc":{"start":{"line":162,"column":16},"end":{"line":162,"column":60}},"type":"binary-expr","locations":[{"start":{"line":162,"column":16},"end":{"line":162,"column":50}},{"start":{"line":162,"column":54},"end":{"line":162,"column":60}}],"line":162},"28":{"loc":{"start":{"line":168,"column":8},"end":{"line":173,"column":9}},"type":"if","locations":[{"start":{"line":168,"column":8},"end":{"line":173,"column":9}},{"start":{"line":168,"column":8},"end":{"line":173,"column":9}}],"line":168},"29":{"loc":{"start":{"line":171,"column":13},"end":{"line":173,"column":9}},"type":"if","locations":[{"start":{"line":171,"column":13},"end":{"line":173,"column":9}},{"start":{"line":171,"column":13},"end":{"line":173,"column":9}}],"line":171},"30":{"loc":{"start":{"line":171,"column":17},"end":{"line":171,"column":63}},"type":"binary-expr","locations":[{"start":{"line":171,"column":17},"end":{"line":171,"column":31}},{"start":{"line":171,"column":35},"end":{"line":171,"column":46}},{"start":{"line":171,"column":50},"end":{"line":171,"column":63}}],"line":171},"31":{"loc":{"start":{"line":174,"column":15},"end":{"line":178,"column":99}},"type":"binary-expr","locations":[{"start":{"line":174,"column":16},"end":{"line":174,"column":29}},{"start":{"line":174,"column":35},"end":{"line":174,"column":44}},{"start":{"line":174,"column":48},"end":{"line":174,"column":52}},{"start":{"line":175,"column":13},"end":{"line":175,"column":23}},{"start":{"line":175,"column":27},"end":{"line":175,"column":33}},{"start":{"line":176,"column":13},"end":{"line":176,"column":24}},{"start":{"line":176,"column":28},"end":{"line":176,"column":57}},{"start":{"line":177,"column":13},"end":{"line":177,"column":24}},{"start":{"line":177,"column":28},"end":{"line":177,"column":34}},{"start":{"line":178,"column":13},"end":{"line":178,"column":25}},{"start":{"line":178,"column":29},"end":{"line":178,"column":60}},{"start":{"line":178,"column":68},"end":{"line":178,"column":80}},{"start":{"line":178,"column":84},"end":{"line":178,"column":98}}],"line":174}},"s":{"0":4,"1":32,"2":14,"3":4,"4":4,"5":4,"6":4,"7":4,"8":0,"9":4,"10":4,"11":4,"12":4,"13":4,"14":4,"15":0,"16":4,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":1,"49":1,"50":1,"51":1,"52":1,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":1,"64":0,"65":1,"66":0,"67":1,"68":2},"f":{"0":4,"1":4,"2":4,"3":0,"4":0,"5":0,"6":0,"7":1,"8":0},"b":{"0":[14,18],"1":[0,14],"2":[4,0],"3":[2],"4":[0,4],"5":[0,4],"6":[4,0],"7":[0,4],"8":[0,4],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[1],"22":[1,0],"23":[0,0],"24":[1,1],"25":[0,1],"26":[0,0],"27":[0,0],"28":[0,1],"29":[0,1],"30":[1,1,1],"31":[1,1,0,1,0,1,0,1,1,0,0,0,0]},"inputSourceMap":null,"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bd0f91c8370ff33361330a510d5ae240ed384802"}
|
|
2
|
-
}
|