almanac.httparchive.org icon indicating copy to clipboard operation
almanac.httparchive.org copied to clipboard

JavaScript Queries for 2024

Open nrllh opened this issue 1 year ago • 2 comments

nrllh avatar Aug 16 '24 14:08 nrllh

So the linter wants:
    cast(json_value(summary, '$.firstHtml') AS bool)

to be?
    cast(json_value(summary, '$.firstHtml') AS BOOL)

and 
    SUM(cast(json_value(payload, '$.response.bodySize') AS int64)) / 1024 AS kbytes

to be?
    SUM(cast(json_value(payload, '$.response.bodySize') AS INT64)) / 1024 AS kbytes

I don't know what it wants for:

WHERE
app IN ('jQuery', 'jQuery Migrate', 'jQuery UI', 'Modernizr', 'FancyBox', 'Slick', 'Lightbox', 'Moment.js', 'Underscore.js', 'Lodash', 'React', 'GSAP', 'Vue.js', 'styled-components', 'Emotion', 'Backbone.js', 'RequireJS', 'AngularJS', 'AMP', 'Redux', 'Next.js', 'Stimulus', 'Angular', 'Handlebars', 'Zone.js', 'Marionette.js', 'Mustache', 'Prototype', 'toastr', 'JSS',  'React Router', 'Nuxt.js', 'Alpine.js', 'Svelte', 'MooTools', 'Knockout.js', 'Socket.io', 'Gatsby', 'Adobe Client Data Layer')

mgifford avatar Aug 26 '24 17:08 mgifford

There are two spaces between these two terms: 'JSS', 'React Router' which the linter doesn't like. It (quite rightly!) thinks one space is enough.

You can tell this btw because it's saying the error is on Line 24, position 371 of that file.

== [/github/workspace/sql/2024/javascript/frameworks_libraries_by_version.sql] FAIL
L:  24 | P: 371 | L008 | Expected only single space before quoted literal. Found
                       | '  '.
L:  24 | P: 371 | L039 | Expected only single space before quoted literal. Found
                       | '  '.
L:  24 | P: 371 | L048 | Expected only single space before quoted literal. Found
                       | '  '.
All Finished!

tunetheweb avatar Aug 26 '24 18:08 tunetheweb