shinkansen-sprockets 1.0.39 → 1.0.43
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/nvm.sh +2 -2
- package/package.json +3 -3
- package/src/transformers/error-message/index.mjs +24 -24
- package/gulpfile.mjs +0 -75
- package/jest.config.cjs +0 -15
package/nvm.sh
CHANGED
@@ -10,7 +10,7 @@ then
|
|
10
10
|
|
11
11
|
source $NVM/nvm.sh
|
12
12
|
else
|
13
|
-
NVM=$(brew --prefix nvm)
|
13
|
+
NVM=$(brew --prefix nvm 2> /dev/null)
|
14
14
|
if [ -f "$NVM/nvm.sh" ];
|
15
15
|
then
|
16
16
|
unset npm_package_scripts_nvm
|
@@ -21,7 +21,7 @@ else
|
|
21
21
|
fi
|
22
22
|
fi
|
23
23
|
|
24
|
-
VERSION=$(nvm --version)
|
24
|
+
VERSION=$(nvm --version 2> /dev/null)
|
25
25
|
|
26
26
|
if [ -z "$VERSION" ];
|
27
27
|
then
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shinkansen-sprockets",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.43",
|
4
4
|
"description": "Shinkansen Sprockets",
|
5
5
|
"keywords": [
|
6
6
|
"Shinkansen",
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"pretest": "npm run nvm",
|
36
36
|
"test": "cross-env NODE_ENV=test jest --collect-coverage false --verbose --run-in-band",
|
37
37
|
"storybook": "npm run build && npm run transform && start-storybook -p 6007",
|
38
|
-
"nvm": "bash nvm.sh"
|
38
|
+
"nvm": "bash nvm.sh 2> /dev/null"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
41
|
"classnames": "^2.3.2",
|
@@ -104,7 +104,7 @@
|
|
104
104
|
"regenerator-runtime": "^0.13.11",
|
105
105
|
"rimraf": "^5.0.0",
|
106
106
|
"sass": "^1.62.1",
|
107
|
-
"vinyl-paths": "
|
107
|
+
"vinyl-paths": "^5.0.0"
|
108
108
|
},
|
109
109
|
"imports": {
|
110
110
|
"#build/gulp/build/*": "./build/gulp/build/*.mjs",
|
@@ -4,145 +4,145 @@ const log = debug('shinkansen-sprockets/transformers/error-message')
|
|
4
4
|
|
5
5
|
log('`shinkansen` is awake')
|
6
6
|
|
7
|
-
export function getErrorTextForMaxItems (components = {}) {
|
7
|
+
export function getErrorTextForMaxItems () { // (components = {}) {
|
8
8
|
log('getErrorTextForMaxItems')
|
9
9
|
|
10
10
|
return 'Max items'
|
11
11
|
}
|
12
12
|
|
13
|
-
export function getErrorTextForMinItems (components = {}) {
|
13
|
+
export function getErrorTextForMinItems () { // (components = {}) {
|
14
14
|
log('getErrorTextForMinItems')
|
15
15
|
|
16
16
|
return 'Min items'
|
17
17
|
}
|
18
18
|
|
19
|
-
export function getErrorTextForMaxLength (components = {}) {
|
19
|
+
export function getErrorTextForMaxLength () { // (components = {}) {
|
20
20
|
log('getErrorTextForMaxLength')
|
21
21
|
|
22
22
|
return 'Max length'
|
23
23
|
}
|
24
24
|
|
25
|
-
export function getErrorTextForMinLength (components = {}) {
|
25
|
+
export function getErrorTextForMinLength () { // (components = {}) {
|
26
26
|
log('getErrorTextForMinLength')
|
27
27
|
|
28
28
|
return 'Min length'
|
29
29
|
}
|
30
30
|
|
31
|
-
export function getErrorTextForMaxProperties (components = {}) {
|
31
|
+
export function getErrorTextForMaxProperties () { // (components = {}) {
|
32
32
|
log('getErrorTextForMaxProperties')
|
33
33
|
|
34
34
|
return 'Max properties'
|
35
35
|
}
|
36
36
|
|
37
|
-
export function getErrorTextForMinProperties (components = {}) {
|
37
|
+
export function getErrorTextForMinProperties () { // (components = {}) {
|
38
38
|
log('getErrorTextForMinProperties')
|
39
39
|
|
40
40
|
return 'Min properties'
|
41
41
|
}
|
42
42
|
|
43
|
-
export function getErrorTextForAdditionalItems (components = {}) {
|
43
|
+
export function getErrorTextForAdditionalItems () { // (components = {}) {
|
44
44
|
log('getErrorTextForAdditionalItems')
|
45
45
|
|
46
46
|
return 'Additional items'
|
47
47
|
}
|
48
48
|
|
49
|
-
export function getErrorTextForMaximum (components = {}) {
|
49
|
+
export function getErrorTextForMaximum () { // (components = {}) {
|
50
50
|
log('getErrorTextForMaximum')
|
51
51
|
|
52
52
|
return 'Maximum'
|
53
53
|
}
|
54
54
|
|
55
|
-
export function getErrorTextForMinimum (components = {}) {
|
55
|
+
export function getErrorTextForMinimum () { // (components = {}) {
|
56
56
|
log('getErrorTextForMinimum')
|
57
57
|
|
58
58
|
return 'Minimum'
|
59
59
|
}
|
60
60
|
|
61
|
-
export function getErrorTextForFormat (components = {}) {
|
61
|
+
export function getErrorTextForFormat () { // (components = {}) {
|
62
62
|
log('getErrorTextForFormat')
|
63
63
|
|
64
64
|
return 'Format'
|
65
65
|
}
|
66
66
|
|
67
|
-
export function getErrorTextForAdditionalProperties (components = {}) {
|
67
|
+
export function getErrorTextForAdditionalProperties () { // (components = {}) {
|
68
68
|
log('getErrorTextForAdditionalProperties')
|
69
69
|
|
70
70
|
return 'Additional properties'
|
71
71
|
}
|
72
72
|
|
73
|
-
export function getErrorTextForDependencies (components = {}) {
|
73
|
+
export function getErrorTextForDependencies () { // (components = {}) {
|
74
74
|
log('getErrorTextForDependencies')
|
75
75
|
|
76
76
|
return 'Dependencies'
|
77
77
|
}
|
78
78
|
|
79
|
-
export function getErrorTextForUniqeItems (components = {}) {
|
79
|
+
export function getErrorTextForUniqeItems () { // (components = {}) {
|
80
80
|
log('getErrorTextForUniqeItems')
|
81
81
|
|
82
82
|
return 'Unique items'
|
83
83
|
}
|
84
84
|
|
85
|
-
export function getErrorTextForPropertyRequired (components = {}) {
|
85
|
+
export function getErrorTextForPropertyRequired () { // (components = {}) {
|
86
86
|
log('getErrorTextForPropertyRequired')
|
87
87
|
|
88
88
|
return 'Property required'
|
89
89
|
}
|
90
90
|
|
91
|
-
export function getErrorTextForPropertyNames (components = {}) {
|
91
|
+
export function getErrorTextForPropertyNames () { // (components = {}) {
|
92
92
|
log('getErrorTextForPropertyNames')
|
93
93
|
|
94
94
|
return 'Property names'
|
95
95
|
}
|
96
96
|
|
97
|
-
export function getErrorTextForPatternRequired (components = {}) {
|
97
|
+
export function getErrorTextForPatternRequired () { // (components = {}) {
|
98
98
|
log('getErrorTextForMultipleOf')
|
99
99
|
|
100
100
|
return 'Pattern required'
|
101
101
|
}
|
102
102
|
|
103
|
-
export function getErrorTextForMultipleOf (components = {}) {
|
103
|
+
export function getErrorTextForMultipleOf () { // (components = {}) {
|
104
104
|
log('getErrorTextForMultipleOf')
|
105
105
|
|
106
106
|
return 'Multiple of'
|
107
107
|
}
|
108
108
|
|
109
|
-
export function getErrorTextForPattern (components = {}) {
|
109
|
+
export function getErrorTextForPattern () { // (components = {}) {
|
110
110
|
log('getErrorTextForPattern')
|
111
111
|
|
112
112
|
return 'Pattern'
|
113
113
|
}
|
114
114
|
|
115
|
-
export function getErrorTextForConst (components = {}) {
|
115
|
+
export function getErrorTextForConst () { // (components = {}) {
|
116
116
|
log('getErrorTextForConst')
|
117
117
|
|
118
118
|
return 'Const'
|
119
119
|
}
|
120
120
|
|
121
|
-
export function getErrorTextForEnum (components = {}) {
|
121
|
+
export function getErrorTextForEnum () { // (components = {}) {
|
122
122
|
log('getErrorTextForEnum')
|
123
123
|
|
124
124
|
return 'Enum'
|
125
125
|
}
|
126
126
|
|
127
|
-
export function getErrorTextFor$Ref (components = {}) {
|
127
|
+
export function getErrorTextFor$Ref () { // (components = {}) {
|
128
128
|
log('getErrorTextFor$Ref')
|
129
129
|
|
130
130
|
return '$Ref'
|
131
131
|
}
|
132
132
|
|
133
|
-
export function getErrorTextForOneOf (components = {}) {
|
133
|
+
export function getErrorTextForOneOf () { // (components = {}) {
|
134
134
|
log('getErrorTextForOneOf')
|
135
135
|
|
136
136
|
return 'One of'
|
137
137
|
}
|
138
138
|
|
139
|
-
export function getErrorTextForUnknown (components = {}) {
|
139
|
+
export function getErrorTextForUnknown () { // (components = {}) {
|
140
140
|
log('getErrorTextForUnknown')
|
141
141
|
|
142
142
|
return 'Unknown'
|
143
143
|
}
|
144
144
|
|
145
|
-
export function getErrorTextForTypeInvalid ({ expectedType } = {}, components = {}) {
|
145
|
+
export function getErrorTextForTypeInvalid ({ expectedType } = {}) { // , components = {}) {
|
146
146
|
log('getErrorTextForTypeInvalid')
|
147
147
|
|
148
148
|
switch (expectedType) {
|
package/gulpfile.mjs
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
import 'regenerator-runtime/runtime.js'
|
2
|
-
|
3
|
-
import gulp from '@sequencemedia/gulp'
|
4
|
-
|
5
|
-
import {
|
6
|
-
cleanFonts,
|
7
|
-
fonts as buildFonts,
|
8
|
-
watchFonts,
|
9
|
-
cleanIcons,
|
10
|
-
icons as buildIcons,
|
11
|
-
watchIcons,
|
12
|
-
cleanCss,
|
13
|
-
css as buildCss,
|
14
|
-
watchCss
|
15
|
-
} from '#build/gulp/build'
|
16
|
-
|
17
|
-
import {
|
18
|
-
transformClean,
|
19
|
-
transform,
|
20
|
-
transformWatch
|
21
|
-
} from '#build/gulp/transform'
|
22
|
-
|
23
|
-
gulp
|
24
|
-
.task('clean:fonts', cleanFonts)
|
25
|
-
|
26
|
-
gulp
|
27
|
-
.task('build:fonts', gulp.series('clean:fonts', buildFonts))
|
28
|
-
|
29
|
-
gulp
|
30
|
-
.task('watch:fonts', gulp.series('build:fonts', watchFonts))
|
31
|
-
|
32
|
-
gulp
|
33
|
-
.task('clean:icons', cleanIcons)
|
34
|
-
|
35
|
-
gulp
|
36
|
-
.task('build:icons', gulp.series('clean:icons', buildIcons))
|
37
|
-
|
38
|
-
gulp
|
39
|
-
.task('watch:icons', gulp.series('build:icons', watchIcons))
|
40
|
-
|
41
|
-
gulp
|
42
|
-
.task('clean:css', cleanCss)
|
43
|
-
|
44
|
-
gulp
|
45
|
-
.task('build:css', gulp.series('clean:css', buildCss))
|
46
|
-
|
47
|
-
gulp
|
48
|
-
.task('watch:css', gulp.series('build:css', watchCss))
|
49
|
-
|
50
|
-
gulp
|
51
|
-
.task('clean', gulp.series('clean:fonts', 'clean:icons', 'clean:css'))
|
52
|
-
|
53
|
-
gulp
|
54
|
-
.task('build', gulp.series('build:fonts', 'build:icons', 'build:css'))
|
55
|
-
|
56
|
-
gulp
|
57
|
-
.task('watch', gulp.parallel('watch:fonts', 'watch:icons', 'watch:css'))
|
58
|
-
|
59
|
-
gulp
|
60
|
-
.task('transform', transform)
|
61
|
-
|
62
|
-
gulp
|
63
|
-
.task('build:clean', gulp.series('clean:fonts', 'clean:icons', 'clean:css'))
|
64
|
-
|
65
|
-
gulp
|
66
|
-
.task('build:watch', gulp.series('watch:fonts', 'watch:icons', 'watch:css'))
|
67
|
-
|
68
|
-
gulp
|
69
|
-
.task('transform:clean', transformClean)
|
70
|
-
|
71
|
-
gulp
|
72
|
-
.task('transform:watch', transformWatch)
|
73
|
-
|
74
|
-
gulp
|
75
|
-
.task('default', gulp.series('build', 'transform'))
|
package/jest.config.cjs
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
bail: 1,
|
3
|
-
verbose: true,
|
4
|
-
rootDir: '.',
|
5
|
-
collectCoverage: true,
|
6
|
-
coverageDirectory: './coverage',
|
7
|
-
testEnvironment: 'jsdom',
|
8
|
-
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(mjs?|mts?|jsx?|js?|tsx?|ts?)$',
|
9
|
-
transform: {
|
10
|
-
'^.+\\.jsx?$': 'babel-jest',
|
11
|
-
'^.+\\.mjs$': 'babel-jest',
|
12
|
-
'^.+\\.cjs$': 'babel-jest'
|
13
|
-
},
|
14
|
-
moduleFileExtensions: ['js', 'jsx', 'mjs', 'cjs']
|
15
|
-
}
|