prismic 1.7.1-pr.177.78e01fb → 1.7.2
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.
- package/dist/index.mjs +1 -1
- package/dist/package-fv3JT9Fa.mjs +1 -0
- package/dist/{segment-mIu1xH0S.mjs → segment-BUye5-zL.mjs} +1 -1
- package/dist/subprocesses/sendSegmentEvents.mjs +1 -1
- package/dist/subprocesses/updateVersionState.mjs +1 -1
- package/dist/{update-notifier-e3MOpNFk.mjs → update-notifier-Co6-YCDF.mjs} +1 -1
- package/package.json +1 -1
- package/dist/package-CpUEh5i_.mjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{C as e,E as t,O as n,S as r,T as i,_ as a,a as o,b as s,c,f as l,g as u,h as d,i as f,l as p,m,n as h,o as g,s as ee,t as _,u as v,v as y,w as b,y as te}from"./string-suKEaYgy.mjs";import{n as ne,t as re}from"./package-
|
|
2
|
+
import{C as e,E as t,O as n,S as r,T as i,_ as a,a as o,b as s,c,f as l,g as u,h as d,i as f,l as p,m,n as h,o as g,s as ee,t as _,u as v,v as y,w as b,y as te}from"./string-suKEaYgy.mjs";import{n as ne,t as re}from"./package-fv3JT9Fa.mjs";import{C as ie,D as ae,M as oe,O as x,S as se,T as ce,_ as S,a as C,f as le,g as ue,i as w,l as de,m as fe,n as T,o as E,p as pe,r as me,t as he,u as ge,v as D,w as O,x as _e,y as ve}from"./request-BX9m6W7p.mjs";import{a as ye,s as be}from"./packageJson-XOWTfdbI.mjs";import{r as xe,t as Se}from"./env-7YOoWh9b.mjs";import{a as Ce,c as we,i as k,n as Te,r as A,s as Ee,t as De}from"./auth-ZyLmjkK2.mjs";import{i as Oe,r as ke,t as Ae}from"./segment-BUye5-zL.mjs";import{t as je}from"./update-notifier-Co6-YCDF.mjs";import*as Me from"node:util";import{parseArgs as Ne,promisify as Pe}from"node:util";import{fileURLToPath as Fe,pathToFileURL as Ie}from"node:url";import{createHash as Le}from"node:crypto";import{dirname as Re,join as ze,posix as Be,sep as Ve}from"node:path";import{exec as He,execFile as Ue}from"node:child_process";import{Readable as We}from"node:stream";import{createInterface as Ge}from"node:readline";import*as Ke from"node:http";import*as j from"node:os";import{homedir as qe}from"node:os";import{setTimeout as Je}from"node:timers/promises";import{isMainThread as Ye,threadId as Xe}from"worker_threads";import*as Ze from"node:diagnostics_channel";import{subscribe as Qe}from"node:diagnostics_channel";import{createReadStream as $e,existsSync as et,readFile as tt,readFileSync as nt,readdir as rt}from"node:fs";import{Worker as it}from"node:worker_threads";import*as at from"node:https";import{createGzip as ot}from"node:zlib";import*as st from"node:net";import*as ct from"node:tls";import{AsyncLocalStorage as lt}from"node:async_hooks";function M(e,t){return async function(){let{positionals:n={},options:r={}}=e,i=e.name.split(` `).length,a=process.argv.slice(1+i),o=Object.keys(n).length>0,s=Ne({args:a,options:{...r,help:{type:`boolean`,short:`h`}},allowPositionals:o,strict:!0});if(s.values.help){console.info(ut(e));return}for(let[e,[t,r]]of Object.entries(n).entries())if(r.required&&!s.positionals[e])throw new P(`Missing required argument: <${t}>`);for(let[e,t]of Object.entries(r))if(t.required&&!(e in s.values))throw new P(`Missing required option: --${e}`);await t(s)}}function ut(e){let{description:t,sections:n,positionals:r={},options:i}=e,a=Object.keys(r),o=[_(t)];o.push(``),o.push(`USAGE`);let s=` ${e.name}`;if(a.length>0&&(s+=` `+a.map(e=>`<${e}>`).join(` `)),s+=` [options]`,o.push(s),a.length>0){o.push(``),o.push(`ARGUMENTS`);let e=[];for(let t in r){let n=r[t],i=n.description+(n.required?` (required)`:``);e.push([` <${t}>`,i])}o.push(h(e))}o.push(``),o.push(`OPTIONS`);let c=[];if(i){let e=Object.keys(i);for(let t of e){let e=i[t],n=`${e.short?`-${e.short}, `:` `}--${t}${e.type===`string`?` string`:``}`,r=e.description+(e.required?` (required)`:``);c.push({left:n,description:r})}}c.push({left:`-h, --help`,description:`Show help for command`});let l=c.map(e=>[` ${e.left}`,e.description]);if(o.push(h(l)),n)for(let e in n){let t=_(n[e]);o.push(``),o.push(e);for(let e of t.split(`
|
|
3
3
|
`))o.push(e?` ${e}`:``)}o.push(``),o.push(`LEARN MORE`);let u=e.name.split(` `)[0];return o.push(` Use \`${u} <command> --help\` for more information about a command.`),o.join(`
|
|
4
4
|
`)}function N(e){let t=e.name.split(` `).length;return async function(){let{positionals:[n]}=Ne({args:process.argv.slice(1+t),options:{help:{type:`boolean`,short:`h`}},allowPositionals:!0,strict:!1}),r=n?e.commands[n]:void 0;if(r){await r.handler();return}if(n)throw new P(`Unknown command: ${n}`);console.info(dt(e))}}function dt(e){let{name:t,description:n,sections:r,commands:i}=e,a=[n];a.push(``),a.push(`USAGE`),a.push(` ${t} <command> [options]`),a.push(``),a.push(`COMMANDS`);let o=Object.entries(i).map(([e,t])=>[` ${e}`,t.description]);if(a.push(h(o)),a.push(``),a.push(`OPTIONS`),a.push(` -h, --help Show help for command`),r)for(let e in r){let t=_(r[e]);a.push(``),a.push(e);for(let e of t.split(`
|
|
5
5
|
`))a.push(e?` ${e}`:``)}return a.push(``),a.push(`LEARN MORE`),a.push(` Use \`${t} <command> --help\` for more information about a command.`),a.join(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`prismic`,t=`1.7.2`;export{t as n,e as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./package-
|
|
1
|
+
import{n as e,t}from"./package-fv3JT9Fa.mjs";import{fileURLToPath as n}from"node:url";import{spawn as r}from"node:child_process";const i=[],a=[],o=crypto.randomUUID();let s;async function c(e){let{writeKey:t}=e;process.on(`exit`,()=>d({writeKey:t}))}function l(n){s=n.userId,a.push({userId:n.userId,anonymousId:o,integrations:{Intercom:{user_hash:n.intercomHash}},context:{app:{name:t,version:e}},timestamp:new Date().toISOString()})}function u(n,r={}){let{properties:a,groupId:c}=r;i.push({event:n,properties:{nodeVersion:process.versions.node,...a},context:{app:{name:t,version:e},groupId:c},userId:s,anonymousId:o,timestamp:new Date().toISOString()})}function d(e){let{writeKey:t}=e;if(!(i.length===0&&a.length===0)){try{let e=Buffer.from(JSON.stringify({trackEvents:i.map(e=>({...e,userId:e.userId||s})),identifyEvents:a,writeKey:t})).toString(`base64`),o=n(new URL(`./subprocesses/sendSegmentEvents.mjs`,import.meta.url));r(process.execPath,[o,e],{detached:!0,stdio:`ignore`}).unref()}catch{}i.length=0,a.length=0}}async function f(e,t,n){let r={"Content-Type":`application/json`,Authorization:`Basic ${btoa(n+`:`)}`};await Promise.allSettled([...e.map(e=>fetch(`https://api.segment.io/v1/track`,{method:`POST`,headers:r,body:JSON.stringify(e)}).catch(()=>{})),...t.map(e=>fetch(`https://api.segment.io/v1/identify`,{method:`POST`,headers:r,body:JSON.stringify(e)}).catch(()=>{}))])}export{l as i,f as n,u as r,c as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../segment-
|
|
1
|
+
import{n as e}from"../segment-BUye5-zL.mjs";const{trackEvents:t,identifyEvents:n,writeKey:r}=JSON.parse(Buffer.from(process.argv[2],`base64`).toString());try{await e(t,n,r)}catch{}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../packageJson-XOWTfdbI.mjs";import{n as e}from"../update-notifier-
|
|
1
|
+
import"../packageJson-XOWTfdbI.mjs";import{n as e}from"../update-notifier-Co6-YCDF.mjs";const[t,n]=process.argv.slice(2);try{await e(t,new URL(n))}catch{}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./package-
|
|
1
|
+
import{n as e}from"./package-fv3JT9Fa.mjs";import{C as t,M as n,O as r,T as i,o as a,x as o}from"./request-BX9m6W7p.mjs";import{i as s}from"./packageJson-XOWTfdbI.mjs";import{mkdir as c,readFile as l,writeFile as u}from"node:fs/promises";import{fileURLToPath as d}from"node:url";import{dirname as f}from"node:path";import{spawn as p}from"node:child_process";const m=o({latestKnownVersion:i(r()),lastUpdateCheckAt:i(t())});async function h(t){try{if(g())return;let n=await _(t.statePath),r=e;if(n?.latestKnownVersion&&v(n.latestKnownVersion,r)){let e=`Update available: ${r} → ${n.latestKnownVersion}. Run \`npx ${t.npmPackageName}@latest --version\` to update.`;process.on(`exit`,()=>{try{console.error(`\n${e}`)}catch{}})}(!n?.lastUpdateCheckAt||Date.now()-n.lastUpdateCheckAt>864e5)&&process.on(`exit`,()=>{b(t.npmPackageName,t.statePath)})}catch{}}function g(){return process.env.NO_UPDATE_NOTIFIER===`0`?!1:!!(process.env.NO_UPDATE_NOTIFIER===`1`||process.env.CI||!process.stderr.isTTY)}async function _(e){try{let t=await l(e,`utf-8`);return n(m,JSON.parse(t))}catch{return}}function v(e,t){if(e.includes(`-`)||t.includes(`-`))return!1;let n=e.split(`.`).map(Number),r=t.split(`.`).map(Number);if(n.length!==3||r.length!==3||n.some(e=>!Number.isFinite(e))||r.some(e=>!Number.isFinite(e)))return!1;for(let e=0;e<3;e++){if(n[e]>r[e])return!0;if(n[e]<r[e])return!1}return!1}async function y(e,t){let n=await s(e),r=d(t);await c(f(r),{recursive:!0}),await u(r,a({latestKnownVersion:n,lastUpdateCheckAt:Date.now()}))}function b(e,t){try{let n=d(new URL(`./subprocesses/updateVersionState.mjs`,import.meta.url));p(process.execPath,[n,e,t.href],{detached:!0,stdio:`ignore`}).unref()}catch{}}export{y as n,h as t};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`prismic`,t=`1.7.1-pr.177.78e01fb`;export{t as n,e as t};
|