relay-forms-nodeps 2.0.0 → 2.3.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.
- package/.vscode/settings.json +10 -0
- package/eslint.config.js +84 -0
- package/lib/RelayFormsTypes.d.ts +17 -10
- package/lib/Utils.d.ts +1 -1
- package/lib/Utils.js +4 -3
- package/lib/es/RelayFormsTypes.d.ts +17 -10
- package/lib/es/RelayFormsTypes.js +1 -0
- package/lib/es/Utils.d.ts +1 -1
- package/lib/es/index.js +3 -1
- package/lib/es/relay/RelayModernStore.js +1 -2
- package/lib/es/relay/RelayReader.js +0 -1
- package/lib/es/relay/RelayStoreProvider.d.ts +1 -1
- package/lib/es/relay/RelayTypes.d.ts +7 -7
- package/lib/es/relay/RelayTypes.js +1 -0
- package/lib/es/relay/queries.js +0 -1
- package/lib/es/relay/queryErrorsFieldQuery.graphql.d.ts +27 -0
- package/lib/es/relay/queryErrorsFieldQuery.graphql.js +101 -0
- package/lib/es/relay/queryFieldFragment.graphql.d.ts +17 -0
- package/lib/es/relay/queryFieldFragment.graphql.js +27 -0
- package/lib/es/relay/queryFieldQuery.graphql.d.ts +24 -0
- package/lib/es/relay/queryFieldQuery.graphql.js +83 -0
- package/lib/es/relay/queryValueFieldFragment.graphql.d.ts +19 -0
- package/lib/es/relay/queryValueFieldFragment.graphql.js +39 -0
- package/lib/es/useForm.js +6 -2
- package/lib/es/useFormField.d.ts +1 -1
- package/lib/es/useFormField.js +48 -10
- package/lib/es/useFormState.d.ts +2 -12
- package/lib/index.js +70 -8
- package/lib/relay/RelayModernRecord.js +2 -1
- package/lib/relay/RelayModernSelector.js +1 -0
- package/lib/relay/RelayModernStore.js +7 -7
- package/lib/relay/RelayReader.js +1 -1
- package/lib/relay/RelayRecordProxy.js +1 -0
- package/lib/relay/RelayRecordSource.js +1 -0
- package/lib/relay/RelayRecordSourceMutator.js +1 -0
- package/lib/relay/RelayRecordSourceProxy.js +1 -0
- package/lib/relay/RelayReferenceMarker.js +1 -0
- package/lib/relay/RelayStoreProvider.d.ts +1 -1
- package/lib/relay/RelayStoreProvider.js +3 -1
- package/lib/relay/RelayStoreUtils.js +1 -0
- package/lib/relay/RelayTypes.d.ts +7 -7
- package/lib/relay/queries.js +1 -1
- package/lib/relay/queryErrorsFieldQuery.graphql.d.ts +27 -0
- package/lib/relay/queryErrorsFieldQuery.graphql.js +106 -0
- package/lib/relay/queryFieldFragment.graphql.d.ts +17 -0
- package/lib/relay/queryFieldFragment.graphql.js +32 -0
- package/lib/relay/queryFieldQuery.graphql.d.ts +24 -0
- package/lib/relay/queryFieldQuery.graphql.js +88 -0
- package/lib/relay/queryValueFieldFragment.graphql.d.ts +19 -0
- package/lib/relay/queryValueFieldFragment.graphql.js +44 -0
- package/lib/umd/relay-forms-nodeps.js +136 -69
- package/lib/umd/relay-forms-nodeps.js.map +1 -1
- package/lib/umd/relay-forms-nodeps.min.js +1 -1
- package/lib/umd/relay-forms-nodeps.min.js.map +1 -1
- package/lib/useForceUpdate.js +2 -1
- package/lib/useForm.js +17 -11
- package/lib/useFormField.d.ts +1 -1
- package/lib/useFormField.js +56 -17
- package/lib/useFormState.d.ts +2 -12
- package/lib/useFormState.js +5 -3
- package/lib/useFormValue.js +3 -2
- package/package.json +106 -102
- package/rollup.config.js +92 -92
- package/yarn-error.log +127 -127
package/rollup.config.js
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
2
|
-
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
-
/* eslint-disable import/no-default-export */
|
|
4
|
-
import babel from '@rollup/plugin-babel';
|
|
5
|
-
import commonjs from '@rollup/plugin-commonjs';
|
|
6
|
-
import nodeResolve from '@rollup/plugin-node-resolve';
|
|
7
|
-
import replace from '@rollup/plugin-replace';
|
|
8
|
-
import sourceMaps from 'rollup-plugin-sourcemaps';
|
|
9
|
-
import { terser } from 'rollup-plugin-terser';
|
|
10
|
-
import typescript from 'rollup-plugin-typescript2';
|
|
11
|
-
import pkg from './package.json';
|
|
12
|
-
|
|
13
|
-
const makeExternalPredicate = (externalArr) => {
|
|
14
|
-
if (externalArr.length === 0) {
|
|
15
|
-
return () => false;
|
|
16
|
-
}
|
|
17
|
-
const pattern = new RegExp(`^(${externalArr.join('|')})($|/)`);
|
|
18
|
-
return (id) => pattern.test(id);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const extensions = ['.ts', '.tsx'];
|
|
22
|
-
|
|
23
|
-
function createConfigInternal({ format, production }) {
|
|
24
|
-
return {
|
|
25
|
-
input: 'src/index.ts',
|
|
26
|
-
output: {
|
|
27
|
-
file: 'lib/' + format + '/relay-forms-nodeps' + (production ? '.min' : '') + '.js',
|
|
28
|
-
format,
|
|
29
|
-
name: 'relay-forms-nodeps',
|
|
30
|
-
indent: false,
|
|
31
|
-
globals: {
|
|
32
|
-
react: 'React',
|
|
33
|
-
},
|
|
34
|
-
sourcemap: true,
|
|
35
|
-
exports: 'named',
|
|
36
|
-
},
|
|
37
|
-
external: makeExternalPredicate([
|
|
38
|
-
...Object.keys(pkg.dependencies || {}),
|
|
39
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
40
|
-
]),
|
|
41
|
-
plugins: [
|
|
42
|
-
nodeResolve({
|
|
43
|
-
extensions,
|
|
44
|
-
}),
|
|
45
|
-
replace({
|
|
46
|
-
'import * as ': 'import ',
|
|
47
|
-
}),
|
|
48
|
-
typescript({
|
|
49
|
-
tsconfigOverride: {
|
|
50
|
-
compilerOptions: {
|
|
51
|
-
declaration: false,
|
|
52
|
-
declarationMap: false,
|
|
53
|
-
module: 'es2015',
|
|
54
|
-
esModuleInterop: true,
|
|
55
|
-
sourceMap: true,
|
|
56
|
-
importHelpers: false,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
}),
|
|
60
|
-
format === 'umd' &&
|
|
61
|
-
commonjs({
|
|
62
|
-
include: /\/node_modules\//,
|
|
63
|
-
}),
|
|
64
|
-
babel({ extensions, include: ['src/**/*'], babelHelpers: 'bundled' }),
|
|
65
|
-
replace({
|
|
66
|
-
'process.env.NODE_ENV': JSON.stringify(production ? 'production' : 'development'),
|
|
67
|
-
}),
|
|
68
|
-
sourceMaps(),
|
|
69
|
-
production &&
|
|
70
|
-
terser({
|
|
71
|
-
output: { comments: false },
|
|
72
|
-
compress: {
|
|
73
|
-
keep_infinity: true,
|
|
74
|
-
pure_getters: true,
|
|
75
|
-
passes: 10,
|
|
76
|
-
},
|
|
77
|
-
ecma: 5,
|
|
78
|
-
toplevel: format === 'cjs',
|
|
79
|
-
warnings: true,
|
|
80
|
-
}),
|
|
81
|
-
],
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function createConfig(format) {
|
|
86
|
-
return [
|
|
87
|
-
createConfigInternal({ format, production: false }),
|
|
88
|
-
createConfigInternal({ format, production: true }),
|
|
89
|
-
];
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export default [...createConfig('umd')];
|
|
1
|
+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable import/no-default-export */
|
|
4
|
+
import babel from '@rollup/plugin-babel';
|
|
5
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
6
|
+
import nodeResolve from '@rollup/plugin-node-resolve';
|
|
7
|
+
import replace from '@rollup/plugin-replace';
|
|
8
|
+
import sourceMaps from 'rollup-plugin-sourcemaps';
|
|
9
|
+
import { terser } from 'rollup-plugin-terser';
|
|
10
|
+
import typescript from 'rollup-plugin-typescript2';
|
|
11
|
+
import pkg from './package.json';
|
|
12
|
+
|
|
13
|
+
const makeExternalPredicate = (externalArr) => {
|
|
14
|
+
if (externalArr.length === 0) {
|
|
15
|
+
return () => false;
|
|
16
|
+
}
|
|
17
|
+
const pattern = new RegExp(`^(${externalArr.join('|')})($|/)`);
|
|
18
|
+
return (id) => pattern.test(id);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const extensions = ['.ts', '.tsx'];
|
|
22
|
+
|
|
23
|
+
function createConfigInternal({ format, production }) {
|
|
24
|
+
return {
|
|
25
|
+
input: 'src/index.ts',
|
|
26
|
+
output: {
|
|
27
|
+
file: 'lib/' + format + '/relay-forms-nodeps' + (production ? '.min' : '') + '.js',
|
|
28
|
+
format,
|
|
29
|
+
name: 'relay-forms-nodeps',
|
|
30
|
+
indent: false,
|
|
31
|
+
globals: {
|
|
32
|
+
react: 'React',
|
|
33
|
+
},
|
|
34
|
+
sourcemap: true,
|
|
35
|
+
exports: 'named',
|
|
36
|
+
},
|
|
37
|
+
external: makeExternalPredicate([
|
|
38
|
+
...Object.keys(pkg.dependencies || {}),
|
|
39
|
+
...Object.keys(pkg.peerDependencies || {}),
|
|
40
|
+
]),
|
|
41
|
+
plugins: [
|
|
42
|
+
nodeResolve({
|
|
43
|
+
extensions,
|
|
44
|
+
}),
|
|
45
|
+
replace({
|
|
46
|
+
'import * as ': 'import ',
|
|
47
|
+
}),
|
|
48
|
+
typescript({
|
|
49
|
+
tsconfigOverride: {
|
|
50
|
+
compilerOptions: {
|
|
51
|
+
declaration: false,
|
|
52
|
+
declarationMap: false,
|
|
53
|
+
module: 'es2015',
|
|
54
|
+
esModuleInterop: true,
|
|
55
|
+
sourceMap: true,
|
|
56
|
+
importHelpers: false,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
}),
|
|
60
|
+
format === 'umd' &&
|
|
61
|
+
commonjs({
|
|
62
|
+
include: /\/node_modules\//,
|
|
63
|
+
}),
|
|
64
|
+
babel({ extensions, include: ['src/**/*'], babelHelpers: 'bundled' }),
|
|
65
|
+
replace({
|
|
66
|
+
'process.env.NODE_ENV': JSON.stringify(production ? 'production' : 'development'),
|
|
67
|
+
}),
|
|
68
|
+
sourceMaps(),
|
|
69
|
+
production &&
|
|
70
|
+
terser({
|
|
71
|
+
output: { comments: false },
|
|
72
|
+
compress: {
|
|
73
|
+
keep_infinity: true,
|
|
74
|
+
pure_getters: true,
|
|
75
|
+
passes: 10,
|
|
76
|
+
},
|
|
77
|
+
ecma: 5,
|
|
78
|
+
toplevel: format === 'cjs',
|
|
79
|
+
warnings: true,
|
|
80
|
+
}),
|
|
81
|
+
],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function createConfig(format) {
|
|
86
|
+
return [
|
|
87
|
+
createConfigInternal({ format, production: false }),
|
|
88
|
+
createConfigInternal({ format, production: true }),
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export default [...createConfig('umd')];
|
package/yarn-error.log
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
Arguments:
|
|
2
|
-
C:\Program Files\nodejs\node.exe C:\Users\lorenzo.digiacomo\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js fast:test
|
|
3
|
-
|
|
4
|
-
PATH:
|
|
5
|
-
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\app\lorenzo.digiacomo\product\11.2.0\client_1\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\nodejs\;C:\gradle-5.6.4\bin;C:\apache-maven-3.6.3\bin;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files (x86)\NetSarang\Xftp 7\;C:\Program Files\TortoiseSVN\bin;C:\dev\flutter\bin;C:\Users\lorenzo.digiacomo\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\lorenzo.digiacomo\AppData\Local\Programs\Python\Python311\;C:\Users\lorenzo.digiacomo\AppData\Local\Microsoft\WindowsApps;C:\Users\lorenzo.digiacomo\AppData\Local\GitHubDesktop\bin;C:\Users\lorenzo.digiacomo\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\lorenzo.digiacomo\AppData\Roaming\npm;C:\dev\flutter\bin;
|
|
6
|
-
|
|
7
|
-
Yarn version:
|
|
8
|
-
1.22.18
|
|
9
|
-
|
|
10
|
-
Node version:
|
|
11
|
-
16.15.0
|
|
12
|
-
|
|
13
|
-
Platform:
|
|
14
|
-
win32 x64
|
|
15
|
-
|
|
16
|
-
Trace:
|
|
17
|
-
SyntaxError: C:\dev\GIT\TEMP\github\relay-forms\package.json: Unexpected string in JSON at position 991
|
|
18
|
-
at JSON.parse (<anonymous>)
|
|
19
|
-
at C:\Users\lorenzo.digiacomo\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:1625:59
|
|
20
|
-
at Generator.next (<anonymous>)
|
|
21
|
-
at step (C:\Users\lorenzo.digiacomo\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30)
|
|
22
|
-
at C:\Users\lorenzo.digiacomo\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:321:13
|
|
23
|
-
|
|
24
|
-
npm manifest:
|
|
25
|
-
{
|
|
26
|
-
"name": "react-relay-forms",
|
|
27
|
-
"version": "1.0.1",
|
|
28
|
-
"keywords": [
|
|
29
|
-
"forms",
|
|
30
|
-
"relay",
|
|
31
|
-
"hooks",
|
|
32
|
-
"react",
|
|
33
|
-
"react-native",
|
|
34
|
-
"validation"
|
|
35
|
-
],
|
|
36
|
-
"main": "lib/index.js",
|
|
37
|
-
"module": "./lib/es/index.js",
|
|
38
|
-
"unpkg": "lib/umd/react-relay-forms.min.js",
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"description": "React Relay Forms",
|
|
41
|
-
"author": {
|
|
42
|
-
"name": "morrys"
|
|
43
|
-
},
|
|
44
|
-
"homepage": "https://morrys.github.io/relay-forms/docs/relay-forms.html",
|
|
45
|
-
"repository": {
|
|
46
|
-
"type": "git",
|
|
47
|
-
"url": "https://github.com/morrys/relay-forms"
|
|
48
|
-
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"clean": "rimraf lib",
|
|
51
|
-
"relay": "relay-compiler --src ./compile/ --schema ./forms.graphql --language typescript --artifactDirectory ./src/relay --persist-output ./ignore-queries.json",
|
|
52
|
-
"compile": "npm run clean && tsc && tsc --project tsconfig.esm.json && npm run build:js && npm run build:replace && npm run rollup",
|
|
53
|
-
"build": "npm run compile && npm run test",
|
|
54
|
-
"fast:test": "npm run clean && tsc && npm run test"
|
|
55
|
-
"test": "cross-env NODE_ENV=test jest --coverage -t \"do again validation\"",
|
|
56
|
-
"format": "prettier --write \"src/**/*.ts*\" \"!src/relay/**/*.ts\"",
|
|
57
|
-
"format:ci": "prettier --list-different \"src/**/*.ts*\" \"!src/relay/**/*.ts\"",
|
|
58
|
-
"eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx",
|
|
59
|
-
"prepublishOnly": "npm run build",
|
|
60
|
-
"build:js": "babel lib --out-dir lib --extensions \".js,.jsx\" && babel lib/es --out-dir lib/es --extensions \".js,.jsx\"",
|
|
61
|
-
"build:replace": "replace-in-file --configFile=replace.config.js",
|
|
62
|
-
"rollup": "rollup -c"
|
|
63
|
-
},
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"fbjs": "^1.0.0"
|
|
66
|
-
},
|
|
67
|
-
"peerDependencies": {
|
|
68
|
-
"react": "^16.9.0 || ^17 || ^18",
|
|
69
|
-
"relay-runtime": "^13.0.2 || ^14.0.0",
|
|
70
|
-
"react-relay": "^14.1.0"
|
|
71
|
-
},
|
|
72
|
-
"devDependencies": {
|
|
73
|
-
"@babel/cli": "^7.8.3",
|
|
74
|
-
"@babel/runtime": "7.20.7",
|
|
75
|
-
"babel-preset-fbjs": "^3.3.0",
|
|
76
|
-
"@types/babel__traverse": "7.18.2",
|
|
77
|
-
"cross-env": "6.0.3",
|
|
78
|
-
"typescript": "3.8.3",
|
|
79
|
-
"react": "^18.0.0",
|
|
80
|
-
"react-dom": "^18.0.0",
|
|
81
|
-
"graphql": "^14.2.0",
|
|
82
|
-
"@types/react": "18.0.26",
|
|
83
|
-
"@types/react-dom": "18.0.10",
|
|
84
|
-
"@types/relay-runtime": "^14.0.0",
|
|
85
|
-
"relay-runtime": "^14.0.0",
|
|
86
|
-
"relay-compiler": "^14.0.0",
|
|
87
|
-
"react-relay": "^14.1.0",
|
|
88
|
-
"replace-in-file": "6.2.0",
|
|
89
|
-
"react-test-renderer": "^18.0.0",
|
|
90
|
-
"relay-test-utils": "^14.0.0",
|
|
91
|
-
"relay-test-utils-internal": "^14.0.0",
|
|
92
|
-
"@types/jest": "24.0.18",
|
|
93
|
-
"ts-jest": "^26.5.6",
|
|
94
|
-
"jest": "^26.0.0",
|
|
95
|
-
"promise-polyfill": "6.1.0",
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "2.25.0",
|
|
97
|
-
"@typescript-eslint/parser": "2.25.0",
|
|
98
|
-
"eslint": "6.8.0",
|
|
99
|
-
"eslint-config-prettier": "6.10.1",
|
|
100
|
-
"eslint-import-resolver-typescript": "2.0.0",
|
|
101
|
-
"eslint-plugin-import": "2.20.1",
|
|
102
|
-
"eslint-plugin-json": "2.1.1",
|
|
103
|
-
"eslint-plugin-jsx-a11y": "6.2.3",
|
|
104
|
-
"eslint-plugin-prettier": "3.1.2",
|
|
105
|
-
"eslint-plugin-react": "7.19.0",
|
|
106
|
-
"eslint-plugin-react-hooks": "3.0.0",
|
|
107
|
-
"prettier": "1.19.1",
|
|
108
|
-
"rimraf": "^2.5.4",
|
|
109
|
-
"@types/node": "13.9.3",
|
|
110
|
-
"relay-compiler-language-typescript": "12.0.0",
|
|
111
|
-
"@testing-library/react": "13.4.0",
|
|
112
|
-
"rollup": "^2.23.0",
|
|
113
|
-
"rollup-plugin-sourcemaps": "0.6.2",
|
|
114
|
-
"rollup-plugin-terser": "^6.1.0",
|
|
115
|
-
"rollup-plugin-typescript2": "^0.27.1",
|
|
116
|
-
"@rollup/plugin-commonjs": "14.0.0",
|
|
117
|
-
"@rollup/plugin-node-resolve": "^8.4.0",
|
|
118
|
-
"@rollup/plugin-replace": "^2.3.3",
|
|
119
|
-
"@rollup/plugin-babel": "5.2.2"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
yarn manifest:
|
|
124
|
-
No manifest
|
|
125
|
-
|
|
126
|
-
Lockfile:
|
|
127
|
-
No lockfile
|
|
1
|
+
Arguments:
|
|
2
|
+
C:\Program Files\nodejs\node.exe C:\Users\lorenzo.digiacomo\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js fast:test
|
|
3
|
+
|
|
4
|
+
PATH:
|
|
5
|
+
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\app\lorenzo.digiacomo\product\11.2.0\client_1\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\nodejs\;C:\gradle-5.6.4\bin;C:\apache-maven-3.6.3\bin;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files (x86)\NetSarang\Xftp 7\;C:\Program Files\TortoiseSVN\bin;C:\dev\flutter\bin;C:\Users\lorenzo.digiacomo\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\lorenzo.digiacomo\AppData\Local\Programs\Python\Python311\;C:\Users\lorenzo.digiacomo\AppData\Local\Microsoft\WindowsApps;C:\Users\lorenzo.digiacomo\AppData\Local\GitHubDesktop\bin;C:\Users\lorenzo.digiacomo\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\lorenzo.digiacomo\AppData\Roaming\npm;C:\dev\flutter\bin;
|
|
6
|
+
|
|
7
|
+
Yarn version:
|
|
8
|
+
1.22.18
|
|
9
|
+
|
|
10
|
+
Node version:
|
|
11
|
+
16.15.0
|
|
12
|
+
|
|
13
|
+
Platform:
|
|
14
|
+
win32 x64
|
|
15
|
+
|
|
16
|
+
Trace:
|
|
17
|
+
SyntaxError: C:\dev\GIT\TEMP\github\relay-forms\package.json: Unexpected string in JSON at position 991
|
|
18
|
+
at JSON.parse (<anonymous>)
|
|
19
|
+
at C:\Users\lorenzo.digiacomo\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:1625:59
|
|
20
|
+
at Generator.next (<anonymous>)
|
|
21
|
+
at step (C:\Users\lorenzo.digiacomo\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30)
|
|
22
|
+
at C:\Users\lorenzo.digiacomo\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:321:13
|
|
23
|
+
|
|
24
|
+
npm manifest:
|
|
25
|
+
{
|
|
26
|
+
"name": "react-relay-forms",
|
|
27
|
+
"version": "1.0.1",
|
|
28
|
+
"keywords": [
|
|
29
|
+
"forms",
|
|
30
|
+
"relay",
|
|
31
|
+
"hooks",
|
|
32
|
+
"react",
|
|
33
|
+
"react-native",
|
|
34
|
+
"validation"
|
|
35
|
+
],
|
|
36
|
+
"main": "lib/index.js",
|
|
37
|
+
"module": "./lib/es/index.js",
|
|
38
|
+
"unpkg": "lib/umd/react-relay-forms.min.js",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"description": "React Relay Forms",
|
|
41
|
+
"author": {
|
|
42
|
+
"name": "morrys"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://morrys.github.io/relay-forms/docs/relay-forms.html",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "https://github.com/morrys/relay-forms"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"clean": "rimraf lib",
|
|
51
|
+
"relay": "relay-compiler --src ./compile/ --schema ./forms.graphql --language typescript --artifactDirectory ./src/relay --persist-output ./ignore-queries.json",
|
|
52
|
+
"compile": "npm run clean && tsc && tsc --project tsconfig.esm.json && npm run build:js && npm run build:replace && npm run rollup",
|
|
53
|
+
"build": "npm run compile && npm run test",
|
|
54
|
+
"fast:test": "npm run clean && tsc && npm run test"
|
|
55
|
+
"test": "cross-env NODE_ENV=test jest --coverage -t \"do again validation\"",
|
|
56
|
+
"format": "prettier --write \"src/**/*.ts*\" \"!src/relay/**/*.ts\"",
|
|
57
|
+
"format:ci": "prettier --list-different \"src/**/*.ts*\" \"!src/relay/**/*.ts\"",
|
|
58
|
+
"eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx",
|
|
59
|
+
"prepublishOnly": "npm run build",
|
|
60
|
+
"build:js": "babel lib --out-dir lib --extensions \".js,.jsx\" && babel lib/es --out-dir lib/es --extensions \".js,.jsx\"",
|
|
61
|
+
"build:replace": "replace-in-file --configFile=replace.config.js",
|
|
62
|
+
"rollup": "rollup -c"
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"fbjs": "^1.0.0"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"react": "^16.9.0 || ^17 || ^18",
|
|
69
|
+
"relay-runtime": "^13.0.2 || ^14.0.0",
|
|
70
|
+
"react-relay": "^14.1.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@babel/cli": "^7.8.3",
|
|
74
|
+
"@babel/runtime": "7.20.7",
|
|
75
|
+
"babel-preset-fbjs": "^3.3.0",
|
|
76
|
+
"@types/babel__traverse": "7.18.2",
|
|
77
|
+
"cross-env": "6.0.3",
|
|
78
|
+
"typescript": "3.8.3",
|
|
79
|
+
"react": "^18.0.0",
|
|
80
|
+
"react-dom": "^18.0.0",
|
|
81
|
+
"graphql": "^14.2.0",
|
|
82
|
+
"@types/react": "18.0.26",
|
|
83
|
+
"@types/react-dom": "18.0.10",
|
|
84
|
+
"@types/relay-runtime": "^14.0.0",
|
|
85
|
+
"relay-runtime": "^14.0.0",
|
|
86
|
+
"relay-compiler": "^14.0.0",
|
|
87
|
+
"react-relay": "^14.1.0",
|
|
88
|
+
"replace-in-file": "6.2.0",
|
|
89
|
+
"react-test-renderer": "^18.0.0",
|
|
90
|
+
"relay-test-utils": "^14.0.0",
|
|
91
|
+
"relay-test-utils-internal": "^14.0.0",
|
|
92
|
+
"@types/jest": "24.0.18",
|
|
93
|
+
"ts-jest": "^26.5.6",
|
|
94
|
+
"jest": "^26.0.0",
|
|
95
|
+
"promise-polyfill": "6.1.0",
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "2.25.0",
|
|
97
|
+
"@typescript-eslint/parser": "2.25.0",
|
|
98
|
+
"eslint": "6.8.0",
|
|
99
|
+
"eslint-config-prettier": "6.10.1",
|
|
100
|
+
"eslint-import-resolver-typescript": "2.0.0",
|
|
101
|
+
"eslint-plugin-import": "2.20.1",
|
|
102
|
+
"eslint-plugin-json": "2.1.1",
|
|
103
|
+
"eslint-plugin-jsx-a11y": "6.2.3",
|
|
104
|
+
"eslint-plugin-prettier": "3.1.2",
|
|
105
|
+
"eslint-plugin-react": "7.19.0",
|
|
106
|
+
"eslint-plugin-react-hooks": "3.0.0",
|
|
107
|
+
"prettier": "1.19.1",
|
|
108
|
+
"rimraf": "^2.5.4",
|
|
109
|
+
"@types/node": "13.9.3",
|
|
110
|
+
"relay-compiler-language-typescript": "12.0.0",
|
|
111
|
+
"@testing-library/react": "13.4.0",
|
|
112
|
+
"rollup": "^2.23.0",
|
|
113
|
+
"rollup-plugin-sourcemaps": "0.6.2",
|
|
114
|
+
"rollup-plugin-terser": "^6.1.0",
|
|
115
|
+
"rollup-plugin-typescript2": "^0.27.1",
|
|
116
|
+
"@rollup/plugin-commonjs": "14.0.0",
|
|
117
|
+
"@rollup/plugin-node-resolve": "^8.4.0",
|
|
118
|
+
"@rollup/plugin-replace": "^2.3.3",
|
|
119
|
+
"@rollup/plugin-babel": "5.2.2"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
yarn manifest:
|
|
124
|
+
No manifest
|
|
125
|
+
|
|
126
|
+
Lockfile:
|
|
127
|
+
No lockfile
|