You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

angular-server-side-configuration

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-server-side-configuration - npm Package Compare versions

Comparing version

to
0.0.7

2

package.json
{
"name": "angular-server-side-configuration",
"version": "0.0.6",
"version": "0.0.7",
"description": "Configure an angular application on the server",

@@ -5,0 +5,0 @@ "main": "./src/main.js",

@@ -74,5 +74,9 @@ # angular-server-side-configuration

### process
Import this in polyfill.ts. This will enable the typings for process.env.*
in the code and register a fallback value for process.env.
Import `angular-server-side-configuration/process` in polyfill.ts. This will enable
the typings for process.env.* in the code and register a fallback value for process.env.
```typescript
import 'angular-server-side-configuration/process';
```
### EnvironmentVariablesConfiguration

@@ -91,2 +95,9 @@

`root` The root directory from which to search.
`options` Optional options for searching environment variables.
`options.filePattern` The file pattern in which environment variables should be searched
(Defaults to /.js$/).
`options.environmentVariablesDiscovery` The function to discover environment variables in
the matched files (Defaults to process.env.VARIABLE => VARIABLE).
Returns an instance of EnvironmentVariablesConfiguration.

@@ -127,3 +138,3 @@

`options.insertionRegex` The replacement pattern, where the configuration should be inserted
(Defaults to /<!--\s*CONFIG\s*-->/).
(Defaults to `/<!--\s*CONFIG\s*-->/`).

@@ -144,3 +155,3 @@ Returns a promise, which resolves to the file content with the environment variables inserted.

`options.insertionRegex` The replacement pattern, where the configuration should be inserted
(Defaults to /<!--\s*CONFIG\s*-->/).
(Defaults to `/<!--\s*CONFIG\s*-->/`).

@@ -162,3 +173,3 @@ Returns a promise, which resolves after the enivornment variables have been saved to the given file.

`options.insertionRegex` The replacement pattern, where the configuration should
be inserted (Defaults to /<!--\s*CONFIG\s*-->/).
be inserted (Defaults to `/<!--\s*CONFIG\s*-->/`).

@@ -165,0 +176,0 @@ Returns a promise, which resolves after the environment variables have been inserted to all matched files.