New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nguniversal/common

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nguniversal/common - npm Package Compare versions

Comparing version 5.0.0-beta.5 to 5.0.0-beta.6

bundles/common.umd.js

41

package.json
{
"name": "@nguniversal/common",
"main": "index.js",
"types": "index.d.ts",
"version": "5.0.0-beta.5",
"description": "Angular Universal common ",
"homepage": "https://github.com/angular/universal",
"version": "5.0.0-beta.6",
"description": "Angular Universal common utilities",
"main": "./bundles/common.umd.js",
"module": "./esm5/common.es5.js",
"es2015": "./esm2015/common.js",
"typings": "./common.d.ts",
"license": "MIT",
"keywords": [
"ssr",
"universal"
],
"peerDependencies": {
"@angular/common": "^5.0.0",
"@angular/core": "^5.0.0"
},
"repository": {

@@ -16,23 +25,3 @@ "type": "git",

},
"config": {
"engine-strict": true
},
"engines": {
"node": ">= 6.9.0",
"npm": ">= 3"
},
"peerDependencies": {
"@angular/common": "^5.0.0-rc.6",
"@angular/core": "^5.0.0-rc.6"
},
"devDependencies": {
"@angular/animations": "^5.0.0-rc.6",
"@angular/common": "^5.0.0-rc.6",
"@angular/core": "^5.0.0-rc.6",
"@angular/platform-browser": "^5.0.0-rc.6",
"@angular/platform-server": "^5.0.0-rc.6",
"rxjs": "^5.2.0",
"typescript": "2.4.2",
"zone.js": "^0.8.12"
}
"homepage": "https://github.com/angular/universal"
}

@@ -21,6 +21,4 @@ # Angular Universal Common Module

To use the `TransferHttpCacheModule` just install it as part of the top-level App module.
To use the `TransferHttpCacheModule`, first install it as part of the top-level App module.
That's it!
```ts

@@ -38,1 +36,42 @@ import {TransferHttpCacheModule} from '@nguniversal/common';

```
Then, import `ServerTransferStateModule` in your Server module.
```ts
import { NgModule } from "@angular/core";
import {
ServerModule,
ServerTransferStateModule
} from "@angular/platform-server";
import { AppModule } from "./app.module";
import { AppComponent } from "./app.component";
@NgModule({
imports: [
AppModule,
ServerModule,
ServerTransferStateModule
],
bootstrap: [AppComponent]
})
export class AppServerModule {}
```
Finally, in `main.ts` change this:
```ts
...
platformBrowserDynamic().bootstrapModule(AppBrowserModule);
```
To this:
```ts
...
document.addEventListener("DOMContentLoaded", () => {
platformBrowserDynamic()
.bootstrapModule(AppBrowserModule)
.catch(err => console.log(err));
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc