@modern-js/plugin-garfish 1.4.0 → 1.4.1

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.
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import path from 'path';
8
- import { createRuntimeExportsUtils, INTERNAL_PLUGINS } from '@modern-js/utils';
8
+ import { createRuntimeExportsUtils, PLUGIN_SCHEMAS } from '@modern-js/utils';
9
9
  import { createPlugin, useAppContext, useResolvedConfigContext } from '@modern-js/core';
10
10
  import { logger } from "../util";
11
11
  import { getRuntimeConfig, makeProvider, makeRenderFunction, setRuntimeConfig } from "./utils";
@@ -252,7 +252,7 @@ export default createPlugin(initializer({
252
252
  resolvedConfig,
253
253
 
254
254
  validateSchema() {
255
- return INTERNAL_PLUGINS['@modern-js/plugin-garfish'];
255
+ return PLUGIN_SCHEMAS['@modern-js/plugin-garfish'];
256
256
  }
257
257
 
258
258
  }, {
@@ -275,7 +275,7 @@ var _default = (0, _core.createPlugin)(initializer({
275
275
  resolvedConfig,
276
276
 
277
277
  validateSchema() {
278
- return _utils.INTERNAL_PLUGINS['@modern-js/plugin-garfish'];
278
+ return _utils.PLUGIN_SCHEMAS['@modern-js/plugin-garfish'];
279
279
  }
280
280
 
281
281
  }, {
@@ -13,7 +13,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
13
13
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
14
14
 
15
15
  import path from 'path';
16
- import { createRuntimeExportsUtils, INTERNAL_PLUGINS } from '@modern-js/utils';
16
+ import { createRuntimeExportsUtils, PLUGIN_SCHEMAS } from '@modern-js/utils';
17
17
  import { createPlugin, useAppContext, useResolvedConfigContext } from '@modern-js/core';
18
18
  import { logger } from "../util";
19
19
  import { getRuntimeConfig, makeProvider, makeRenderFunction, setRuntimeConfig } from "./utils";
@@ -265,7 +265,7 @@ _ref2, _ref3) {
265
265
  export default createPlugin(initializer({
266
266
  resolvedConfig: resolvedConfig,
267
267
  validateSchema: function validateSchema() {
268
- return INTERNAL_PLUGINS['@modern-js/plugin-garfish'];
268
+ return PLUGIN_SCHEMAS['@modern-js/plugin-garfish'];
269
269
  }
270
270
  }, {
271
271
  runtimePluginName: '@modern-js/runtime/plugins'
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.0",
14
+ "version": "1.4.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/runtime/index.d.ts",
17
17
  "typesVersions": {
@@ -87,7 +87,8 @@
87
87
  "modernConfig": {},
88
88
  "publishConfig": {
89
89
  "registry": "https://registry.npmjs.org/",
90
- "access": "public"
90
+ "access": "public",
91
+ "types": "./dist/types/runtime/index.d.ts"
91
92
  },
92
93
  "scripts": {
93
94
  "new": "modern new",