shinkansen-engine 1.0.22 → 1.0.24
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/babel.config.cjs +5 -9
- package/package.json +18 -19
- package/src/components/cogs/index.cjs +7 -1
- package/src/components/gears/index.cjs +7 -1
- package/src/components/index.mjs +6 -0
- package/src/components/pantograph/index.cjs +7 -1
- package/src/components/pinion/index.cjs +8 -2
- package/src/components/rails/index.cjs +7 -1
- package/src/components/signals/index.cjs +7 -1
- package/src/components/sprockets/index.cjs +7 -1
- package/src/engine/index.cjs +7 -1
- package/src/engine/index.jsx +2 -2
- package/src/index.cjs +6 -0
- package/src/index.mjs +6 -0
- package/src/transformers/pinion/check-answers/index.mjs +6 -0
- package/src/transformers/pinion/common/index.mjs +6 -0
- package/src/transformers/pinion/error-summary/index.mjs +8 -0
- package/src/transformers/transmission/from-document-to-hash/index.mjs +6 -0
- package/src/transformers/transmission/from-hash-to-document/index.mjs +6 -0
- package/src/transformers/transmission/index.mjs +6 -0
- package/src/transformers/transmission/to-zashiki/index.mjs +6 -0
- package/src/transformers/pinion/index.mjs +0 -2
package/babel.config.cjs
CHANGED
|
@@ -49,17 +49,13 @@ const plugins = [
|
|
|
49
49
|
],
|
|
50
50
|
[
|
|
51
51
|
'module-resolver', {
|
|
52
|
-
root: [
|
|
53
|
-
'.'
|
|
54
|
-
],
|
|
55
|
-
cwd: 'babelrc',
|
|
56
52
|
alias: {
|
|
57
53
|
/**
|
|
58
|
-
* Storybook
|
|
54
|
+
* Storybook - Engine
|
|
59
55
|
*/
|
|
60
|
-
'shinkansen-engine/gears': './src/components/gears/index.cjs',
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
'shinkansen-engine/components/gears': './src/components/gears/index.cjs',
|
|
57
|
+
'shinkansen-engine/components/pinion': './src/components/pinion/index.cjs',
|
|
58
|
+
'shinkansen-engine': './src/index.cjs'
|
|
63
59
|
}
|
|
64
60
|
}
|
|
65
61
|
]
|
|
@@ -71,6 +67,6 @@ module.exports = (api) => {
|
|
|
71
67
|
return {
|
|
72
68
|
presets,
|
|
73
69
|
plugins,
|
|
74
|
-
ignore: [/
|
|
70
|
+
ignore: [/node_modules\/(?!shinkansen-)/]
|
|
75
71
|
}
|
|
76
72
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-engine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "Shinkansen Engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"author": "Jonathan Perry for Modern Poacher Limited <modernpoacher@modernpoacher.com>",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=
|
|
19
|
+
"node": ">=18.5.0"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"debug": "^4.3.4",
|
|
44
|
-
"shinkansen-cogs": "1.5.
|
|
44
|
+
"shinkansen-cogs": "1.5.49",
|
|
45
45
|
"shinkansen-gears": "1.0.38",
|
|
46
|
-
"shinkansen-pantograph": "1.1.
|
|
47
|
-
"shinkansen-pinion": "1.0.
|
|
46
|
+
"shinkansen-pantograph": "1.1.7",
|
|
47
|
+
"shinkansen-pinion": "1.0.47",
|
|
48
48
|
"shinkansen-rails": "1.0.23",
|
|
49
49
|
"shinkansen-signals": "1.1.8",
|
|
50
|
-
"shinkansen-sprockets": "1.0.
|
|
50
|
+
"shinkansen-sprockets": "1.0.51",
|
|
51
51
|
"shinkansen-transmission": "2.2.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@babel/preset-env": "^7.21.5",
|
|
62
62
|
"@babel/preset-react": "^7.18.6",
|
|
63
63
|
"@babel/register": "^7.21.0",
|
|
64
|
-
"@modernpoacher/design-system": "1.0.
|
|
64
|
+
"@modernpoacher/design-system": "1.0.3",
|
|
65
65
|
"@modernpoacher/hooks": "^1.0.394",
|
|
66
66
|
"@sequencemedia/gulp": "^1.0.6",
|
|
67
67
|
"@storybook/addon-actions": "6.5.12",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"del": "^7.0.0",
|
|
78
78
|
"enzyme": "^3.11.0",
|
|
79
79
|
"enzyme-adapter-react-16": "^1.15.7",
|
|
80
|
-
"eslint": "^8.
|
|
80
|
+
"eslint": "^8.40.0",
|
|
81
81
|
"eslint-config-standard": "^17.0.0",
|
|
82
82
|
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
83
83
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -109,14 +109,13 @@
|
|
|
109
109
|
"regenerator-runtime": "^0.13.11",
|
|
110
110
|
"rimraf": "^5.0.0",
|
|
111
111
|
"sass": "^1.62.1",
|
|
112
|
-
"vinyl-paths": "
|
|
112
|
+
"vinyl-paths": "^5.0.0"
|
|
113
113
|
},
|
|
114
114
|
"imports": {
|
|
115
115
|
"#build/gulp/build/*": "./build/gulp/build/*.mjs",
|
|
116
116
|
"#build/gulp/build": "./build/gulp/build/index.mjs",
|
|
117
|
-
"#build/gulp/paths": "./build/gulp/paths.mjs",
|
|
118
|
-
"#build/gulp/handle-watch-error": "./build/gulp/handle-watch-error.mjs",
|
|
119
117
|
"#build/gulp/transform": "./build/gulp/transform/index.mjs",
|
|
118
|
+
"#build/gulp/*": "./build/gulp/*.mjs",
|
|
120
119
|
"#build/paths": "./build/paths.mjs"
|
|
121
120
|
},
|
|
122
121
|
"exports": {
|
|
@@ -124,14 +123,6 @@
|
|
|
124
123
|
"require": "./src/index.cjs",
|
|
125
124
|
"import": "./src/index.mjs"
|
|
126
125
|
},
|
|
127
|
-
"./transformers/pinion/check-answers": "./src/transformers/pinion/check-answers/index.mjs",
|
|
128
|
-
"./transformers/pinion/common": "./src/transformers/pinion/common/index.mjs",
|
|
129
|
-
"./transformers/pinion/error-summary": "./src/transformers/pinion/error-summary/index.mjs",
|
|
130
|
-
"./transformers/pinion": "./src/transformers/pinion/index.mjs",
|
|
131
|
-
"./transformers/transmission/from-document-to-hash": "./src/transformers/transmission/from-document-to-hash/index.mjs",
|
|
132
|
-
"./transformers/transmission/from-hash-to-document": "./src/transformers/transmission/from-hash-to-document/index.mjs",
|
|
133
|
-
"./transformers/transmission/to-zashiki": "./src/transformers/transmission/to-zashiki/index.mjs",
|
|
134
|
-
"./transformers/transmission": "./src/transformers/transmission/index.mjs",
|
|
135
126
|
"./components/cogs": "./src/components/cogs/index.cjs",
|
|
136
127
|
"./components/sprockets": "./src/components/sprockets/index.cjs",
|
|
137
128
|
"./components/gears/forward": "./src/components/gears/forward/index.cjs",
|
|
@@ -141,6 +132,14 @@
|
|
|
141
132
|
"./components/rails": "./src/components/rails/index.cjs",
|
|
142
133
|
"./components/signals": "./src/components/signals/index.cjs",
|
|
143
134
|
"./components/pantograph": "./src/components/pantograph/index.cjs",
|
|
135
|
+
"./transformers/pinion/check-answers": "./src/transformers/pinion/check-answers/index.mjs",
|
|
136
|
+
"./transformers/pinion/common": "./src/transformers/pinion/common/index.mjs",
|
|
137
|
+
"./transformers/pinion/error-summary": "./src/transformers/pinion/error-summary/index.mjs",
|
|
138
|
+
"./transformers/pinion": "./src/transformers/pinion/index.mjs",
|
|
139
|
+
"./transformers/transmission/from-document-to-hash": "./src/transformers/transmission/from-document-to-hash/index.mjs",
|
|
140
|
+
"./transformers/transmission/from-hash-to-document": "./src/transformers/transmission/from-hash-to-document/index.mjs",
|
|
141
|
+
"./transformers/transmission/to-zashiki": "./src/transformers/transmission/to-zashiki/index.mjs",
|
|
142
|
+
"./transformers/transmission": "./src/transformers/transmission/index.mjs",
|
|
144
143
|
"./engine": "./src/engine/index.cjs"
|
|
145
144
|
}
|
|
146
145
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
require('@babel/register')
|
|
1
|
+
require('@babel/register')({ ignore: [] })
|
|
2
|
+
|
|
3
|
+
const debug = require('debug')
|
|
2
4
|
|
|
3
5
|
const {
|
|
4
6
|
Gears
|
|
5
7
|
} = require('shinkansen-gears')
|
|
6
8
|
|
|
9
|
+
const log = debug('shinksansen-engine')
|
|
10
|
+
|
|
11
|
+
log('`shinkansen` is awake')
|
|
12
|
+
|
|
7
13
|
module.exports = Gears
|
package/src/components/index.mjs
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import debug from 'debug'
|
|
2
|
+
|
|
3
|
+
const log = debug('shinksansen-engine')
|
|
4
|
+
|
|
5
|
+
log('`shinkansen` is awake')
|
|
6
|
+
|
|
1
7
|
export { default as Cogs } from './cogs/index.cjs'
|
|
2
8
|
export { default as Gears } from './gears/index.cjs'
|
|
3
9
|
export { default as Pantograph } from './pantograph/index.cjs'
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
require('@babel/register')
|
|
1
|
+
require('@babel/register')({ ignore: [] })
|
|
2
|
+
|
|
3
|
+
const debug = require('debug')
|
|
2
4
|
|
|
3
5
|
const {
|
|
4
6
|
Pantograph
|
|
5
7
|
} = require('shinkansen-pantograph')
|
|
6
8
|
|
|
9
|
+
const log = debug('shinksansen-engine')
|
|
10
|
+
|
|
11
|
+
log('`shinkansen` is awake')
|
|
12
|
+
|
|
7
13
|
module.exports = Pantograph
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
require('@babel/register')
|
|
1
|
+
require('@babel/register')({ ignore: [] })
|
|
2
|
+
|
|
3
|
+
const debug = require('debug')
|
|
2
4
|
|
|
3
5
|
const {
|
|
4
6
|
default: Pinion
|
|
5
|
-
} = require('shinkansen-pinion/
|
|
7
|
+
} = require('shinkansen-pinion/pinion')
|
|
8
|
+
|
|
9
|
+
const log = debug('shinksansen-engine')
|
|
10
|
+
|
|
11
|
+
log('`shinkansen` is awake')
|
|
6
12
|
|
|
7
13
|
module.exports = Pinion
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
require('@babel/register')
|
|
1
|
+
require('@babel/register')({ ignore: [] })
|
|
2
|
+
|
|
3
|
+
const debug = require('debug')
|
|
2
4
|
|
|
3
5
|
const {
|
|
4
6
|
Rails
|
|
5
7
|
} = require('shinkansen-rails')
|
|
6
8
|
|
|
9
|
+
const log = debug('shinksansen-engine')
|
|
10
|
+
|
|
11
|
+
log('`shinkansen` is awake')
|
|
12
|
+
|
|
7
13
|
module.exports = Rails
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
require('@babel/register')
|
|
1
|
+
require('@babel/register')({ ignore: [] })
|
|
2
|
+
|
|
3
|
+
const debug = require('debug')
|
|
2
4
|
|
|
3
5
|
const {
|
|
4
6
|
Signals
|
|
5
7
|
} = require('shinkansen-signals')
|
|
6
8
|
|
|
9
|
+
const log = debug('shinksansen-engine')
|
|
10
|
+
|
|
11
|
+
log('`shinkansen` is awake')
|
|
12
|
+
|
|
7
13
|
module.exports = Signals
|
package/src/engine/index.cjs
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
require('@babel/register')
|
|
1
|
+
require('@babel/register')({ ignore: [] })
|
|
2
|
+
|
|
3
|
+
const debug = require('debug')
|
|
2
4
|
|
|
3
5
|
const {
|
|
4
6
|
default: component
|
|
5
7
|
} = require('./index.jsx')
|
|
6
8
|
|
|
9
|
+
const log = debug('shinksansen-engine')
|
|
10
|
+
|
|
11
|
+
log('`shinkansen` is awake')
|
|
12
|
+
|
|
7
13
|
module.exports = component
|
package/src/engine/index.jsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
|
|
4
|
-
import Pinion from '
|
|
5
|
-
import Gears from '
|
|
4
|
+
import Pinion from 'shinkansen-engine/components/pinion'
|
|
5
|
+
import Gears from 'shinkansen-engine/components/gears'
|
|
6
6
|
|
|
7
7
|
export default class Engine extends Component {
|
|
8
8
|
render () {
|
package/src/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
require('@babel/register')({ ignore: [] })
|
|
2
2
|
|
|
3
|
+
const debug = require('debug')
|
|
4
|
+
|
|
3
5
|
const Engine = require('./engine/index.cjs')
|
|
4
6
|
|
|
5
7
|
const Cogs = require('./components/cogs/index.cjs')
|
|
@@ -14,6 +16,10 @@ const { default: fromDocumentToHash } = require('./transformers/transmission/fro
|
|
|
14
16
|
const { default: fromHashToDocument } = require('./transformers/transmission/from-hash-to-document/index.mjs')
|
|
15
17
|
const { default: toZashiki } = require('./transformers/transmission/to-zashiki/index.mjs')
|
|
16
18
|
|
|
19
|
+
const log = debug('shinksansen-engine')
|
|
20
|
+
|
|
21
|
+
log('`shinkansen` is awake')
|
|
22
|
+
|
|
17
23
|
module.exports.Engine = Engine
|
|
18
24
|
|
|
19
25
|
module.exports.Cogs = Cogs
|
package/src/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import debug from 'debug'
|
|
2
|
+
|
|
1
3
|
import Cogs from './components/cogs/index.cjs'
|
|
2
4
|
import Sprockets from './components/sprockets/index.cjs'
|
|
3
5
|
import Gears from './components/gears/index.cjs'
|
|
@@ -6,6 +8,10 @@ import Rails from './components/rails/index.cjs'
|
|
|
6
8
|
import Signals from './components/signals/index.cjs'
|
|
7
9
|
import Pantograph from './components/pantograph/index.cjs'
|
|
8
10
|
|
|
11
|
+
const log = debug('shinksansen-engine')
|
|
12
|
+
|
|
13
|
+
log('`shinkansen` is awake')
|
|
14
|
+
|
|
9
15
|
export { default as Engine } from './engine/index.cjs'
|
|
10
16
|
|
|
11
17
|
export {
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import debug from 'debug'
|
|
2
|
+
|
|
3
|
+
const log = debug('shinksansen-engine')
|
|
4
|
+
|
|
5
|
+
log('`shinkansen` is awake')
|
|
6
|
+
|
|
1
7
|
export { default as fromDocumentToHash } from './from-document-to-hash/index.mjs'
|
|
2
8
|
export { default as fromHashToDocument } from './from-hash-to-document/index.mjs'
|
|
3
9
|
export { default as toZashiki } from './to-zashiki/index.mjs'
|