@faasjs/load 2.8.1 → 2.9.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/dist/index.d.mts CHANGED
@@ -2,6 +2,8 @@ import { Config as Config$1, Func } from '@faasjs/func';
2
2
 
3
3
  /**
4
4
  * 配置类
5
+ *
6
+ * @deprecated
5
7
  */
6
8
  declare class Config {
7
9
  [key: string]: any;
@@ -37,6 +39,8 @@ declare function loadConfig(root: string, filename: string): Config;
37
39
  * @param options.tmp {boolean} 是否为临时文件,true 则生成的文件会被删除,默认为 false
38
40
  * @param options.modules {object} 生成 modules 的配置
39
41
  * @param options.modules.excludes {string[]} modules 中需排除的模块
42
+ *
43
+ * @deprecated
40
44
  */
41
45
  declare function loadTs(filename: string, options?: {
42
46
  input?: {
package/dist/index.d.ts CHANGED
@@ -2,6 +2,8 @@ import { Config as Config$1, Func } from '@faasjs/func';
2
2
 
3
3
  /**
4
4
  * 配置类
5
+ *
6
+ * @deprecated
5
7
  */
6
8
  declare class Config {
7
9
  [key: string]: any;
@@ -37,6 +39,8 @@ declare function loadConfig(root: string, filename: string): Config;
37
39
  * @param options.tmp {boolean} 是否为临时文件,true 则生成的文件会被删除,默认为 false
38
40
  * @param options.modules {object} 生成 modules 的配置
39
41
  * @param options.modules.excludes {string[]} modules 中需排除的模块
42
+ *
43
+ * @deprecated
40
44
  */
41
45
  declare function loadTs(filename: string, options?: {
42
46
  input?: {
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ var Config = class {
21
21
  * @param filename {filename} 目标文件,用于读取目录层级
22
22
  */
23
23
  constructor(root, filename) {
24
+ console.warn("[@faasjs/load] Will deprecated in v3.");
24
25
  this.root = root;
25
26
  if (!this.root.endsWith(path.sep)) this.root += path.sep;
26
27
  this.filename = filename;
@@ -145,6 +146,7 @@ function swc(externalModules) {
145
146
  }
146
147
  async function loadTs(filename, options = /* @__PURE__ */ Object.create(null)) {
147
148
  var _a;
149
+ console.warn("[@faasjs/load] Will deprecated in v3.");
148
150
  const PackageJSON = __require(`${process.cwd()}/package.json`);
149
151
  const external = PackageJSON.dependencies ? Object.keys(PackageJSON.dependencies) : [];
150
152
  if (options.modules && options.modules.excludes == null)
package/dist/index.mjs CHANGED
@@ -19,6 +19,7 @@ var Config = class {
19
19
  * @param filename {filename} 目标文件,用于读取目录层级
20
20
  */
21
21
  constructor(root, filename) {
22
+ console.warn("[@faasjs/load] Will deprecated in v3.");
22
23
  this.root = root;
23
24
  if (!this.root.endsWith(sep)) this.root += sep;
24
25
  this.filename = filename;
@@ -143,6 +144,7 @@ function swc(externalModules) {
143
144
  }
144
145
  async function loadTs(filename, options = /* @__PURE__ */ Object.create(null)) {
145
146
  var _a;
147
+ console.warn("[@faasjs/load] Will deprecated in v3.");
146
148
  const PackageJSON = __require(`${process.cwd()}/package.json`);
147
149
  const external = PackageJSON.dependencies ? Object.keys(PackageJSON.dependencies) : [];
148
150
  if (options.modules && options.modules.excludes == null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/load",
3
- "version": "2.8.1",
3
+ "version": "2.9.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -38,15 +38,15 @@
38
38
  "rollup": "*"
39
39
  },
40
40
  "peerDependencies": {
41
- "@faasjs/deep_merge": "2.8.1",
42
- "@faasjs/func": "2.8.1",
43
- "@faasjs/ts-transform": "2.8.1"
41
+ "@faasjs/deep_merge": "2.9.0",
42
+ "@faasjs/func": "2.9.0",
43
+ "@faasjs/ts-transform": "2.9.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/js-yaml": "*",
47
- "@faasjs/deep_merge": "2.8.1",
48
- "@faasjs/func": "2.8.1",
49
- "@faasjs/ts-transform": "2.8.1"
47
+ "@faasjs/deep_merge": "2.9.0",
48
+ "@faasjs/func": "2.9.0",
49
+ "@faasjs/ts-transform": "2.9.0"
50
50
  },
51
51
  "engines": {
52
52
  "npm": ">=9.0.0",