victory-create-container 36.5.3 → 36.6.0

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.
@@ -65,9 +65,9 @@ var ensureArray = function (thing) {
65
65
  return [];
66
66
  } else if (!Array.isArray(thing)) {
67
67
  return [thing];
68
- } else {
69
- return thing;
70
68
  }
69
+
70
+ return thing;
71
71
  };
72
72
 
73
73
  var combineEventHandlers = function (eventHandlersArray) {
@@ -86,9 +86,9 @@ var ensureArray = function (thing) {
86
86
  return [];
87
87
  } else if (!Array.isArray(thing)) {
88
88
  return [thing];
89
- } else {
90
- return thing;
91
89
  }
90
+
91
+ return thing;
92
92
  };
93
93
 
94
94
  var combineEventHandlers = function (eventHandlersArray) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-create-container",
3
- "version": "36.5.3",
3
+ "version": "36.6.0",
4
4
  "description": "Container Helper for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -13,6 +13,7 @@
13
13
  "url": "https://github.com/formidablelabs/victory.git"
14
14
  },
15
15
  "homepage": "https://formidable.com/open-source/victory",
16
+ "sideEffects": false,
16
17
  "main": "lib/index.js",
17
18
  "module": "es/index.js",
18
19
  "jsnext:main": "es/index.js",
@@ -20,19 +21,286 @@
20
21
  "license": "MIT",
21
22
  "dependencies": {
22
23
  "lodash": "^4.17.19",
23
- "victory-brush-container": "^36.5.3",
24
- "victory-core": "^36.5.3",
25
- "victory-cursor-container": "^36.5.3",
26
- "victory-selection-container": "^36.5.3",
27
- "victory-voronoi-container": "^36.5.3",
28
- "victory-zoom-container": "^36.5.3"
24
+ "victory-brush-container": "^36.6.0",
25
+ "victory-core": "^36.6.0",
26
+ "victory-cursor-container": "^36.6.0",
27
+ "victory-selection-container": "^36.6.0",
28
+ "victory-voronoi-container": "^36.6.0",
29
+ "victory-zoom-container": "^36.6.0"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "react": ">=16.6.0"
32
33
  },
