get-string-details.js 557 B

12345678910111213141516171819
  1. "use strict";
  2. /*
  3. Copyright 2018 Google LLC
  4. Use of this source code is governed by an MIT-style
  5. license that can be found in the LICENSE file or at
  6. https://opensource.org/licenses/MIT.
  7. */
  8. Object.defineProperty(exports, "__esModule", { value: true });
  9. exports.getStringDetails = void 0;
  10. const get_string_hash_1 = require("./get-string-hash");
  11. function getStringDetails(url, str) {
  12. return {
  13. file: url,
  14. hash: (0, get_string_hash_1.getStringHash)(str),
  15. size: str.length,
  16. };
  17. }
  18. exports.getStringDetails = getStringDetails;