Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arcgis/create

Package Overview
Dependencies
Maintainers
0
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcgis/create - npm Package Compare versions

Comparing version 4.31.0-next.44 to 4.31.0-next.45

2

dist/esm/init.js

@@ -1,2 +0,2 @@

import{Command as De}from"@commander-js/extra-typings";var V="4.31.0-next.44";var f=(p=>(p.VANILLA="vanilla JS",p.REACT="react",p.ANGULAR="angular",p.VITE="vite",p.VUE="vue",p.WEBPACK="webpack",p.LIT_COMPONENTS="lit-components",p))(f||{}),h=(o=>(o.CHARTS="charts",o.CODING="coding",o))(h||{});var D="github.com",U={"vanilla JS":"Esri/arcgis-maps-sdk-javascript-samples-beta",vite:"Esri/arcgis-maps-sdk-javascript-samples-beta",react:"Esri/arcgis-maps-sdk-javascript-samples-beta",angular:"Esri/arcgis-maps-sdk-javascript-samples-beta",vue:"Esri/arcgis-maps-sdk-javascript-samples-beta",webpack:"Esri/arcgis-maps-sdk-javascript-samples-beta","lit-components":"WebGIS/arcgis-web-components"},O={"vanilla JS":"packages/map-components/templates/vite",vite:"packages/map-components/templates/vite",react:"packages/map-components/templates/react",angular:"packages/map-components/templates/angular",vue:"packages/map-components/templates/vue",webpack:"packages/map-components/templates/webpack","lit-components":"packages/starter-packages/lit-components"},H={"vanilla JS":"APP_SAMPLE",vite:"APP_SAMPLE",react:"APP_SAMPLE",angular:"APP_SAMPLE",vue:"APP_SAMPLE",webpack:"APP_SAMPLE","lit-components":"CODE_SAMPLE"};import d from"fs/promises";import w from"path";import F from"process";import ue from"child_process";import{promisify as de}from"util";import ge from"normalize-package-data";async function k(e,t,o){let r=de(ue.exec),a=F.cwd();try{await d.mkdir(e)}catch(n){let s=typeof n=="string"?n:n.message;throw new Error(`could not create new directory in file system, details: ${s}`)}F.chdir(e);try{await r("git init"),await r(`git remote add origin ${t}`),await r("git config core.sparseCheckout true"),await r(`git sparse-checkout set --no-cone ${o}/*`),await r("git pull origin main")}catch(n){throw console.error(n),n}await fe(o,"."),await d.rm(".git",{recursive:!0}),F.chdir(a)}async function fe(e,t){if(!(e==="."||e===""||["./","/"].includes(e.split("/")[0])))try{let o=await d.readdir(e);for await(let a of o){let n=w.join(e,a),s=w.join(t,a);await d.rename(n,s)}let r=e.split("/")[0];await d.rm(r,{recursive:!0})}catch(o){console.error("Error:",o)}}async function E(e){let t=await d.readFile(w.join(e,"package.json"),"utf-8"),o=JSON.parse(t);return ge(o,a=>{console.error(a)}),o}async function A(e,t){await d.writeFile(w.join(e,"package.json"),JSON.stringify(t,null,2))}function W(e){return e.scripts?.start?"start":"dev"}function Y(e,t,o){let r="@arcgis/map-components",a=["react","angular"].some(s=>s===o);a&&(r=`@arcgis/map-components-${o.toLowerCase()}`);let n=e.dependencies[r];e.dependencies={...e.dependencies,...t.reduce((s,p)=>{let g=`@arcgis/${p}-components${a?`-${o.toLowerCase()}`:""}`;return{...s,[g]:n}},{})}}var K=e=>{let t={};return Object.keys(e).forEach(o=>{let r=o;if(e?.[r])switch(r){case"name":t.name=e.name;break;case"template":{let a=e.template?.toUpperCase().replace(/-/gu,"_")??"";if(!Object.keys(f).includes(a))throw new Error(`Invalid template: ${e.template}`);t.template=f[a];break}case"packages":{let a=e.packages?.replace(/\s/gu,"").split(",")??[];t.packages=a?.reduce((n,s)=>{if(!(s.toUpperCase()in h))throw new Error(`Invalid package: ${s}`);return n.push(h[s.toUpperCase()]),n},[]);break}case"host":t.host=e.host;break;default:throw Error(`Invalid option: ${r}`)}}),t};async function J(e){await d.stat(e)&&await d.rm(e,{recursive:!0})}function v(e,t){let o=U[e],r=D;return t.host&&(r=t.host),`https://${r}/${o}`}import{cancel as Le,outro as Be,multiselect as _e,group as $e,confirm as Ge}from"@clack/prompts";var z=(e=0)=>t=>`\x1B[${t+e}m`,q=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Q=(e=0)=>(t,o,r)=>`\x1B[${38+e};2;${t};${o};${r}m`,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},et=Object.keys(i.modifier),he=Object.keys(i.color),ye=Object.keys(i.bgColor),tt=[...he,...ye];function Te(){let e=new Map;for(let[t,o]of Object.entries(i)){for(let[r,a]of Object.entries(o))i[r]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},o[r]=i[r],e.set(a[0],a[1]);Object.defineProperty(i,t,{value:o,enumerable:!1})}return Object.defineProperty(i,"codes",{value:e,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi=z(),i.color.ansi256=q(),i.color.ansi16m=Q(),i.bgColor.ansi=z(10),i.bgColor.ansi256=q(10),i.bgColor.ansi16m=Q(10),Object.defineProperties(i,{rgbToAnsi256:{value(t,o,r){return t===o&&o===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(t){let o=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!o)return[0,0,0];let[r]=o;r.length===3&&(r=[...r].map(n=>n+n).join(""));let a=Number.parseInt(r,16);return[a>>16&255,a>>8&255,a&255]},enumerable:!1},hexToAnsi256:{value:t=>i.rgbToAnsi256(...i.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let o,r,a;if(t>=232)o=((t-232)*10+8)/255,r=o,a=o;else{t-=16;let p=t%36;o=Math.floor(t/36)/5,r=Math.floor(p/6)/5,a=p%6/5}let n=Math.max(o,r,a)*2;if(n===0)return 30;let s=30+(Math.round(a)<<2|Math.round(r)<<1|Math.round(o));return n===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,o,r)=>i.ansi256ToAnsi(i.rgbToAnsi256(t,o,r)),enumerable:!1},hexToAnsi:{value:t=>i.ansi256ToAnsi(i.hexToAnsi256(t)),enumerable:!1}}),i}var be=Te(),u=be;import L from"node:process";import Ce from"node:os";import X from"node:tty";function m(e,t=globalThis.Deno?globalThis.Deno.args:L.argv){let o=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(o+e),a=t.indexOf("--");return r!==-1&&(a===-1||r<a)}var{env:l}=L,x;m("no-color")||m("no-colors")||m("color=false")||m("color=never")?x=0:(m("color")||m("colors")||m("color=true")||m("color=always"))&&(x=1);function Pe(){if("FORCE_COLOR"in l)return l.FORCE_COLOR==="true"?1:l.FORCE_COLOR==="false"?0:l.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(l.FORCE_COLOR,10),3)}function Oe(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function we(e,{streamIsTTY:t,sniffFlags:o=!0}={}){let r=Pe();r!==void 0&&(x=r);let a=o?x:r;if(a===0)return 0;if(o){if(m("color=16m")||m("color=full")||m("color=truecolor"))return 3;if(m("color=256"))return 2}if("TF_BUILD"in l&&"AGENT_NAME"in l)return 1;if(e&&!t&&a===void 0)return 0;let n=a||0;if(l.TERM==="dumb")return n;if(L.platform==="win32"){let s=Ce.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in l)return"GITHUB_ACTIONS"in l||"GITEA_ACTIONS"in l?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in l)||l.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in l)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0;if(l.COLORTERM==="truecolor"||l.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in l){let s=Number.parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(l.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)||"COLORTERM"in l?1:n}function Z(e,t={}){let o=we(e,{streamIsTTY:e&&e.isTTY,...t});return Oe(o)}var ke={stdout:Z({isTTY:X.isatty(1)}),stderr:Z({isTTY:X.isatty(2)})},ee=ke;function te(e,t,o){let r=e.indexOf(t);if(r===-1)return e;let a=t.length,n=0,s="";do s+=e.slice(n,r)+t+o,n=r+a,r=e.indexOf(t,n);while(r!==-1);return s+=e.slice(n),s}function oe(e,t,o,r){let a=0,n="";do{let s=e[r-1]==="\r";n+=e.slice(a,s?r-1:r)+t+(s?`\r
import{Command as De}from"@commander-js/extra-typings";var V="4.31.0-next.45";var f=(p=>(p.VANILLA="vanilla JS",p.REACT="react",p.ANGULAR="angular",p.VITE="vite",p.VUE="vue",p.WEBPACK="webpack",p.LIT_COMPONENTS="lit-components",p))(f||{}),h=(o=>(o.CHARTS="charts",o.CODING="coding",o))(h||{});var D="github.com",U={"vanilla JS":"Esri/arcgis-maps-sdk-javascript-samples-beta",vite:"Esri/arcgis-maps-sdk-javascript-samples-beta",react:"Esri/arcgis-maps-sdk-javascript-samples-beta",angular:"Esri/arcgis-maps-sdk-javascript-samples-beta",vue:"Esri/arcgis-maps-sdk-javascript-samples-beta",webpack:"Esri/arcgis-maps-sdk-javascript-samples-beta","lit-components":"WebGIS/arcgis-web-components"},O={"vanilla JS":"packages/map-components/templates/vite",vite:"packages/map-components/templates/vite",react:"packages/map-components/templates/react",angular:"packages/map-components/templates/angular",vue:"packages/map-components/templates/vue",webpack:"packages/map-components/templates/webpack","lit-components":"packages/starter-packages/lit-components"},H={"vanilla JS":"APP_SAMPLE",vite:"APP_SAMPLE",react:"APP_SAMPLE",angular:"APP_SAMPLE",vue:"APP_SAMPLE",webpack:"APP_SAMPLE","lit-components":"CODE_SAMPLE"};import d from"fs/promises";import w from"path";import F from"process";import ue from"child_process";import{promisify as de}from"util";import ge from"normalize-package-data";async function k(e,t,o){let r=de(ue.exec),a=F.cwd();try{await d.mkdir(e)}catch(n){let s=typeof n=="string"?n:n.message;throw new Error(`could not create new directory in file system, details: ${s}`)}F.chdir(e);try{await r("git init"),await r(`git remote add origin ${t}`),await r("git config core.sparseCheckout true"),await r(`git sparse-checkout set --no-cone ${o}/*`),await r("git pull origin main")}catch(n){throw console.error(n),n}await fe(o,"."),await d.rm(".git",{recursive:!0}),F.chdir(a)}async function fe(e,t){if(!(e==="."||e===""||["./","/"].includes(e.split("/")[0])))try{let o=await d.readdir(e);for await(let a of o){let n=w.join(e,a),s=w.join(t,a);await d.rename(n,s)}let r=e.split("/")[0];await d.rm(r,{recursive:!0})}catch(o){console.error("Error:",o)}}async function E(e){let t=await d.readFile(w.join(e,"package.json"),"utf-8"),o=JSON.parse(t);return ge(o,a=>{console.error(a)}),o}async function A(e,t){await d.writeFile(w.join(e,"package.json"),JSON.stringify(t,null,2))}function W(e){return e.scripts?.start?"start":"dev"}function Y(e,t,o){let r="@arcgis/map-components",a=["react","angular"].some(s=>s===o);a&&(r=`@arcgis/map-components-${o.toLowerCase()}`);let n=e.dependencies[r];e.dependencies={...e.dependencies,...t.reduce((s,p)=>{let g=`@arcgis/${p}-components${a?`-${o.toLowerCase()}`:""}`;return{...s,[g]:n}},{})}}var K=e=>{let t={};return Object.keys(e).forEach(o=>{let r=o;if(e?.[r])switch(r){case"name":t.name=e.name;break;case"template":{let a=e.template?.toUpperCase().replace(/-/gu,"_")??"";if(!Object.keys(f).includes(a))throw new Error(`Invalid template: ${e.template}`);t.template=f[a];break}case"packages":{let a=e.packages?.replace(/\s/gu,"").split(",")??[];t.packages=a?.reduce((n,s)=>{if(!(s.toUpperCase()in h))throw new Error(`Invalid package: ${s}`);return n.push(h[s.toUpperCase()]),n},[]);break}case"host":t.host=e.host;break;default:throw Error(`Invalid option: ${r}`)}}),t};async function J(e){await d.stat(e)&&await d.rm(e,{recursive:!0})}function v(e,t){let o=U[e],r=D;return t.host&&(r=t.host),`https://${r}/${o}`}import{cancel as Le,outro as Be,multiselect as _e,group as $e,confirm as Ge}from"@clack/prompts";var z=(e=0)=>t=>`\x1B[${t+e}m`,q=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Q=(e=0)=>(t,o,r)=>`\x1B[${38+e};2;${t};${o};${r}m`,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},et=Object.keys(i.modifier),he=Object.keys(i.color),ye=Object.keys(i.bgColor),tt=[...he,...ye];function Te(){let e=new Map;for(let[t,o]of Object.entries(i)){for(let[r,a]of Object.entries(o))i[r]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},o[r]=i[r],e.set(a[0],a[1]);Object.defineProperty(i,t,{value:o,enumerable:!1})}return Object.defineProperty(i,"codes",{value:e,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi=z(),i.color.ansi256=q(),i.color.ansi16m=Q(),i.bgColor.ansi=z(10),i.bgColor.ansi256=q(10),i.bgColor.ansi16m=Q(10),Object.defineProperties(i,{rgbToAnsi256:{value(t,o,r){return t===o&&o===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(t){let o=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!o)return[0,0,0];let[r]=o;r.length===3&&(r=[...r].map(n=>n+n).join(""));let a=Number.parseInt(r,16);return[a>>16&255,a>>8&255,a&255]},enumerable:!1},hexToAnsi256:{value:t=>i.rgbToAnsi256(...i.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let o,r,a;if(t>=232)o=((t-232)*10+8)/255,r=o,a=o;else{t-=16;let p=t%36;o=Math.floor(t/36)/5,r=Math.floor(p/6)/5,a=p%6/5}let n=Math.max(o,r,a)*2;if(n===0)return 30;let s=30+(Math.round(a)<<2|Math.round(r)<<1|Math.round(o));return n===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,o,r)=>i.ansi256ToAnsi(i.rgbToAnsi256(t,o,r)),enumerable:!1},hexToAnsi:{value:t=>i.ansi256ToAnsi(i.hexToAnsi256(t)),enumerable:!1}}),i}var be=Te(),u=be;import L from"node:process";import Ce from"node:os";import X from"node:tty";function m(e,t=globalThis.Deno?globalThis.Deno.args:L.argv){let o=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(o+e),a=t.indexOf("--");return r!==-1&&(a===-1||r<a)}var{env:l}=L,x;m("no-color")||m("no-colors")||m("color=false")||m("color=never")?x=0:(m("color")||m("colors")||m("color=true")||m("color=always"))&&(x=1);function Pe(){if("FORCE_COLOR"in l)return l.FORCE_COLOR==="true"?1:l.FORCE_COLOR==="false"?0:l.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(l.FORCE_COLOR,10),3)}function Oe(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function we(e,{streamIsTTY:t,sniffFlags:o=!0}={}){let r=Pe();r!==void 0&&(x=r);let a=o?x:r;if(a===0)return 0;if(o){if(m("color=16m")||m("color=full")||m("color=truecolor"))return 3;if(m("color=256"))return 2}if("TF_BUILD"in l&&"AGENT_NAME"in l)return 1;if(e&&!t&&a===void 0)return 0;let n=a||0;if(l.TERM==="dumb")return n;if(L.platform==="win32"){let s=Ce.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in l)return"GITHUB_ACTIONS"in l||"GITEA_ACTIONS"in l?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in l)||l.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in l)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0;if(l.COLORTERM==="truecolor"||l.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in l){let s=Number.parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(l.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)||"COLORTERM"in l?1:n}function Z(e,t={}){let o=we(e,{streamIsTTY:e&&e.isTTY,...t});return Oe(o)}var ke={stdout:Z({isTTY:X.isatty(1)}),stderr:Z({isTTY:X.isatty(2)})},ee=ke;function te(e,t,o){let r=e.indexOf(t);if(r===-1)return e;let a=t.length,n=0,s="";do s+=e.slice(n,r)+t+o,n=r+a,r=e.indexOf(t,n);while(r!==-1);return s+=e.slice(n),s}function oe(e,t,o,r){let a=0,n="";do{let s=e[r-1]==="\r";n+=e.slice(a,s?r-1:r)+t+(s?`\r
`:`

@@ -3,0 +3,0 @@ `)+o,a=r+1,r=e.indexOf(`

{
"name": "@arcgis/create",
"version": "4.31.0-next.44",
"version": "4.31.0-next.45",
"description": "ArcGIS command line tool to create new web GIS projects and applications",

@@ -64,3 +64,3 @@ "keywords": [

},
"gitHead": "e5060b00c50d2c8f34a6ebec9f746dc82938154c"
"gitHead": "8fc1dd81c97a9dcfabe2fe8e49d1ef49a587b5ef"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc