How to use the reify/package.json.version function in reify

To help you get started, we’ve selected a few reify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github meteor / babel / cache.js View on Github external
Cp.get = function (source, options, deps) {
  var cacheHash;
  if (deps && deps.sourceHash) {
    cacheHash = util.deepHash(
      meteorBabelVersion, reifyVersion,
      options, deps
    );
  } else {
    cacheHash = util.deepHash(
      meteorBabelVersion, reifyVersion,
      source, options, deps
    );
  }
  
  var cacheFile = cacheHash + ".json";
  var fullCacheFile = path.join(this.dir, cacheFile);
  var result;

  if (hasOwn.call(this.cache, cacheFile)) {
    result = this.cache[cacheFile];