44318d6c33cd26f4bfdb9.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b0a592b6fe83588c5d1b8ed6850b6a74.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b155b7bf28890099b74a84417cbaafe9.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b1bb8fbd24d68a9c893faf1a6f7b493b.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b1bcbab1d6a7ca6b0433d67776f347f1.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b239ff15197a133498a4b025f002dee5.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b2e956ee35340f6e47f27f8a54309ac3.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b31f51fa0bb40ceb060aaa9f77ca1771.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b3f83696a2cb49f571043ce14a384a76.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b4bf1e55ca6145f38f1b2f104201da21.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b826befd7acca93e8e4c12b7cd2fc7f1.json d01d7cf85d first commit il y a 4 ans woocommerce-th-b9bf1ca91d393a30e2461ef709f8fa10.json d01d7cf85d first commit il y a 4 ans woocommerce-th-ba8d2fb7c85928310d4f3a907b7d9bdd.json d01d7cf85d first commit il y a 4 ans woocommerce-th-bb0f027faa1257de4b730158475093de.json d01d7cf85d first commit il y a 4 ans woocommerce-th-bb5c5935ec0d64e8880b1c7794470460.json d01d7cf85d first commit il y a 4 ans woocommerce-th-bc1f4f7aec77a0a6dd229cc910f601f1.json d01d7cf85d first commit il y a 4 ans woocommerce-th-bc9c3f9eda462d6d9968c1dca51e7c62.json d01d7cf85d first commit il y a 4 ans woocommerce-th-bcb06ab6e8931a862dec9c07c66df45b.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c06829f63f73ae430c10ae700fb1eb6d.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c0faba84c7842505f8893c2c327a9f78.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c13acd243559529a685813d9871026a1.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c1bc39bcdee2da3c0b62bcd5372120f4.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c22945301f466e2d78d6e80404a22664.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c2435bc8dfd186b147aba658416d115e.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c257c024e3db4e010644d2c7be3c7090.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c2d9a34cf502bd5b5a80ca646a1420b3.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c5702ace609dd30ccabd4c999de43096.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c608fe5deda8db7667c8431ca6fd222a.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c6c5331d3afe1391f2ca83e991ccc086.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c70671124b0e00661f88fe1616dfc9f0.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c8cbe8ef95155db152b270d441fc8528.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c8ddf2164475a213274d06873bfbb73a.json d01d7cf85d first commit il y a 4 ans woocommerce-th-c93706e596cbd46fb0d621f4fe3efb80.json d01d7cf85d first commit il y a 4 ans woocommerce-th-ca3cd4394cb082bde7555ebd3bb5f143.json d01d7cf85d first commit il y a 4 ans woocommerce-th-cb71ce5ddcc7c808172e80a0dc9833d5.json d01d7cf85d first commit il y a 4 ans woocommerce-th-cc16013df9d4b0a0ba45297b90b06f20.json d01d7cf85d first commit il y a 4 ans woocommerce-th-ccc500b0b722a0c96712f1634cbb7289.json d01d7cf85d first commit il y a 4 ans woocommerce-th-cd9fc1d9fc46b55bb32d0fd471457690.json d01d7cf85d first commit il y a 4 ans woocommerce-th-ce3f8f2f3e0f3c58f8aea5b7aa5cc6f4.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d05ee634b22d05f0055b724443f05a68.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d0d05e0dda872b433f260969b4d53b30.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d0fa7cd1cd624e53cc7b4fde655c20af.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d2b4400b6de0e69404e0f7f61d16bc55.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d3e57c518feb58ab8ea4f9d2d8e66160.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d4c505e96199e8c818fc6d24151d9c4a.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d5ea33028f13b50f40bbcce807e37fc0.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d6f4faa954a31ef3d5b74c2dfe13f141.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d7bbe90eb59636eb8a6f31c7979ab6f5.json d01d7cf85d first commit il y a 4 ans woocommerce-th-d80020dab74131d7f0c108526c0fbebe.json d01d7cf85d first commit il y a 4 ans woocommerce-th-da92a9b2d4c08762c60d7c4c569eb5db.json d01d7cf85d first commit il y a 4 ans woocommerce-th-de12a4697822740a2fbaeb47c5062af1.json d01d7cf85d first commit il y a 4 ans woocommerce-th-deed2aed3392b43c83c7cea296b154af.json d01d7cf85d first commit il y a 4 ans woocommerce-th-df51042cba56a4e9fcac0e5db643906a.json d01d7cf85d first commit il y a 4 ans woocommerce-th-dfb09f9953676bbc1de4eb2b9f232c6d.json d01d7cf85d first commit il y a 4 ans woocommerce-th-dfbfe3d556f60ebbd62c2b5c8e0fa466.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e03ec35386c2705c11cebd6288b33cf8.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e0bde0ac58f55fc6b1426844e6697db3.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e0f9c7d89b1b130a9023c5c2fde2815e.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e41c58d5fb39f750efcbf65a2b55460b.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e44671e4528b0da3a0fd6feaf8abadca.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e4fbc8d7fc7a16bd8cf2e0522a199de0.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e690486b33a7bb1944a37f6e734d734f.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e80539b9960e930bf0dcd334d99eb128.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e885442559cb44e8b827f0e0ca0a14c9.json d01d7cf85d first commit il y a 4 ans woocommerce-th-e88dc35c02f6fa832e90fac5a122323c.json d01d7cf85d first commit il y a 4 ans woocommerce-th-ea6fb371f81c4d3584bbc795fa4ac09c.json d01d7cf85d first commit il y a 4 ans woocommerce-th-ed9b16000a6d37c51bf23c61f4df878e.json d01d7cf85d first commit il y a 4 ans woocommerce-th-ef5798395d7601ab6fea0f1efd60f40a.json d01d7cf85d first commit il y a 4 ans woocommerce-th-f31b0aa0c71dd74b7103120610ca6253.json d01d7cf85d first commit il y a 4 ans woocommerce-th-f34924aeff974b0bdbfac124c23fbfe3.json d01d7cf85d first commit il y a 4 ans woocommerce-th-f39008456fd28b2f79cdb0964ff294e1.json d01d7cf85d first commit il y a 4 ans woocommerce-th-f3f1cc4f5811d4bf8a04a58feca06858.json d01d7cf85d first commit il y a 4 ans woocommerce-th-f56e66fd08c07abc78cd844f7e83af8c.json d01d7cf85d first commit il y a 4 ans woocommerce-th-f60049653c419cfb1e3dc8876e7a8bdb.json d01d7cf85d first commit il y a 4 ans woocommerce-th-f686a272add740773cdcb730afdb5454.json d01d7cf85d first commit il y a 4 ans woocommerce-th-f976da155dfdd080588c50ccda5af747.json d01d7cf85d first commit il y a 4 ans woocommerce-th-f9c56a0cbb6710505047e6c835953c82.json d01d7cf85d first commit il y a 4 ans woocommerce-th-fb2ef023bdd44902b5a309e25e0b7792.json d01d7cf85d first commit il y a 4 ans woocommerce-th-fc1fe56fadfdeeb25d1bc441581d92b6.json d01d7cf85d first commit il y a 4 ans woocommerce-th-fc4895b6508f32c16c4d8bc69f8162b6.json d01d7cf85d first commit il y a 4 ans woocommerce-th-fd20fc8ea1484781160e8ea0d229d5e9.json d01d7cf85d first commit il y a 4 ans woocommerce-th-fffdec5db595ec0ca7d043c87bae79b8.json d01d7cf85d first commit il y a 4 ans woocommerce-th-wc-admin-app.json d01d7cf85d first commit il y a 4 ans woocommerce-th.mo d01d7cf85d first commit il y a 4 ans woocommerce-th.po d01d7cf85d first commit il y a 4 ans tum/tmt_learning - Gogs: Simplico Git Service

