@modern-js/plugin-proxy 1.2.5 → 1.2.6

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/.eslintrc.js ADDED
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ root: true,
3
+ extends: ['@modern-js'],
4
+ parserOptions: {
5
+ tsconfigRootDir: __dirname,
6
+ project: ['./tsconfig.json'],
7
+ },
8
+ };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @modern-js/plugin-proxy
2
2
 
3
+ ## 1.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 6cffe99d: chore:
8
+ remove react eslint rules for `modern-js` rule set.
9
+ add .eslintrc for each package to speed up linting
10
+ - 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
11
+ - 60f7d8bf: feat: add tests dir to npmignore
12
+ - Updated dependencies [b8599d09]
13
+ - Updated dependencies [60f7d8bf]
14
+ - Updated dependencies [3bf4f8b0]
15
+ - @modern-js/utils@1.5.0
16
+
3
17
  ## 1.2.5
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.5",
14
+ "version": "1.2.6",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -33,14 +33,14 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7",
36
- "@modern-js/utils": "^1.3.7",
36
+ "@modern-js/utils": "^1.5.0",
37
37
  "whistle": "^2.7.18"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/jest": "^26",
41
41
  "@types/node": "^14",
42
42
  "typescript": "^4",
43
- "@modern-js/core": "1.6.1",
43
+ "@modern-js/core": "1.8.0",
44
44
  "@scripts/build": "0.0.0",
45
45
  "jest": "^27",
46
46
  "@scripts/jest-config": "0.0.0"
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- extends: ['@modern-js'],
3
- parserOptions: {
4
- project: require.resolve('./tsconfig.json'),
5
- },
6
- };
@@ -1,19 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`plugin proxy test config 1`] = `Array []`;
4
-
5
- exports[`plugin proxy test schema 1`] = `
6
- Array [
7
- Array [
8
- Object {
9
- "schema": Object {
10
- "typeof": Array [
11
- "string",
12
- "object",
13
- ],
14
- },
15
- "target": "dev.proxy",
16
- },
17
- ],
18
- ]
19
- `;
package/tests/cli.test.ts DELETED
@@ -1,39 +0,0 @@
1
- import path from 'path';
2
- import { manager } from '@modern-js/core';
3
- import plugin from '../src';
4
-
5
- const root = path.normalize(path.resolve(__dirname, '../../../../'));
6
- expect.addSnapshotSerializer({
7
- test: val =>
8
- typeof val === 'string' &&
9
- (val.includes('modern.js') ||
10
- val.includes('node_modules') ||
11
- val.includes(root)),
12
- print: val =>
13
- // eslint-disable-next-line no-nested-ternary
14
- typeof val === 'string'
15
- ? // eslint-disable-next-line no-nested-ternary
16
- val.includes('node_modules')
17
- ? `"${val.replace(/.+node_modules/, '')}"`
18
- : val.includes('modern.js')
19
- ? `"${val.replace(/.+modern\.js/, '')}"`
20
- : `"${val.replace(root, '')}"`
21
- : (val as string),
22
- });
23
-
24
- describe('plugin proxy test', () => {
25
- it('schema', async () => {
26
- const main = manager.clone().usePlugin(plugin);
27
- const runner = await main.init();
28
- const result = await runner.validateSchema();
29
-
30
- expect(result).toMatchSnapshot();
31
- });
32
-
33
- it('config', async () => {
34
- const main = manager.clone().usePlugin(plugin);
35
- const runner = await main.init();
36
- const result = await runner.config();
37
- expect(result).toMatchSnapshot();
38
- });
39
- });
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "jsx": "preserve",
6
- "baseUrl": ".",
7
- "noEmit": true,
8
- "skipLibCheck": true,
9
- "esModuleInterop": true,
10
- "isolatedModules": true,
11
- "paths": {},
12
- "types": ["node", "jest"]
13
- }
14
- }