33
- "scripts": {
34
- "version": "yarn run nps build-libs && nps build-dists"
34
+ "wireit": {
35
+ "### THESE WIREIT CONFIGS ARE GENERATED ####": {},
36
+ "### DO NOT MODIFY THESE MANUALLY ####": {},
37
+ "build": {
38
+ "dependencies": [
39
+ "build:lib",
40
+ "build:dist",
41
+ "types:create"
42
+ ]
43
+ },
44
+ "build:lib": {
45
+ "dependencies": [
46
+ "build:lib:esm",
47
+ "build:lib:cjs"
48
+ ]
49
+ },
50
+ "build:lib:esm": {
51
+ "command": "nps build:lib:esm",
52
+ "files": [
53
+ "src/**",
54
+ "!src/**/*.test.*",
55
+ "../../.babelrc.build.js"
56
+ ],
57
+ "output": [
58
+ "es/**/*.js",
59
+ "es/**/*.js.map"
60
+ ],
61
+ "dependencies": [
62
+ "../victory-brush-container:build:lib:esm",
63
+ "../victory-core:build:lib:esm",
64
+ "../victory-cursor-container:build:lib:esm",
65
+ "../victory-selection-container:build:lib:esm",
66
+ "../victory-voronoi-container:build:lib:esm",
67
+ "../victory-zoom-container:build:lib:esm"
68
+ ],
69
+ "packageLocks": [
70
+ "pnpm-lock.yaml"
71
+ ]
72
+ },
73
+ "build:lib:cjs": {
74
+ "command": "nps build:lib:cjs",
75
+ "files": [
76
+ "src/**",
77
+ "!src/**/*.test.*",
78
+ "../../.babelrc.build.js"
79
+ ],
80
+ "output": [
81
+ "lib/**/*.js",
82
+ "lib/**/*.js.map"
83
+ ],
84
+ "dependencies": [
85
+ "../victory-brush-container:build:lib:cjs",
86
+ "../victory-core:build:lib:cjs",
87
+ "../victory-cursor-container:build:lib:cjs",
88
+ "../victory-selection-container:build:lib:cjs",
89
+ "../victory-voronoi-container:build:lib:cjs",
90
+ "../victory-zoom-container:build:lib:cjs"
91
+ ],
92
+ "packageLocks": [
93
+ "pnpm-lock.yaml"
94
+ ]
95
+ },
96
+ "build:dist": {
97
+ "dependencies": [
98
+ "build:dist:dev",
99
+ "build:dist:min"
100
+ ]
101
+ },
102
+ "build:dist:dev": {
103
+ "command": "nps build:dist:dev",
104
+ "files": [
105
+ "src/**",
106
+ "!src/**/*.test.*",
107
+ "../../.babelrc.build.js",
108
+ "../../config/webpack.config.js",
109
+ "../../config/webpack.config.dev.js"
110
+ ],
111
+ "output": [
112
+ "dist/victory*.js",
113
+ "!dist/victory*.min.js*"
114
+ ],
115
+ "dependencies": [
116
+ "../victory-brush-container:build:lib:esm",
117
+ "../victory-core:build:lib:esm",
118
+ "../victory-cursor-container:build:lib:esm",
119
+ "../victory-selection-container:build:lib:esm",
120
+ "../victory-voronoi-container:build:lib:esm",
121
+ "../victory-zoom-container:build:lib:esm"
122
+ ],
123
+ "packageLocks": [
124
+ "pnpm-lock.yaml"
125
+ ]
126
+ },
127
+ "build:dist:min": {
128
+ "command": "nps build:dist:min",
129
+ "files": [
130
+ "src/**",
131
+ "!src/**/*.test.*",
132
+ "../../.babelrc.build.js",
133
+ "../../config/webpack.config.js"
134
+ ],
135
+ "output": [
136
+ "dist/victory*.min.js*"
137
+ ],
138
+ "dependencies": [
139
+ "../victory-brush-container:build:lib:esm",
140
+ "../victory-core:build:lib:esm",
141
+ "../victory-cursor-container:build:lib:esm",
142
+ "../victory-selection-container:build:lib:esm",
143
+ "../victory-voronoi-container:build:lib:esm",
144
+ "../victory-zoom-container:build:lib:esm"
145
+ ],
146
+ "packageLocks": [
147
+ "pnpm-lock.yaml"
148
+ ]
149
+ },
150
+ "types:check": {
151
+ "command": "nps types:pkg:check",
152
+ "files": [
153
+ "src/**/*.{ts,tsx}",
154
+ "../../tsconfig.base.json",
155
+ "tsconfig.json"
156
+ ],
157
+ "dependencies": [
158
+ "types:create",
159
+ "../victory-brush-container:types:create",
160
+ "../victory-core:types:create",
161
+ "../victory-cursor-container:types:create",
162
+ "../victory-selection-container:types:create",
163
+ "../victory-voronoi-container:types:create",
164
+ "../victory-zoom-container:types:create",
165
+ "../victory-vendor:types:create",
166
+ "../victory-voronoi:types:create"
167
+ ],
168
+ "output": [],
169
+ "packageLocks": [
170
+ "pnpm-lock.yaml"
171
+ ]
172
+ },
173
+ "types:create": {
174
+ "command": "nps types:pkg:create",
175
+ "files": [
176
+ "src/**",
177
+ "!src/**/*.test.*",
178
+ "../../tsconfig.base.json",
179
+ "tsconfig.build.json"
180
+ ],
181
+ "output": [
182
+ "es/**/*.d.ts",
183
+ "es/**/*.d.ts.map",
184
+ "lib/**/*.d.ts",
185
+ "lib/**/*.d.ts.map"
186
+ ],
187
+ "dependencies": [
188
+ "../victory-brush-container:types:create",
189
+ "../victory-core:types:create",
190
+ "../victory-cursor-container:types:create",
191
+ "../victory-selection-container:types:create",
192
+ "../victory-voronoi-container:types:create",
193
+ "../victory-zoom-container:types:create"
194
+ ],
195
+ "packageLocks": [
196
+ "pnpm-lock.yaml"
197
+ ]
198
+ },
199
+ "format": {
200
+ "command": "nps format:pkg",
201
+ "files": [
202
+ "src/**",
203
+ "*.json",
204
+ "../../.prettierignore",
205
+ "../../.prettierrc.json"
206
+ ],
207
+ "output": [],
208
+ "packageLocks": [
209
+ "pnpm-lock.yaml"
210
+ ]
211
+ },
212
+ "lint": {
213
+ "command": "nps lint:pkg",
214
+ "files": [
215
+ "src/**",
216
+ "../../.eslintignore",
217
+ "../../.eslintrc.js"
218
+ ],
219
+ "output": [],
220
+ "dependencies": [
221
+ "../victory-brush-container:types:create",
222
+ "../victory-core:types:create",
223
+ "../victory-cursor-container:types:create",
224
+ "../victory-selection-container:types:create",
225
+ "../victory-voronoi-container:types:create",
226
+ "../victory-zoom-container:types:create",
227
+ "../victory-vendor:types:create",
228
+ "../victory-voronoi:types:create"
229
+ ],
230
+ "packageLocks": [
231
+ "pnpm-lock.yaml"
232
+ ]
233
+ },
234
+ "format:fix": {
235
+ "command": "pnpm run format || nps format:pkg:fix",
236
+ "files": [
237
+ "src/**",
238
+ "*.json",
239
+ "../../.prettierignore",
240
+ "../../.prettierrc.json"
241
+ ],
242
+ "output": [],
243
+ "packageLocks": [
244
+ "pnpm-lock.yaml"
245
+ ]
246
+ },
247
+ "lint:fix": {
248
+ "command": "pnpm run lint || nps lint:pkg:fix",
249
+ "files": [
250
+ "src/**",
251
+ "../../.eslintignore",
252
+ "../../.eslintrc.js"
253
+ ],
254
+ "output": [],
255
+ "dependencies": [
256
+ "../victory-brush-container:types:create",
257
+ "../victory-core:types:create",
258
+ "../victory-cursor-container:types:create",
259
+ "../victory-selection-container:types:create",
260
+ "../victory-voronoi-container:types:create",
261
+ "../victory-zoom-container:types:create",
262
+ "../victory-vendor:types:create",
263
+ "../victory-voronoi:types:create"
264
+ ],
265
+ "packageLocks": [
266
+ "pnpm-lock.yaml"
267
+ ]
268
+ },
269
+ "jest": {
270
+ "command": "nps jest:pkg",
271
+ "files": [
272
+ "src/**/*.test.*",
273
+ "../../.babelrc.js",
274
+ "../../test/jest-config.js",
275
+ "../../test/jest-setup.ts"
276
+ ],
277
+ "output": [],
278
+ "dependencies": [
279
+ "build:lib:cjs",
280
+ "../victory-vendor:build:lib:cjs",
281
+ "../victory-voronoi:build:lib:cjs"
282
+ ],
283
+ "packageLocks": [
284
+ "pnpm-lock.yaml"
285
+ ]
286
+ }
35
287
  },
36
- "sideEffects": false,
37
- "gitHead": "55338af3c57eacca5956e53c08a58e47ba41d01e"
38
- }
288
+ "scripts": {
289
+ "### THESE SCRIPTS ARE GENERATED ###": "true",
290
+ "### DO NOT MODIFY THESE MANUALLY ###": "true",
291
+ "build": "wireit",
292
+ "build:lib": "wireit",
293
+ "build:lib:esm": "wireit",
294
+ "build:lib:cjs": "wireit",
295
+ "build:dist": "wireit",
296
+ "build:dist:dev": "wireit",
297
+ "build:dist:min": "wireit",
298
+ "types:check": "wireit",
299
+ "types:create": "wireit",
300
+ "format": "wireit",
301
+ "format:fix": "wireit",
302
+ "lint": "wireit",
303
+ "lint:fix": "wireit",
304
+ "jest": "wireit"
305
+ }
306
+ }
@@ -20,9 +20,8 @@ const ensureArray = (thing) => {
20
20
  return [];
21
21
  } else if (!Array.isArray(thing)) {
22
22
  return [thing];
23
- } else {
24
- return thing;
25
23
  }
24
+ return thing;
26
25
  };
27
26
 
28
27
  const combineEventHandlers = (eventHandlersArray) => {