serverless-plugin-env-stage-config 1.3.5 → 1.3.8

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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/index.js +4 -4
  3. package/package.json +11 -8
package/README.md CHANGED
@@ -15,7 +15,7 @@ For development stages (`local`, `dev`, `development`), the variables will defau
15
15
  ## Installation
16
16
 
17
17
  ```sh
18
- yarn add --dev serverless-plugin-env-stage-config
18
+ pnpm add -D serverless-plugin-env-stage-config
19
19
  ```
20
20
 
21
21
  ```yaml
@@ -61,6 +61,7 @@ functions:
61
61
  In a local environment, the variables resolved with the `esc:` prefix will be equivalent to using `env:`. Using `useDotenv: true` alongside a `.env` file will alow you to define your environement variables.
62
62
 
63
63
  The supported local stages are:
64
+
64
65
  - `local`
65
66
  - `dev`
66
67
  - `development`
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- const {readFileSync} = require('fs')
2
- const path = require('path')
1
+ const {readFileSync} = require('node:fs')
2
+ const path = require('node:path')
3
3
 
4
4
  const cloudformationSchema = require('@serverless/utils/cloudformation-schema')
5
5
  const yaml = require('js-yaml')
@@ -10,7 +10,7 @@ const developmentStages = new Set([
10
10
  'dev',
11
11
  ])
12
12
 
13
- class EnvStageConfigServerlessPlugin {
13
+ class EnvironmentStageConfigServerlessPlugin {
14
14
  constructor(serverless, options) {
15
15
  this.serverless = serverless
16
16
  this.options = options
@@ -52,4 +52,4 @@ class EnvStageConfigServerlessPlugin {
52
52
  }
53
53
  }
54
54
 
55
- module.exports = EnvStageConfigServerlessPlugin
55
+ module.exports = EnvironmentStageConfigServerlessPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serverless-plugin-env-stage-config",
3
- "version": "1.3.5",
3
+ "version": "1.3.8",
4
4
  "author": "Bertrand Marron <bertrand.marron@gmail.com>",
5
5
  "description": "Serverless plugin to define environment variables files for stages",
6
6
  "main": "index.js",
@@ -8,23 +8,26 @@
8
8
  "index.js"
9
9
  ],
10
10
  "engines": {
11
- "node": ">=14"
11
+ "node": ">=16"
12
12
  },
13
- "repository": "https://github.com/bizon/serverless-plugin-stage-config",
13
+ "scripts": {
14
+ "preinstall": "npx only-allow pnpm"
15
+ },
16
+ "repository": "https://github.com/bizon/serverless-plugin-env-stage-config",
14
17
  "license": "MIT",
15
18
  "keywords": [
16
19
  "serverless",
17
20
  "serverless-plugin"
18
21
  ],
19
22
  "dependencies": {
20
- "@serverless/utils": "^6.11.1",
23
+ "@serverless/utils": "^6.15.0",
21
24
  "js-yaml": "^4.1.0"
22
25
  },
23
26
  "devDependencies": {
24
- "@bizon/semantic-release-config": "^2.0.0",
25
- "eslint-config-xo-bizon": "^1.2.0",
26
- "semantic-release": "^21.0.1",
27
- "xo": "^0.54.0"
27
+ "@bizon/semantic-release-config": "^2.1.0",
28
+ "eslint-config-xo-bizon": "^3.0.3",
29
+ "semantic-release": "^23.0.6",
30
+ "xo": "^0.58.0"
28
31
  },
29
32
  "xo": {
30
33
  "extends": "xo-bizon",