Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "fastboot", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Library for rendering Ember apps in node.js", | ||
@@ -32,3 +32,3 @@ "main": "src/index.js", | ||
"chalk": "^2.0.1", | ||
"cookie": "^0.3.1", | ||
"cookie": "^0.4.0", | ||
"debug": "^4.1.0", | ||
@@ -44,3 +44,3 @@ "najax": "^1.0.3", | ||
"chai-as-promised": "^7.1.1", | ||
"ember-source": "3.2.0", | ||
"ember-source": "3.8.0", | ||
"eslint": "^5.10.0", | ||
@@ -47,0 +47,0 @@ "eslint-plugin-chai-expect": "^2.0.1", |
@@ -66,4 +66,4 @@ # FastBoot | ||
(You will need to have already set up the Ember CLI FastBoot addon. For | ||
more information, see the [FastBoot quickstart][quickstart].) | ||
(You will need to have already set up the [ember-cli-fastboot](https://github.com/ember-fastboot/ember-cli-fastboot) addon. | ||
For more information, see the [FastBoot quickstart][quickstart].) | ||
@@ -73,5 +73,13 @@ [quickstart]: https://www.ember-fastboot.com/quickstart | ||
Once this is done, you will have a `dist` directory that contains the | ||
multi-environment build of your app. Upload this file to your FastBoot | ||
server. | ||
multi-environment build of your app. | ||
Run the command to install run time node modules: | ||
```sh | ||
$ cd dist/ | ||
$ npm install | ||
``` | ||
Upload the `dist/` folder including `node_modules` to your FastBoot server. | ||
### Command Line | ||
@@ -78,0 +86,0 @@ |
@@ -139,4 +139,12 @@ 'use strict'; | ||
if (isWhitelisted) { | ||
let resolvedModulePath = resolve.sync(moduleName, { basedir: distPath }); | ||
return require(resolvedModulePath); | ||
try { | ||
let resolvedModulePath = resolve.sync(moduleName, { basedir: distPath }); | ||
return require(resolvedModulePath); | ||
} catch (error) { | ||
if (error.code === 'MODULE_NOT_FOUND') { | ||
return require(moduleName); | ||
} else { | ||
throw error; | ||
} | ||
} | ||
} | ||
@@ -151,3 +159,2 @@ | ||
} else { | ||
// If it's not on disk, assume it's a built-in node package | ||
return require(moduleName); | ||
@@ -394,4 +401,3 @@ } | ||
schemaVersion = schemaVersion || FastBootSchemaVersions.base; | ||
debug('Current schemaVersion from `ember-cli-fastboot` is %s while latest schema version is %s', (schemaVersion, currentSchemaVersion)); | ||
debug('Current schemaVersion from `ember-cli-fastboot` is %s while latest schema version is %s', schemaVersion, currentSchemaVersion); | ||
if (schemaVersion > currentSchemaVersion) { | ||
@@ -398,0 +404,0 @@ let errorMsg = chalk.bold.red('An incompatible version between `ember-cli-fastboot` and `fastboot` was found. Please update the version of fastboot library that is compatible with ember-cli-fastboot.'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50731
1045
127
11
+ Addedcookie@0.4.2(transitive)
- Removedcookie@0.3.1(transitive)
Updatedcookie@^0.4.0