@suffolklitlab/alkiln 5.0.0-pre-4 → 5.0.0-pre-5

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.
package/CHANGELOG.md CHANGED
@@ -45,6 +45,7 @@ Format:
45
45
  be run in any directory, not just in an npm package.
46
46
  - Additional environment variables and their validation to allow for tests that run on a developer's server/Playground instead of through GitHub. Also, other functionality for that purpose. [Issue #661](https://github.com/SuffolkLITLab/ALKiln/issues/661)
47
47
  - Tests for new session_vars behavior and improve previous tests.
48
+ - Adds `npm-shrinkwrap.json`, so installs from npm will have fixed version dependencies
48
49
 
49
50
  ### Changed
50
51
  - upgraded cucumber v8.6.0
package/CONTRIBUTING.md CHANGED
@@ -112,6 +112,12 @@ Our tests require the user/developer to have a docassemble server on which they
112
112
 
113
113
  When the developer commits code to GitHub, their account triggers our code, passing along variables that our code needs, like their GitHub secret of the API key for their docassemble server developer account.
114
114
 
115
+ ## Updating dependencies
116
+
117
+ Sometimes you will have to add dependencies to ALKiln. You can do so by adding the dependency in the `package.json` "dependencies" section, specifying an exact version. Then, run `npm install` to update `npm-shrinkwrap.json` to have the new dependency.
118
+
119
+ If you have to update an existing dependency, you can change the version in `package.json`, and run `npm install` to update `npm-shrankwrap.json`.
120
+
115
121
  ## Very general architecture of files and folders
116
122
 
117
123
  An honest look at our current project architecture—some of our files and folders, what they do, and how they interact.
package/lib/scope.js CHANGED
@@ -285,7 +285,8 @@ module.exports = {
285
285
  getJSONFilename: async function( scope ) {
286
286
  // Get a unique path for a json file
287
287
  let { id } = await scope.examinePageID( scope, 'none to match' );
288
- let json_path = path.join( scope.paths.scenario, `json_for-${ id }-${ Date.now() }.json` );
288
+ let short_id = `${ id }`.substring(0, 20);
289
+ let json_path = path.join( scope.paths.scenario, `json_for-${ short_id }-${ Date.now() }.json` );
289
290
  return json_path;
290
291
  },
291
292