victory-create-container 36.5.3 → 36.6.2

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.2",
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,295 @@
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.2",
25
+ "victory-core": "^36.6.2",
26
+ "victory-cursor-container": "^36.6.2",
27
+ "victory-selection-container": "^36.6.2",
28
+ "victory-voronoi-container": "^36.6.2",
29
+ "victory-zoom-container": "^36.6.2"
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
+ "check": {
151
+ "dependencies": [
152
+ "types:check",
153
+ "jest",
154
+ "format",
155
+ "lint"
156
+ ]
157
+ },
158
+ "types:check": {
159
+ "command": "nps types:pkg:check",
160
+ "files": [
161
+ "src/**/*.{ts,tsx}",
162
+ "../../tsconfig.base.json",
163
+ "tsconfig.json"
164
+ ],
165
+ "dependencies": [
166
+ "types:create",
167
+ "../victory-brush-container:types:create",
168
+ "../victory-core:types:create",
169
+ "../victory-cursor-container:types:create",
170
+ "../victory-selection-container:types:create",
171
+ "../victory-voronoi-container:types:create",
172
+ "../victory-zoom-container:types:create",
173
+ "../victory-vendor:types:create",
174
+ "../victory-voronoi:types:create"
175
+ ],
176
+ "output": [],
177
+ "packageLocks": [
178
+ "pnpm-lock.yaml"
179
+ ]
180
+ },
181
+ "types:create": {
182
+ "command": "nps types:pkg:create",
183
+ "files": [
184
+ "src/**",
185
+ "!src/**/*.test.*",
186
+ "../../tsconfig.base.json",
187
+ "tsconfig.build.json"
188
+ ],
189
+ "output": [
190
+ "es/**/*.d.ts",
191
+ "es/**/*.d.ts.map",
192
+ "lib/**/*.d.ts",
193
+ "lib/**/*.d.ts.map"
194
+ ],
195
+ "dependencies": [
196
+ "../victory-brush-container:types:create",
197
+ "../victory-core:types:create",
198
+ "../victory-cursor-container:types:create",
199
+ "../victory-selection-container:types:create",
200
+ "../victory-voronoi-container:types:create",
201
+ "../victory-zoom-container:types:create"
202
+ ],
203
+ "packageLocks": [
204
+ "pnpm-lock.yaml"
205
+ ]
206
+ },
207
+ "format": {
208
+ "command": "nps format:pkg",
209
+ "files": [
210
+ "src/**",
211
+ "*.json",
212
+ "../../.prettierignore",
213
+ "../../.prettierrc.json"
214
+ ],
215
+ "output": [],
216
+ "packageLocks": [
217
+ "pnpm-lock.yaml"
218
+ ]
219
+ },
220
+ "format:fix": {
221
+ "command": "pnpm run format || nps format:pkg:fix",
222
+ "files": [
223
+ "src/**",
224
+ "*.json",
225
+ "../../.prettierignore",
226
+ "../../.prettierrc.json"
227
+ ],
228
+ "output": [],
229
+ "packageLocks": [
230
+ "pnpm-lock.yaml"
231
+ ]
232
+ },
233
+ "lint": {
234
+ "command": "nps lint:pkg",
235
+ "files": [
236
+ "src/**",
237
+ "../../.eslintignore",
238
+ "../../.eslintrc.js"
239
+ ],
240
+ "output": [],
241
+ "dependencies": [
242
+ "../victory-brush-container:types:create",
243
+ "../victory-core:types:create",
244
+ "../victory-cursor-container:types:create",
245
+ "../victory-selection-container:types:create",
246
+ "../victory-voronoi-container:types:create",
247
+ "../victory-zoom-container:types:create",
248
+ "../victory-vendor:types:create",
249
+ "../victory-voronoi:types:create"
250
+ ],
251
+ "packageLocks": [
252
+ "pnpm-lock.yaml"
253
+ ]
254
+ },
255
+ "lint:fix": {
256
+ "command": "pnpm run lint || nps lint:pkg:fix",
257
+ "files": [
258
+ "src/**",
259
+ "../../.eslintignore",
260
+ "../../.eslintrc.js"
261
+ ],
262
+ "output": [],
263
+ "dependencies": [
264
+ "../victory-brush-container:types:create",
265
+ "../victory-core:types:create",
266
+ "../victory-cursor-container:types:create",
267
+ "../victory-selection-container:types:create",
268
+ "../victory-voronoi-container:types:create",
269
+ "../victory-zoom-container:types:create",
270
+ "../victory-vendor:types:create",
271
+ "../victory-voronoi:types:create"
272
+ ],
273
+ "packageLocks": [
274
+ "pnpm-lock.yaml"
275
+ ]
276
+ },
277
+ "jest": {
278
+ "command": "nps jest:pkg",
279
+ "files": [
280
+ "src/**/*.test.*",
281
+ "../../.babelrc.js",
282
+ "../../test/jest-config.js",
283
+ "../../test/jest-setup.ts"
284
+ ],
285
+ "output": [],
286
+ "dependencies": [
287
+ "build:lib:cjs",
288
+ "../victory-vendor:build:lib:cjs",
289
+ "../victory-voronoi:build:lib:cjs"
290
+ ],
291
+ "packageLocks": [
292
+ "pnpm-lock.yaml"
293
+ ]
294
+ }
35
295
  },
36
- "sideEffects": false,
37
- "gitHead": "55338af3c57eacca5956e53c08a58e47ba41d01e"
38
- }
296
+ "scripts": {
297
+ "### THESE SCRIPTS ARE GENERATED ###": "true",
298
+ "### DO NOT MODIFY THESE MANUALLY ###": "true",
299
+ "build": "wireit",
300
+ "build:lib": "wireit",
301
+ "build:lib:esm": "wireit",
302
+ "build:lib:cjs": "wireit",
303
+ "build:dist": "wireit",
304
+ "build:dist:dev": "wireit",
305
+ "build:dist:min": "wireit",
306
+ "check": "wireit",
307
+ "types:check": "wireit",
308
+ "types:create": "wireit",
309
+ "format": "wireit",
310
+ "format:fix": "wireit",
311
+ "lint": "wireit",
312
+ "lint:fix": "wireit",
313
+ "jest": "wireit"
314
+ }
315
+ }
@@ -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) => {