@pandacss/node 1.7.1 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +4 -126
  2. package/dist/index.mjs +3 -125
  3. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -386,131 +386,9 @@ var import_path4 = require("path");
386
386
 
387
387
  // src/codegen.ts
388
388
  init_cjs_shims();
389
-
390
- // ../../node_modules/.pnpm/p-limit@5.0.0/node_modules/p-limit/index.js
391
- init_cjs_shims();
392
-
393
- // ../../node_modules/.pnpm/yocto-queue@1.2.1/node_modules/yocto-queue/index.js
394
- init_cjs_shims();
395
- var Node = class {
396
- value;
397
- next;
398
- constructor(value) {
399
- this.value = value;
400
- }
401
- };
402
- var Queue = class {
403
- #head;
404
- #tail;
405
- #size;
406
- constructor() {
407
- this.clear();
408
- }
409
- enqueue(value) {
410
- const node = new Node(value);
411
- if (this.#head) {
412
- this.#tail.next = node;
413
- this.#tail = node;
414
- } else {
415
- this.#head = node;
416
- this.#tail = node;
417
- }
418
- this.#size++;
419
- }
420
- dequeue() {
421
- const current = this.#head;
422
- if (!current) {
423
- return;
424
- }
425
- this.#head = this.#head.next;
426
- this.#size--;
427
- return current.value;
428
- }
429
- peek() {
430
- if (!this.#head) {
431
- return;
432
- }
433
- return this.#head.value;
434
- }
435
- clear() {
436
- this.#head = void 0;
437
- this.#tail = void 0;
438
- this.#size = 0;
439
- }
440
- get size() {
441
- return this.#size;
442
- }
443
- *[Symbol.iterator]() {
444
- let current = this.#head;
445
- while (current) {
446
- yield current.value;
447
- current = current.next;
448
- }
449
- }
450
- *drain() {
451
- while (this.#head) {
452
- yield this.dequeue();
453
- }
454
- }
455
- };
456
-
457
- // ../../node_modules/.pnpm/p-limit@5.0.0/node_modules/p-limit/index.js
458
- var import_async_hooks = require("async_hooks");
459
- function pLimit(concurrency) {
460
- if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
461
- throw new TypeError("Expected `concurrency` to be a number from 1 and up");
462
- }
463
- const queue = new Queue();
464
- let activeCount = 0;
465
- const next = () => {
466
- activeCount--;
467
- if (queue.size > 0) {
468
- queue.dequeue()();
469
- }
470
- };
471
- const run = async (function_, resolve4, arguments_) => {
472
- activeCount++;
473
- const result = (async () => function_(...arguments_))();
474
- resolve4(result);
475
- try {
476
- await result;
477
- } catch {
478
- }
479
- next();
480
- };
481
- const enqueue = (function_, resolve4, arguments_) => {
482
- queue.enqueue(
483
- import_async_hooks.AsyncResource.bind(run.bind(void 0, function_, resolve4, arguments_))
484
- );
485
- (async () => {
486
- await Promise.resolve();
487
- if (activeCount < concurrency && queue.size > 0) {
488
- queue.dequeue()();
489
- }
490
- })();
491
- };
492
- const generator = (function_, ...arguments_) => new Promise((resolve4) => {
493
- enqueue(function_, resolve4, arguments_);
494
- });
495
- Object.defineProperties(generator, {
496
- activeCount: {
497
- get: () => activeCount
498
- },
499
- pendingCount: {
500
- get: () => queue.size
501
- },
502
- clearQueue: {
503
- value() {
504
- queue.clear();
505
- }
506
- }
507
- });
508
- return generator;
509
- }
510
-
511
- // src/codegen.ts
512
- var limit = pLimit(20);
513
389
  async function codegen(ctx, ids) {
390
+ const { default: pLimit } = await import("p-limit");
391
+ const limit = pLimit(20);
514
392
  if (ctx.config.clean) ctx.output.empty();
515
393
  let artifacts = ctx.getArtifacts(ids);
516
394
  if (ctx.hooks["codegen:prepare"]) {
@@ -2757,7 +2635,6 @@ var import_fs_extra2 = __toESM(require("fs-extra"));
2757
2635
  var import_look_it_up2 = require("look-it-up");
2758
2636
  var import_outdent2 = require("outdent");
2759
2637
  var import_path6 = require("path");
2760
- var import_package_manager_detector = require("package-manager-detector");
2761
2638
  var import_prettier = __toESM(require("prettier"));
2762
2639
  async function setupConfig(cwd, opts = {}) {
2763
2640
  const { force, outExtension, jsxFramework, syntax, outdir = "styled-system" } = opts;
@@ -2769,7 +2646,8 @@ async function setupConfig(cwd, opts = {}) {
2769
2646
  throw err;
2770
2647
  }
2771
2648
  }
2772
- const pmResult = await (0, import_package_manager_detector.detect)({ cwd });
2649
+ const { detect } = await import("package-manager-detector");
2650
+ const pmResult = await detect({ cwd });
2773
2651
  const pm = (pmResult?.agent ?? "npm").split("@")[0];
2774
2652
  const cmd = pm === "npm" ? "npm run" : pm;
2775
2653
  const isTs = (0, import_look_it_up2.lookItUpSync)("tsconfig.json", cwd);
package/dist/index.mjs CHANGED
@@ -362,131 +362,9 @@ import { normalize as normalize2, resolve as resolve3 } from "path";
362
362
 
363
363
  // src/codegen.ts
364
364
  init_esm_shims();
365
-
366
- // ../../node_modules/.pnpm/p-limit@5.0.0/node_modules/p-limit/index.js
367
- init_esm_shims();
368
-
369
- // ../../node_modules/.pnpm/yocto-queue@1.2.1/node_modules/yocto-queue/index.js
370
- init_esm_shims();
371
- var Node = class {
372
- value;
373
- next;
374
- constructor(value) {
375
- this.value = value;
376
- }
377
- };
378
- var Queue = class {
379
- #head;
380
- #tail;
381
- #size;
382
- constructor() {
383
- this.clear();
384
- }
385
- enqueue(value) {
386
- const node = new Node(value);
387
- if (this.#head) {
388
- this.#tail.next = node;
389
- this.#tail = node;
390
- } else {
391
- this.#head = node;
392
- this.#tail = node;
393
- }
394
- this.#size++;
395
- }
396
- dequeue() {
397
- const current = this.#head;
398
- if (!current) {
399
- return;
400
- }
401
- this.#head = this.#head.next;
402
- this.#size--;
403
- return current.value;
404
- }
405
- peek() {
406
- if (!this.#head) {
407
- return;
408
- }
409
- return this.#head.value;
410
- }
411
- clear() {
412
- this.#head = void 0;
413
- this.#tail = void 0;
414
- this.#size = 0;
415
- }
416
- get size() {
417
- return this.#size;
418
- }
419
- *[Symbol.iterator]() {
420
- let current = this.#head;
421
- while (current) {
422
- yield current.value;
423
- current = current.next;
424
- }
425
- }
426
- *drain() {
427
- while (this.#head) {
428
- yield this.dequeue();
429
- }
430
- }
431
- };
432
-
433
- // ../../node_modules/.pnpm/p-limit@5.0.0/node_modules/p-limit/index.js
434
- import { AsyncResource } from "async_hooks";
435
- function pLimit(concurrency) {
436
- if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
437
- throw new TypeError("Expected `concurrency` to be a number from 1 and up");
438
- }
439
- const queue = new Queue();
440
- let activeCount = 0;
441
- const next = () => {
442
- activeCount--;
443
- if (queue.size > 0) {
444
- queue.dequeue()();
445
- }
446
- };
447
- const run = async (function_, resolve4, arguments_) => {
448
- activeCount++;
449
- const result = (async () => function_(...arguments_))();
450
- resolve4(result);
451
- try {
452
- await result;
453
- } catch {
454
- }
455
- next();
456
- };
457
- const enqueue = (function_, resolve4, arguments_) => {
458
- queue.enqueue(
459
- AsyncResource.bind(run.bind(void 0, function_, resolve4, arguments_))
460
- );
461
- (async () => {
462
- await Promise.resolve();
463
- if (activeCount < concurrency && queue.size > 0) {
464
- queue.dequeue()();
465
- }
466
- })();
467
- };
468
- const generator = (function_, ...arguments_) => new Promise((resolve4) => {
469
- enqueue(function_, resolve4, arguments_);
470
- });
471
- Object.defineProperties(generator, {
472
- activeCount: {
473
- get: () => activeCount
474
- },
475
- pendingCount: {
476
- get: () => queue.size
477
- },
478
- clearQueue: {
479
- value() {
480
- queue.clear();
481
- }
482
- }
483
- });
484
- return generator;
485
- }
486
-
487
- // src/codegen.ts
488
- var limit = pLimit(20);
489
365
  async function codegen(ctx, ids) {
366
+ const { default: pLimit } = await import("p-limit");
367
+ const limit = pLimit(20);
490
368
  if (ctx.config.clean) ctx.output.empty();
491
369
  let artifacts = ctx.getArtifacts(ids);
492
370
  if (ctx.hooks["codegen:prepare"]) {
@@ -2733,7 +2611,6 @@ import fsExtra2 from "fs-extra";
2733
2611
  import { lookItUpSync as lookItUpSync2 } from "look-it-up";
2734
2612
  import { outdent as outdent2 } from "outdent";
2735
2613
  import { join as join3 } from "path";
2736
- import { detect } from "package-manager-detector";
2737
2614
  import prettier from "prettier";
2738
2615
  async function setupConfig(cwd, opts = {}) {
2739
2616
  const { force, outExtension, jsxFramework, syntax, outdir = "styled-system" } = opts;
@@ -2745,6 +2622,7 @@ async function setupConfig(cwd, opts = {}) {
2745
2622
  throw err;
2746
2623
  }
2747
2624
  }
2625
+ const { detect } = await import("package-manager-detector");
2748
2626
  const pmResult = await detect({ cwd });
2749
2627
  const pm = (pmResult?.agent ?? "npm").split("@")[0];
2750
2628
  const cmd = pm === "npm" ? "npm run" : pm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -43,6 +43,7 @@
43
43
  "look-it-up": "2.1.0",
44
44
  "outdent": " ^0.8.0",
45
45
  "package-manager-detector": "1.6.0",
46
+ "p-limit": "5.0.0",
46
47
  "perfect-debounce": "1.0.0",
47
48
  "pkg-types": "2.3.0",
48
49
  "picomatch": "4.0.3",
@@ -52,15 +53,15 @@
52
53
  "ts-morph": "27.0.2",
53
54
  "ts-pattern": "5.9.0",
54
55
  "tsconfck": "3.1.6",
55
- "@pandacss/config": "1.7.1",
56
- "@pandacss/core": "1.7.1",
57
- "@pandacss/generator": "1.7.1",
58
- "@pandacss/reporter": "1.7.1",
59
- "@pandacss/logger": "1.7.1",
60
- "@pandacss/parser": "1.7.1",
61
- "@pandacss/shared": "1.7.1",
62
- "@pandacss/token-dictionary": "1.7.1",
63
- "@pandacss/types": "1.7.1"
56
+ "@pandacss/config": "1.7.3",
57
+ "@pandacss/core": "1.7.3",
58
+ "@pandacss/generator": "1.7.3",
59
+ "@pandacss/reporter": "1.7.3",
60
+ "@pandacss/logger": "1.7.3",
61
+ "@pandacss/parser": "1.7.3",
62
+ "@pandacss/shared": "1.7.3",
63
+ "@pandacss/token-dictionary": "1.7.3",
64
+ "@pandacss/types": "1.7.3"
64
65
  },
65
66
  "devDependencies": {
66
67
  "@types/picomatch": "4.0.2",
@@ -69,8 +70,7 @@
69
70
  "@types/is-glob": "4.0.4",
70
71
  "@types/lodash.merge": "4.6.9",
71
72
  "@types/pluralize": "0.0.33",
72
- "boxen": "8.0.1",
73
- "p-limit": "5.0.0"
73
+ "boxen": "8.0.1"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "tsup --tsconfig tsconfig.build.json src/index.ts --format=cjs,esm --shims --dts",