暫無描述

Prach Pongpanich 6f337d0a21 install tailwind alpine daisyui 3 年之前
..
dist 6f337d0a21 install tailwind alpine daisyui 3 年之前
LICENSE 6f337d0a21 install tailwind alpine daisyui 3 年之前
README.md 6f337d0a21 install tailwind alpine daisyui 3 年之前
package.json 6f337d0a21 install tailwind alpine daisyui 3 年之前

README.md

@jridgewell/sourcemap-codec

Encode/decode the mappings property of a sourcemap.

Why?

Sourcemaps are difficult to generate and manipulate, because the mappings property – the part that actually links the generated code back to the original source – is encoded using an obscure method called Variable-length quantity. On top of that, each segment in the mapping contains offsets rather than absolute indices, which means that you can't look at a segment in isolation – you have to understand the whole sourcemap.

This package makes the process slightly easier.

Installation

npm install @jridgewell/sourcemap-codec

Usage

import { encode, decode } from '@jridgewell/sourcemap-codec';

var decoded = decode( ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' );

assert.deepEqual( decoded, [
	// the first line (of the generated code) has no mappings,
	// as shown by the starting semi-colon (which separates lines)
	[],

	// the second line contains four (comma-separated) segments
	[
		// segments are encoded as you'd expect:
		// [ generatedCodeColumn, sourceIndex, sourceCodeLine, sourceCodeColumn, nameIndex ]

		// i.e. the first segment begins at column 2, and maps back to the second column
		// of the second line (both zero-based) of the 0th source, and uses the 0th
		// name in the `map.names` array
		[ 2, 0, 2, 2, 0 ],

		// the remaining segments are 4-length rather than 5-length,
		// because they don't map a name
		[ 4, 0, 2, 4 ],
		[ 6, 0, 2, 5 ],
		[ 7, 0, 2, 7 ]
	],

	// the final line contains two segments
	[
		[ 2, 1, 10, 19 ],
		[ 12, 1, 11, 20 ]
	]
]);

var encoded = encode( decoded );
assert.equal( encoded, ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' );

Benchmarks

node v18.0.0

amp.js.map - 45120 segments

Decode Memory Usage:
@jridgewell/sourcemap-codec       5479160 bytes
sourcemap-codec                   5659336 bytes
source-map-0.6.1                 17144440 bytes
source-map-0.8.0                  6867424 bytes
Smallest memory usage is @jridgewell/sourcemap-codec

Decode speed:
decode: @jridgewell/sourcemap-codec x 502 ops/sec ±1.03% (90 runs sampled)
decode: sourcemap-codec x 445 ops/sec ±0.97% (92 runs sampled)
decode: source-map-0.6.1 x 36.01 ops/sec ±1.64% (49 runs sampled)
decode: source-map-0.8.0 x 367 ops/sec ±0.04% (95 runs sampled)
Fastest is decode: @jridgewell/sourcemap-codec

Encode Memory Usage:
@jridgewell/sourcemap-codec       1261620 bytes
sourcemap-codec                   9119248 bytes
source-map-0.6.1                  8968560 bytes
source-map-0.8.0                  8952952 bytes
Smallest memory usage is @jridgewell/sourcemap-codec

Encode speed:
encode: @jridgewell/sourcemap-codec x 738 ops/sec ±0.42% (98 runs sampled)
encode: sourcemap-codec x 238 ops/sec ±0.73% (88 runs sampled)
encode: source-map-0.6.1 x 162 ops/sec ±0.43% (84 runs sampled)
encode: source-map-0.8.0 x 191 ops/sec ±0.34% (90 runs sampled)
Fastest is encode: @jridgewell/sourcemap-codec


***


babel.min.js.map - 347793 segments

Decode Memory Usage:
@jridgewell/sourcemap-codec      35338184 bytes
sourcemap-codec                  35922736 bytes
source-map-0.6.1                 62366360 bytes
source-map-0.8.0                 44337416 bytes
Smallest memory usage is @jridgewell/sourcemap-codec

Decode speed:
decode: @jridgewell/sourcemap-codec x 40.35 ops/sec ±4.47% (54 runs sampled)
decode: sourcemap-codec x 36.76 ops/sec ±3.67% (51 runs sampled)
decode: source-map-0.6.1 x 4.44 ops/sec ±2.15% (16 runs sampled)
decode: source-map-0.8.0 x 59.35 ops/sec ±0.05% (78 runs sampled)
Fastest is decode: source-map-0.8.0

Encode Memory Usage:
@jridgewell/sourcemap-codec       7212604 bytes
sourcemap-codec                  21421456 bytes
source-map-0.6.1                 25286888 bytes
source-map-0.8.0                 25498744 bytes
Smallest memory usage is @jridgewell/sourcemap-codec

Encode speed:
encode: @jridgewell/sourcemap-codec x 112 ops/sec ±0.13% (84 runs sampled)
encode: sourcemap-codec x 30.23 ops/sec ±2.76% (53 runs sampled)
encode: source-map-0.6.1 x 19.43 ops/sec ±3.70% (37 runs sampled)
encode: source-map-0.8.0 x 19.40 ops/sec ±3.26% (37 runs sampled)
Fastest is encode: @jridgewell/sourcemap-codec


***


preact.js.map - 1992 segments

Decode Memory Usage:
@jridgewell/sourcemap-codec        500272 bytes
sourcemap-codec                    516864 bytes
source-map-0.6.1                  1596672 bytes
source-map-0.8.0                   517272 bytes
Smallest memory usage is @jridgewell/sourcemap-codec

Decode speed:
decode: @jridgewell/sourcemap-codec x 16,137 ops/sec ±0.17% (99 runs sampled)
decode: sourcemap-codec x 12,139 ops/sec ±0.13% (99 runs sampled)
decode: source-map-0.6.1 x 1,264 ops/sec ±0.12% (100 runs sampled)
decode: source-map-0.8.0 x 9,894 ops/sec ±0.08% (101 runs sampled)
Fastest is decode: @jridgewell/sourcemap-codec

Encode Memory Usage:
@jridgewell/sourcemap-codec        321026 bytes
sourcemap-codec                    830832 bytes
source-map-0.6.1                   586608 bytes
source-map-0.8.0                   586680 bytes
Smallest memory usage is @jridgewell/sourcemap-codec

Encode speed:
encode: @jridgewell/sourcemap-codec x 19,876 ops/sec ±0.78% (95 runs sampled)
encode: sourcemap-codec x 6,983 ops/sec ±0.15% (100 runs sampled)
encode: source-map-0.6.1 x 5,070 ops/sec ±0.12% (102 runs sampled)
encode: source-map-0.8.0 x 5,641 ops/sec ±0.17% (100 runs sampled)
Fastest is encode: @jridgewell/sourcemap-codec


***


react.js.map - 5726 segments

Decode Memory Usage:
@jridgewell/sourcemap-codec        734848 bytes
sourcemap-codec                    954200 bytes
source-map-0.6.1                  2276432 bytes
source-map-0.8.0                   955488 bytes
Smallest memory usage is @jridgewell/sourcemap-codec

Decode speed:
decode: @jridgewell/sourcemap-codec x 5,723 ops/sec ±0.12% (98 runs sampled)
decode: sourcemap-codec x 4,555 ops/sec ±0.09% (101 runs sampled)
decode: source-map-0.6.1 x 437 ops/sec ±0.11% (93 runs sampled)
decode: source-map-0.8.0 x 3,441 ops/sec ±0.15% (100 runs sampled)
Fastest is decode: @jridgewell/sourcemap-codec

Encode Memory Usage:
@jridgewell/sourcemap-codec        638672 bytes
sourcemap-codec                   1109840 bytes
source-map-0.6.1                  1321224 bytes
source-map-0.8.0                  1324448 bytes
Smallest memory usage is @jridgewell/sourcemap-codec

Encode speed:
encode: @jridgewell/sourcemap-codec x 6,801 ops/sec ±0.48% (98 runs sampled)
encode: sourcemap-codec x 2,533 ops/sec ±0.13% (101 runs sampled)
encode: source-map-0.6.1 x 2,248 ops/sec ±0.08% (100 runs sampled)
encode: source-map-0.8.0 x 2,303 ops/sec ±0.15% (100 runs sampled)
Fastest is encode: @jridgewell/sourcemap-codec

License

MIT