question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Long module contents truncated

See original GitHub issue

Hi,

We’re happily using jsdelivr with Observable and today noticed an issue with the lodash package that might affect other packages as well. The module’s entry point:

https://cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.js

Is truncated, when delivered through jsDelivr. The final lines are

    /**
     * Creates a clone of  `buffer`.
     *
     * @private
     * @param {Buffer} buffer The buffer to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Buffer} Returns the cloned buffer.
     */
    function cloneBuffer(buffer, isDeep) {
      if (isDeep) {
        return buffer.slice();
      }
      var length = buffer.length,
          result = allocUnsafe ?

And then it simply ends, leaving clients with an invalid script. Compare to the unpkg URL for the same resource, and the file continues past that point.

Thanks for any help, and happy to provide additional information.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
MartinKolarikcommented, Feb 20, 2019

@Mustack done. We’ll be deploying a (hopefully) permanent fix for this tomorrow.

1reaction
MartinKolarikcommented, Feb 13, 2019

@1player check now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Long URLs get truncated [#1700686] | Drupal.org
Our content type contains two fields - an image and a URL. The URL field does not have any size limit on it....
Read more >
Solved: long datastore names truncated after Get-Datastore
Solved: When I run the command below... Get-Cluster yomama | Get-Datastore | Sort-Object -Property FreeSpaceGB -Descending | Format-Table.
Read more >
How to fix truncated PowerShell output, even when I've specified
Pipe output to Format-Table commandlet, e.g. as follows: Get-ChildItem 'E:\' -Force -Recurse | Select-Object FullName | Format-Table - ...
Read more >
HD89951: RM9: LONG LINES TRUNCATED IN PRIMARY ... - IBM
When Primary Requirement content have some long lines, these lines are truncated when editing in InfoPath the Req Chapter or the Req module...
Read more >
argparse allowing long option names to be truncated
From the argparse docs: allow_abbrev Normally, when you pass an argument list to the parse_args() method of an ArgumentParser, it recognizes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found