angular-server-side-configuration
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
declare const _default: import("@angular-devkit/architect/src/internal").Builder<import("./models").Options>; | ||
declare const _default: import("@angular-devkit/architect/src/internal").Builder<import("../../models").Options>; | ||
export default _default; |
import { BuilderContext, BuilderOutput } from '@angular-devkit/architect'; | ||
import { Options } from './models'; | ||
import { Options } from '../../models'; | ||
export declare class NgsscBuilder { | ||
@@ -4,0 +4,0 @@ private _options; |
@@ -23,2 +23,3 @@ "use strict"; | ||
this._tmpNgsscEnvironmentFile = `${_options.ngsscEnvironmentFile}_${crypto_1.randomBytes(10).toString('hex')}.tmp`; | ||
this._context.addTeardown(() => this._removeTmpNgsscEnvironmentFile()); | ||
} | ||
@@ -25,0 +26,0 @@ static async build(options, context) { |
@@ -1,2 +0,2 @@ | ||
import { NgsscContext } from './models'; | ||
import { NgsscContext } from '../../models'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Detect environment variables in given file. |
@@ -1,2 +0,2 @@ | ||
import { NgsscContext } from './models'; | ||
import { NgsscContext } from '../../models'; | ||
import { TokenizeResult } from './tokenize-result'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -0,1 +1,11 @@ | ||
# 8.0.0-beta.2 (2019-07-19) | ||
### Features | ||
* Implemented insert function (`import { insert } from 'angular-server-side-configuration';`) | ||
### Bugfix | ||
* Fixed issue in native cli | ||
# 8.0.0-beta.1 (2019-07-14) | ||
@@ -2,0 +12,0 @@ |
{ | ||
"name": "angular-server-side-configuration", | ||
"version": "8.0.0-beta.1", | ||
"version": "8.0.0-beta.2", | ||
"description": "Configure an angular application on the server", | ||
@@ -15,3 +15,3 @@ "publishConfig": { | ||
"clean": "rimraf coverage dist {builders,models,schematics}/**/*.{d.ts,js} test/*.{d.ts,js} junit.xml", | ||
"build:node": "npm run clean && tsc", | ||
"build:node": "npm run clean && tsc && rollup -c rollup.config.js", | ||
"build:go": "docker-compose run build-go", | ||
@@ -25,2 +25,5 @@ "build": "run-p build:*", | ||
}, | ||
"main": "./src/main.js", | ||
"module": "./src/module.js", | ||
"typings": "./src/index.d.ts", | ||
"files": [ | ||
@@ -56,5 +59,7 @@ "**/*.{js,d.ts,json}", | ||
"@schematics/angular": "^8.0.0", | ||
"@types/glob-to-regexp": "^0.4.0", | ||
"@types/jest": "^24.0.15", | ||
"@types/node": "^10.14.4", | ||
"@types/rimraf": "^2.0.2", | ||
"glob-to-regexp": "^0.4.1", | ||
"jest": "^24.8.0", | ||
@@ -64,2 +69,4 @@ "jest-junit": "^6.4.0", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.17.0", | ||
"rollup-plugin-typescript2": "^0.22.0", | ||
"ts-jest": "^24.0.2", | ||
@@ -81,2 +88,3 @@ "ts-node": "^8.3.0", | ||
"**/*.ts", | ||
"!src/index.ts", | ||
"!**/*.spec.ts" | ||
@@ -83,0 +91,0 @@ ], |
@@ -31,7 +31,7 @@ # angular-server-side-configuration | ||
``` | ||
ng add angular-server-side-configuration | ||
ng add angular-server-side-configuration@next | ||
``` | ||
or, if you have a previous version of this library installed | ||
``` | ||
ng update angular-server-side-configuration@latest | ||
ng update angular-server-side-configuration@next | ||
``` | ||
@@ -42,3 +42,3 @@ This will configure the appropriate files. | ||
``` | ||
npm install --save angular-server-side-configuration | ||
npm install --save angular-server-side-configuration@next | ||
``` | ||
@@ -146,4 +146,6 @@ | ||
### On host server or in Dockerfile | ||
This library provides a native implementation for the `insert` command of the CLI. Go to | ||
[Releases](https://github.com/kyubisation/angular-server-side-configuration/releases) | ||
This library provides a Node.js and a native implementation for inserting the environment variables into your html. | ||
Either the `insert` function from the package (`import { insert } from 'angular-server-side-configuration';`) | ||
or the `insert` command of the CLI. | ||
For the native CLI, go to [Releases](https://github.com/kyubisation/angular-server-side-configuration/releases) | ||
and download the appropriate executable for your server environment. | ||
@@ -150,0 +152,0 @@ (See [build.sh](https://github.com/kyubisation/angular-server-side-configuration/blob/master/cli/build.sh) for |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
64060
22.85%52
15.56%1069
38.65%196
1.03%19
26.67%10
900%