@slicemachine/init 2.8.2-dev-next-release.3 → 2.8.2-dev-next-release.4
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/_node_modules/@babel/code-frame/lib/index.cjs +2 -2
- package/dist/_node_modules/@babel/code-frame/lib/index.js +2 -2
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +1 -1
- package/dist/_node_modules/@babel/highlight/lib/index.cjs +3 -3
- package/dist/_node_modules/@babel/highlight/lib/index.js +3 -3
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/index.js +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/index.js +1 -1
- package/dist/_node_modules/cross-spawn/index.cjs +1 -1
- package/dist/_node_modules/cross-spawn/index.js +1 -1
- package/dist/_node_modules/dir-glob/index.cjs +2 -2
- package/dist/_node_modules/dir-glob/index.js +2 -2
- package/dist/_node_modules/fast-glob/out/index.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/index.js +1 -1
- package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/managers/tasks.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/error.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +1 -1
- package/dist/_node_modules/fast-glob/out/readers/async.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/readers/async.js +1 -1
- package/dist/_node_modules/fast-glob/out/readers/reader.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/reader.js +2 -2
- package/dist/_node_modules/fast-glob/out/readers/stream.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/stream.js +2 -2
- package/dist/_node_modules/fast-glob/out/readers/sync.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/sync.js +2 -2
- package/dist/_node_modules/fast-glob/out/utils/index.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/utils/index.js +1 -1
- package/dist/_node_modules/get-stream/index.cjs +1 -1
- package/dist/_node_modules/get-stream/index.js +1 -1
- package/dist/_node_modules/hosted-git-info/git-host-info.cjs.map +1 -0
- package/dist/_node_modules/hosted-git-info/git-host-info.js.map +1 -0
- package/dist/_node_modules/hosted-git-info/git-host.cjs.map +1 -0
- package/dist/_node_modules/hosted-git-info/git-host.js.map +1 -0
- package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/hosted-git-info → hosted-git-info}/index.cjs +2 -2
- package/dist/_node_modules/hosted-git-info/index.cjs.map +1 -0
- package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/hosted-git-info → hosted-git-info}/index.js +2 -2
- package/dist/_node_modules/hosted-git-info/index.js.map +1 -0
- package/dist/_node_modules/js-tokens/index.cjs +1 -1
- package/dist/_node_modules/js-tokens/index.js +1 -1
- package/dist/_node_modules/lines-and-columns/build/index.cjs +1 -1
- package/dist/_node_modules/lines-and-columns/build/index.js +1 -1
- package/dist/_node_modules/map-obj/index.cjs +1 -1
- package/dist/_node_modules/map-obj/index.js +1 -1
- package/dist/_node_modules/meow/_node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/lru-cache/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/_node_modules/hosted-git-info/lib/git-host-info.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/_node_modules/hosted-git-info/lib/git-host-info.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/_node_modules/hosted-git-info/lib/git-host.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/_node_modules/hosted-git-info/lib/git-host.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/{hosted-git-info → normalize-package-data/_node_modules/hosted-git-info}/lib/index.cjs +2 -2
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/_node_modules/hosted-git-info/lib/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/{hosted-git-info → normalize-package-data/_node_modules/hosted-git-info}/lib/index.js +2 -2
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/_node_modules/hosted-git-info/lib/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/_node_modules/hosted-git-info/lib/parse-url.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/_node_modules/hosted-git-info/lib/parse-url.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.cjs +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.js +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +1 -1
- package/dist/_node_modules/parse-json/index.cjs +2 -2
- package/dist/_node_modules/parse-json/index.js +2 -2
- package/dist/_node_modules/path-key/index.cjs +1 -1
- package/dist/_node_modules/path-key/index.js +1 -1
- package/dist/_node_modules/path-type/index.cjs +1 -1
- package/dist/_node_modules/path-type/index.js +1 -1
- package/dist/_node_modules/signal-exit/index.cjs +1 -1
- package/dist/_node_modules/signal-exit/index.js +1 -1
- package/dist/_virtual/index10.cjs +2 -2
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.cjs +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index12.cjs +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.cjs +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index15.cjs +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.cjs +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index17.cjs +2 -2
- package/dist/_virtual/index17.js +2 -2
- package/dist/_virtual/index18.cjs +2 -2
- package/dist/_virtual/index18.js +2 -2
- package/dist/_virtual/index19.cjs +2 -2
- package/dist/_virtual/index19.js +2 -2
- package/dist/_virtual/index3.cjs +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.cjs +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.cjs +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.cjs +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.cjs +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/_virtual/index8.cjs +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.cjs +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/lib/prompt.cjs.map +1 -1
- package/dist/lib/prompt.js.map +1 -1
- package/dist/packages/init/package.json.cjs +8 -8
- package/dist/packages/init/package.json.js +8 -8
- package/package.json +8 -8
- package/src/lib/prompt.ts +2 -3
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/_node_modules/lru-cache/index.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js.map +0 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +0 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +0 -1
- /package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/hosted-git-info → hosted-git-info}/git-host-info.cjs +0 -0
- /package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/hosted-git-info → hosted-git-info}/git-host-info.js +0 -0
- /package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/hosted-git-info → hosted-git-info}/git-host.cjs +0 -0
- /package/dist/_node_modules/{meow/_node_modules/read-pkg/_node_modules/hosted-git-info → hosted-git-info}/git-host.js +0 -0
- /package/dist/_node_modules/meow/_node_modules/{hosted-git-info/_node_modules/lru-cache → lru-cache}/index.cjs +0 -0
- /package/dist/_node_modules/meow/_node_modules/{hosted-git-info/_node_modules/lru-cache → lru-cache}/index.js +0 -0
- /package/dist/_node_modules/meow/_node_modules/{hosted-git-info → normalize-package-data/_node_modules/hosted-git-info}/lib/git-host-info.cjs +0 -0
- /package/dist/_node_modules/meow/_node_modules/{hosted-git-info → normalize-package-data/_node_modules/hosted-git-info}/lib/git-host-info.js +0 -0
- /package/dist/_node_modules/meow/_node_modules/{hosted-git-info → normalize-package-data/_node_modules/hosted-git-info}/lib/git-host.cjs +0 -0
- /package/dist/_node_modules/meow/_node_modules/{hosted-git-info → normalize-package-data/_node_modules/hosted-git-info}/lib/git-host.js +0 -0
- /package/dist/_node_modules/meow/_node_modules/{hosted-git-info → normalize-package-data/_node_modules/hosted-git-info}/lib/parse-url.cjs +0 -0
- /package/dist/_node_modules/meow/_node_modules/{hosted-git-info → normalize-package-data/_node_modules/hosted-git-info}/lib/parse-url.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/meow/node_modules/normalize-package-data/node_modules/hosted-git-info/lib/index.js"],"sourcesContent":["'use strict'\nconst gitHosts = require('./git-host-info.js')\nconst GitHost = module.exports = require('./git-host.js')\nconst LRU = require('lru-cache')\nconst parseUrl = require('./parse-url.js')\n\nconst cache = new LRU({ max: 1000 })\n\nconst protocols = {\n 'git+ssh:': { name: 'sshurl' },\n 'ssh:': { name: 'sshurl' },\n 'git+https:': { name: 'https', auth: true },\n 'git:': { auth: true },\n 'http:': { auth: true },\n 'https:': { auth: true },\n 'git+http:': { auth: true },\n ...Object.keys(gitHosts.byShortcut).reduce((acc, key) => {\n acc[key] = { name: gitHosts.byShortcut[key] }\n return acc\n }, {}),\n}\n\nmodule.exports.fromUrl = function (giturl, opts) {\n if (typeof giturl !== 'string') {\n return\n }\n\n const key = giturl + JSON.stringify(opts || {})\n\n if (!cache.has(key)) {\n cache.set(key, fromUrl(giturl, opts))\n }\n\n return cache.get(key)\n}\n\nmodule.exports.parseUrl = parseUrl\n\nfunction fromUrl (giturl, opts) {\n if (!giturl) {\n return\n }\n\n const correctedUrl = isGitHubShorthand(giturl) ? `github:${giturl}` : giturl\n const parsed = parseUrl(correctedUrl, protocols)\n if (!parsed) {\n return\n }\n\n const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]\n const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith('www.')\n ? parsed.hostname.slice(4)\n : parsed.hostname]\n const gitHostName = gitHostShortcut || gitHostDomain\n if (!gitHostName) {\n return\n }\n\n const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]\n let auth = null\n if (protocols[parsed.protocol] &&\n protocols[parsed.protocol].auth &&\n (parsed.username || parsed.password)\n ) {\n auth = `${parsed.username}${parsed.password ? ':' + parsed.password : ''}`\n }\n\n let committish = null\n let user = null\n let project = null\n let defaultRepresentation = null\n\n try {\n if (gitHostShortcut) {\n let pathname = parsed.pathname.startsWith('/') ? parsed.pathname.slice(1) : parsed.pathname\n const firstAt = pathname.indexOf('@')\n // we ignore auth for shortcuts, so just trim it out\n if (firstAt > -1) {\n pathname = pathname.slice(firstAt + 1)\n }\n\n const lastSlash = pathname.lastIndexOf('/')\n if (lastSlash > -1) {\n user = decodeURIComponent(pathname.slice(0, lastSlash))\n // we want nulls only, never empty strings\n if (!user) {\n user = null\n }\n project = decodeURIComponent(pathname.slice(lastSlash + 1))\n } else {\n project = decodeURIComponent(pathname)\n }\n\n if (project.endsWith('.git')) {\n project = project.slice(0, -4)\n }\n\n if (parsed.hash) {\n committish = decodeURIComponent(parsed.hash.slice(1))\n }\n\n defaultRepresentation = 'shortcut'\n } else {\n if (!gitHostInfo.protocols.includes(parsed.protocol)) {\n return\n }\n\n const segments = gitHostInfo.extract(parsed)\n if (!segments) {\n return\n }\n\n user = segments.user && decodeURIComponent(segments.user)\n project = decodeURIComponent(segments.project)\n committish = decodeURIComponent(segments.committish)\n defaultRepresentation = (protocols[parsed.protocol] && protocols[parsed.protocol].name)\n || parsed.protocol.slice(0, -1)\n }\n } catch (err) {\n /* istanbul ignore else */\n if (err instanceof URIError) {\n return\n } else {\n throw err\n }\n }\n\n return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)\n}\n\n// look for github shorthand inputs, such as npm/cli\nconst isGitHubShorthand = (arg) => {\n // it cannot contain whitespace before the first #\n // it cannot start with a / because that's probably an absolute file path\n // but it must include a slash since repos are username/repository\n // it cannot start with a . because that's probably a relative file path\n // it cannot start with an @ because that's a scoped package if it passes the other tests\n // it cannot contain a : before a # because that tells us that there's a protocol\n // a second / may not exist before a #\n const firstHash = arg.indexOf('#')\n const firstSlash = arg.indexOf('/')\n const secondSlash = arg.indexOf('/', firstSlash + 1)\n const firstColon = arg.indexOf(':')\n const firstSpace = /\\s/.exec(arg)\n const firstAt = arg.indexOf('@')\n\n const spaceOnlyAfterHash = !firstSpace || (firstHash > -1 && firstSpace.index > firstHash)\n const atOnlyAfterHash = firstAt === -1 || (firstHash > -1 && firstAt > firstHash)\n const colonOnlyAfterHash = firstColon === -1 || (firstHash > -1 && firstColon > firstHash)\n const secondSlashOnlyAfterHash = secondSlash === -1 || (firstHash > -1 && secondSlash > firstHash)\n const hasSlash = firstSlash > 0\n // if a # is found, what we really want to know is that the character\n // immediately before # is not a /\n const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== '/' : !arg.endsWith('/')\n const doesNotStartWithDot = !arg.startsWith('.')\n\n return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash &&\n doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash &&\n secondSlashOnlyAfterHash\n}\n"],"names":["require$$0","libModule","require$$1","require$$2","require$$3","git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"parse-url.cjs","sources":["../../../../../../../../../../node_modules/meow/node_modules/normalize-package-data/node_modules/hosted-git-info/lib/parse-url.js"],"sourcesContent":["const url = require('url')\n\nconst lastIndexOfBefore = (str, char, beforeChar) => {\n const startPosition = str.indexOf(beforeChar)\n return str.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity)\n}\n\nconst safeUrl = (u) => {\n try {\n return new url.URL(u)\n } catch {\n // this fn should never throw\n }\n}\n\n// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg, protocols) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (Object.prototype.hasOwnProperty.call(protocols, proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return `${arg.slice(0, firstColon + 1)}//${arg.slice(firstColon + 1)}`\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n // ignore @ that come after the first hash since the denotes the start\n // of a committish which can contain @ characters\n const firstAt = lastIndexOfBefore(giturl, '@', '#')\n // ignore colons that come after the hash since that could include colons such as:\n // git@github.com:user/package-2#semver:^1.0.0\n const lastColonBeforeHash = lastIndexOfBefore(giturl, ':', '#')\n\n if (lastColonBeforeHash > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n giturl = giturl.slice(0, lastColonBeforeHash) + '/' + giturl.slice(lastColonBeforeHash + 1)\n }\n\n if (lastIndexOfBefore(giturl, ':', '#') === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n giturl = `git+ssh://${giturl}`\n }\n\n return giturl\n}\n\nmodule.exports = (giturl, protocols) => {\n const withProtocol = protocols ? correctProtocol(giturl, protocols) : giturl\n return safeUrl(withProtocol) || safeUrl(correctUrl(withProtocol))\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM;AAEZ,MAAM,oBAAoB,CAAC,KAAK,MAAM,eAAe;AACnD,QAAM,gBAAgB,IAAI,QAAQ,UAAU;AAC5C,SAAO,IAAI,YAAY,MAAM,gBAAgB,KAAK,gBAAgB,QAAQ;AAC5E;AAEA,MAAM,UAAU,CAAC,MAAM;AACrB,MAAI;AACF,WAAO,IAAI,IAAI,IAAI,CAAC;AAAA,EACxB,QAAI;AAAA,EAED;AACH;AAGA,MAAM,kBAAkB,CAAC,KAAK,cAAc;AAC1C,QAAM,aAAa,IAAI,QAAQ,GAAG;AAClC,QAAM,QAAQ,IAAI,MAAM,GAAG,aAAa,CAAC;AACzC,MAAI,OAAO,UAAU,eAAe,KAAK,WAAW,KAAK,GAAG;AAC1D,WAAO;AAAA,EACR;AAED,QAAM,UAAU,IAAI,QAAQ,GAAG;AAC/B,MAAI,UAAU,IAAI;AAChB,QAAI,UAAU,YAAY;AACxB,aAAO,aAAa;AAAA,IAC1B,OAAW;AACL,aAAO;AAAA,IACR;AAAA,EACF;AAED,QAAM,cAAc,IAAI,QAAQ,IAAI;AACpC,MAAI,gBAAgB,aAAa,GAAG;AAClC,WAAO;AAAA,EACR;AAED,SAAO,GAAG,IAAI,MAAM,GAAG,aAAa,CAAC,MAAM,IAAI,MAAM,aAAa,CAAC;AACrE;AAGA,MAAM,aAAa,CAAC,WAAW;AAG7B,QAAM,UAAU,kBAAkB,QAAQ,KAAK,GAAG;AAGlD,QAAM,sBAAsB,kBAAkB,QAAQ,KAAK,GAAG;AAE9D,MAAI,sBAAsB,SAAS;AAWjC,aAAS,OAAO,MAAM,GAAG,mBAAmB,IAAI,MAAM,OAAO,MAAM,sBAAsB,CAAC;AAAA,EAC3F;AAED,MAAI,kBAAkB,QAAQ,KAAK,GAAG,MAAM,MAAM,OAAO,QAAQ,IAAI,MAAM,IAAI;AAK7E,aAAS,aAAa;AAAA,EACvB;AAED,SAAO;AACT;AAEA,IAAA,WAAiB,CAAC,QAAQ,cAAc;AACtC,QAAM,eAAe,YAAY,gBAAgB,QAAQ,SAAS,IAAI;AACtE,SAAO,QAAQ,YAAY,KAAK,QAAQ,WAAW,YAAY,CAAC;AAClE;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-url.js","sources":["../../../../../../../../../../node_modules/meow/node_modules/normalize-package-data/node_modules/hosted-git-info/lib/parse-url.js"],"sourcesContent":["const url = require('url')\n\nconst lastIndexOfBefore = (str, char, beforeChar) => {\n const startPosition = str.indexOf(beforeChar)\n return str.lastIndexOf(char, startPosition > -1 ? startPosition : Infinity)\n}\n\nconst safeUrl = (u) => {\n try {\n return new url.URL(u)\n } catch {\n // this fn should never throw\n }\n}\n\n// accepts input like git:github.com:user/repo and inserts the // after the first :\nconst correctProtocol = (arg, protocols) => {\n const firstColon = arg.indexOf(':')\n const proto = arg.slice(0, firstColon + 1)\n if (Object.prototype.hasOwnProperty.call(protocols, proto)) {\n return arg\n }\n\n const firstAt = arg.indexOf('@')\n if (firstAt > -1) {\n if (firstAt > firstColon) {\n return `git+ssh://${arg}`\n } else {\n return arg\n }\n }\n\n const doubleSlash = arg.indexOf('//')\n if (doubleSlash === firstColon + 1) {\n return arg\n }\n\n return `${arg.slice(0, firstColon + 1)}//${arg.slice(firstColon + 1)}`\n}\n\n// attempt to correct an scp style url so that it will parse with `new URL()`\nconst correctUrl = (giturl) => {\n // ignore @ that come after the first hash since the denotes the start\n // of a committish which can contain @ characters\n const firstAt = lastIndexOfBefore(giturl, '@', '#')\n // ignore colons that come after the hash since that could include colons such as:\n // git@github.com:user/package-2#semver:^1.0.0\n const lastColonBeforeHash = lastIndexOfBefore(giturl, ':', '#')\n\n if (lastColonBeforeHash > firstAt) {\n // the last : comes after the first @ (or there is no @)\n // like it would in:\n // proto://hostname.com:user/repo\n // username@hostname.com:user/repo\n // :password@hostname.com:user/repo\n // username:password@hostname.com:user/repo\n // proto://username@hostname.com:user/repo\n // proto://:password@hostname.com:user/repo\n // proto://username:password@hostname.com:user/repo\n // then we replace the last : with a / to create a valid path\n giturl = giturl.slice(0, lastColonBeforeHash) + '/' + giturl.slice(lastColonBeforeHash + 1)\n }\n\n if (lastIndexOfBefore(giturl, ':', '#') === -1 && giturl.indexOf('//') === -1) {\n // we have no : at all\n // as it would be in:\n // username@hostname.com/user/repo\n // then we prepend a protocol\n giturl = `git+ssh://${giturl}`\n }\n\n return giturl\n}\n\nmodule.exports = (giturl, protocols) => {\n const withProtocol = protocols ? correctProtocol(giturl, protocols) : giturl\n return safeUrl(withProtocol) || safeUrl(correctUrl(withProtocol))\n}\n"],"names":[],"mappings":";AAAA,MAAM,MAAM;AAEZ,MAAM,oBAAoB,CAAC,KAAK,MAAM,eAAe;AACnD,QAAM,gBAAgB,IAAI,QAAQ,UAAU;AAC5C,SAAO,IAAI,YAAY,MAAM,gBAAgB,KAAK,gBAAgB,QAAQ;AAC5E;AAEA,MAAM,UAAU,CAAC,MAAM;AACrB,MAAI;AACF,WAAO,IAAI,IAAI,IAAI,CAAC;AAAA,EACxB,QAAI;AAAA,EAED;AACH;AAGA,MAAM,kBAAkB,CAAC,KAAK,cAAc;AAC1C,QAAM,aAAa,IAAI,QAAQ,GAAG;AAClC,QAAM,QAAQ,IAAI,MAAM,GAAG,aAAa,CAAC;AACzC,MAAI,OAAO,UAAU,eAAe,KAAK,WAAW,KAAK,GAAG;AAC1D,WAAO;AAAA,EACR;AAED,QAAM,UAAU,IAAI,QAAQ,GAAG;AAC/B,MAAI,UAAU,IAAI;AAChB,QAAI,UAAU,YAAY;AACxB,aAAO,aAAa;AAAA,IAC1B,OAAW;AACL,aAAO;AAAA,IACR;AAAA,EACF;AAED,QAAM,cAAc,IAAI,QAAQ,IAAI;AACpC,MAAI,gBAAgB,aAAa,GAAG;AAClC,WAAO;AAAA,EACR;AAED,SAAO,GAAG,IAAI,MAAM,GAAG,aAAa,CAAC,MAAM,IAAI,MAAM,aAAa,CAAC;AACrE;AAGA,MAAM,aAAa,CAAC,WAAW;AAG7B,QAAM,UAAU,kBAAkB,QAAQ,KAAK,GAAG;AAGlD,QAAM,sBAAsB,kBAAkB,QAAQ,KAAK,GAAG;AAE9D,MAAI,sBAAsB,SAAS;AAWjC,aAAS,OAAO,MAAM,GAAG,mBAAmB,IAAI,MAAM,OAAO,MAAM,sBAAsB,CAAC;AAAA,EAC3F;AAED,MAAI,kBAAkB,QAAQ,KAAK,GAAG,MAAM,MAAM,OAAO,QAAQ,IAAI,MAAM,IAAI;AAK7E,aAAS,aAAa;AAAA,EACvB;AAED,SAAO;AACT;AAEA,IAAA,WAAiB,CAAC,QAAQ,cAAc;AACtC,QAAM,eAAe,YAAY,gBAAgB,QAAQ,SAAS,IAAI;AACtE,SAAO,QAAQ,YAAY,KAAK,QAAQ,WAAW,YAAY,CAAC;AAClE;","x_google_ignoreList":[0]}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const require$$0 = require("semver/functions/valid");
|
|
4
4
|
const require$$1 = require("semver/functions/clean");
|
|
5
5
|
const index = require("../../../../validate-npm-package-license/index.cjs");
|
|
6
|
-
const index$1 = require(
|
|
6
|
+
const index$1 = require('./../_node_modules/hosted-git-info/lib/index.cjs');
|
|
7
7
|
const index$2 = require("../../../../is-core-module/index.cjs");
|
|
8
8
|
const extract_description = require("./extract_description.cjs");
|
|
9
9
|
const require$$0$1 = require("url");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import require$$0 from "semver/functions/valid";
|
|
2
2
|
import require$$1 from "semver/functions/clean";
|
|
3
3
|
import { v as validateNpmPackageLicense } from "../../../../validate-npm-package-license/index.js";
|
|
4
|
-
import { l as libExports } from
|
|
4
|
+
import { l as libExports } from './../_node_modules/hosted-git-info/lib/index.js';
|
|
5
5
|
import { i as isCoreModule } from "../../../../is-core-module/index.js";
|
|
6
6
|
import { e as extract_description } from "./extract_description.js";
|
|
7
7
|
import require$$0$1 from "url";
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const require$$0 = require("semver/functions/valid");
|
|
4
4
|
const require$$1 = require("semver/functions/clean");
|
|
5
5
|
const index = require("../../../../../../validate-npm-package-license/index.cjs");
|
|
6
|
-
const index$1 = require("
|
|
6
|
+
const index$1 = require("../../../../../../hosted-git-info/index.cjs");
|
|
7
7
|
const index$2 = require("../../../../../../is-core-module/index.cjs");
|
|
8
8
|
const extract_description = require("./extract_description.cjs");
|
|
9
9
|
const require$$0$1 = require("url");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import require$$0 from "semver/functions/valid";
|
|
2
2
|
import require$$1 from "semver/functions/clean";
|
|
3
3
|
import { v as validateNpmPackageLicense } from "../../../../../../validate-npm-package-license/index.js";
|
|
4
|
-
import { h as hostedGitInfoExports } from "
|
|
4
|
+
import { h as hostedGitInfoExports } from "../../../../../../hosted-git-info/index.js";
|
|
5
5
|
import { i as isCoreModule } from "../../../../../../is-core-module/index.js";
|
|
6
6
|
import { e as extract_description } from "./extract_description.js";
|
|
7
7
|
import require$$0$1 from "url";
|
|
@@ -4,8 +4,8 @@ const index = require("../error-ex/index.cjs");
|
|
|
4
4
|
const index$1 = require('./_node_modules/json-parse-even-better-errors/index.cjs');
|
|
5
5
|
require("../lines-and-columns/build/index.cjs");
|
|
6
6
|
require("../@babel/code-frame/lib/index.cjs");
|
|
7
|
-
const index$2 = require("../../_virtual/
|
|
8
|
-
const index$3 = require("../../_virtual/
|
|
7
|
+
const index$2 = require("../../_virtual/index10.cjs");
|
|
8
|
+
const index$3 = require("../../_virtual/index11.cjs");
|
|
9
9
|
const errorEx = index.errorEx_1;
|
|
10
10
|
const fallback = index$1.jsonParseEvenBetterErrors;
|
|
11
11
|
const { default: LinesAndColumns } = index$2.__exports;
|
|
@@ -3,8 +3,8 @@ import { e as errorEx_1 } from "../error-ex/index.js";
|
|
|
3
3
|
import { j as jsonParseEvenBetterErrors } from './_node_modules/json-parse-even-better-errors/index.js';
|
|
4
4
|
import "../lines-and-columns/build/index.js";
|
|
5
5
|
import "../@babel/code-frame/lib/index.js";
|
|
6
|
-
import { __exports as build } from "../../_virtual/
|
|
7
|
-
import { __exports as lib } from "../../_virtual/
|
|
6
|
+
import { __exports as build } from "../../_virtual/index10.js";
|
|
7
|
+
import { __exports as lib } from "../../_virtual/index11.js";
|
|
8
8
|
const errorEx = errorEx_1;
|
|
9
9
|
const fallback = jsonParseEvenBetterErrors;
|
|
10
10
|
const { default: LinesAndColumns } = build;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../_virtual/
|
|
3
|
+
const index = require("../../_virtual/index16.cjs");
|
|
4
4
|
const pathKey = (options = {}) => {
|
|
5
5
|
const environment = options.env || process.env;
|
|
6
6
|
const platform = options.platform || process.platform;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as pathKey$1 } from "../../_virtual/
|
|
1
|
+
import { __module as pathKey$1 } from "../../_virtual/index16.js";
|
|
2
2
|
const pathKey = (options = {}) => {
|
|
3
3
|
const environment = options.env || process.env;
|
|
4
4
|
const platform = options.platform || process.platform;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
|
|
3
|
-
const index = require("../../_virtual/
|
|
3
|
+
const index = require("../../_virtual/index8.cjs");
|
|
4
4
|
const require$$0 = require("assert");
|
|
5
5
|
const signals$1 = require("./signals.cjs");
|
|
6
6
|
const require$$2 = require("events");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal, getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
import { __module as signalExit } from "../../_virtual/
|
|
2
|
+
import { __module as signalExit } from "../../_virtual/index8.js";
|
|
3
3
|
import require$$0 from "assert";
|
|
4
4
|
import { __require as requireSignals } from "./signals.js";
|
|
5
5
|
import require$$2 from "events";
|
package/dist/_virtual/index10.js
CHANGED
package/dist/_virtual/index11.js
CHANGED
package/dist/_virtual/index12.js
CHANGED
package/dist/_virtual/index13.js
CHANGED
package/dist/_virtual/index15.js
CHANGED
package/dist/_virtual/index16.js
CHANGED
package/dist/_virtual/index17.js
CHANGED
package/dist/_virtual/index18.js
CHANGED
package/dist/_virtual/index19.js
CHANGED
package/dist/_virtual/index3.cjs
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.cjs
CHANGED
package/dist/_virtual/index4.js
CHANGED
package/dist/_virtual/index5.cjs
CHANGED
package/dist/_virtual/index5.js
CHANGED
package/dist/_virtual/index6.cjs
CHANGED
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.cjs
CHANGED
package/dist/_virtual/index7.js
CHANGED
package/dist/_virtual/index8.cjs
CHANGED
package/dist/_virtual/index8.js
CHANGED
package/dist/_virtual/index9.cjs
CHANGED
package/dist/_virtual/index9.js
CHANGED
package/dist/lib/prompt.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.cjs","sources":["../../../src/lib/prompt.ts"],"sourcesContent":["import prompts from \"prompts\";\n\ntype promptArgs<\n\tTValue = unknown,\n\tTProperty extends string = string,\n> = prompts.PromptObject<TProperty> & {\n\t// Method is available, cf. docs\n\tonRender?: (this: { msg: string; value?: TValue; initial?: TValue }) => void;\n};\n\nexport const prompt = async <TReturn, TProperty extends string = string>(\n\tquestion: promptArgs<TReturn, TProperty>,\n): Promise<Record<TProperty, TReturn>> => {\n\tconst answers: Record<TProperty, TReturn>
|
|
1
|
+
{"version":3,"file":"prompt.cjs","sources":["../../../src/lib/prompt.ts"],"sourcesContent":["import prompts from \"prompts\";\n\ntype promptArgs<\n\tTValue = unknown,\n\tTProperty extends string = string,\n> = prompts.PromptObject<TProperty> & {\n\t// Method is available, cf. docs\n\tonRender?: (this: { msg: string; value?: TValue; initial?: TValue }) => void;\n};\n\nexport const prompt = async <TReturn, TProperty extends string = string>(\n\tquestion: promptArgs<TReturn, TProperty>,\n): Promise<Record<TProperty, TReturn>> => {\n\tconst answers: Record<TProperty, TReturn> =\n\t\tawait prompts<TProperty>(question);\n\n\tif (!Object.keys(answers).length) {\n\t\tprocess.exit(130);\n\t}\n\n\t// Clear prompt line, clean recap are done manually\n\tprocess.stdout.moveCursor?.(0, -1);\n\tprocess.stdout.clearLine?.(1);\n\n\treturn answers;\n};\n"],"names":[],"mappings":";;;AAUa,MAAA,SAAS,OACrB,aACwC;;AAClC,QAAA,UACL,MAAM,QAAmB,QAAQ;AAElC,MAAI,CAAC,OAAO,KAAK,OAAO,EAAE,QAAQ;AACjC,YAAQ,KAAK,GAAG;AAAA,EAChB;AAGO,sBAAA,QAAO,eAAP,4BAAoB,GAAG;AACvB,sBAAA,QAAO,cAAP,4BAAmB;AAEpB,SAAA;AACR;;"}
|
package/dist/lib/prompt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sources":["../../../src/lib/prompt.ts"],"sourcesContent":["import prompts from \"prompts\";\n\ntype promptArgs<\n\tTValue = unknown,\n\tTProperty extends string = string,\n> = prompts.PromptObject<TProperty> & {\n\t// Method is available, cf. docs\n\tonRender?: (this: { msg: string; value?: TValue; initial?: TValue }) => void;\n};\n\nexport const prompt = async <TReturn, TProperty extends string = string>(\n\tquestion: promptArgs<TReturn, TProperty>,\n): Promise<Record<TProperty, TReturn>> => {\n\tconst answers: Record<TProperty, TReturn>
|
|
1
|
+
{"version":3,"file":"prompt.js","sources":["../../../src/lib/prompt.ts"],"sourcesContent":["import prompts from \"prompts\";\n\ntype promptArgs<\n\tTValue = unknown,\n\tTProperty extends string = string,\n> = prompts.PromptObject<TProperty> & {\n\t// Method is available, cf. docs\n\tonRender?: (this: { msg: string; value?: TValue; initial?: TValue }) => void;\n};\n\nexport const prompt = async <TReturn, TProperty extends string = string>(\n\tquestion: promptArgs<TReturn, TProperty>,\n): Promise<Record<TProperty, TReturn>> => {\n\tconst answers: Record<TProperty, TReturn> =\n\t\tawait prompts<TProperty>(question);\n\n\tif (!Object.keys(answers).length) {\n\t\tprocess.exit(130);\n\t}\n\n\t// Clear prompt line, clean recap are done manually\n\tprocess.stdout.moveCursor?.(0, -1);\n\tprocess.stdout.clearLine?.(1);\n\n\treturn answers;\n};\n"],"names":[],"mappings":";AAUa,MAAA,SAAS,OACrB,aACwC;;AAClC,QAAA,UACL,MAAM,QAAmB,QAAQ;AAElC,MAAI,CAAC,OAAO,KAAK,OAAO,EAAE,QAAQ;AACjC,YAAQ,KAAK,GAAG;AAAA,EAChB;AAGO,sBAAA,QAAO,eAAP,4BAAoB,GAAG;AACvB,sBAAA,QAAO,cAAP,4BAAmB;AAEpB,SAAA;AACR;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const name = "@slicemachine/init";
|
|
4
|
-
const version = "2.8.2-dev-next-release.
|
|
4
|
+
const version = "2.8.2-dev-next-release.4";
|
|
5
5
|
const description = "Init Prismic Slice Machine in your project";
|
|
6
6
|
const keywords = [
|
|
7
7
|
"typescript",
|
|
@@ -55,7 +55,7 @@ const dependencies = {
|
|
|
55
55
|
"@antfu/ni": "^0.20.0",
|
|
56
56
|
"@lihbr/listr-update-renderer": "^0.5.3",
|
|
57
57
|
"@sentry/node": "^7.70.0",
|
|
58
|
-
"@slicemachine/manager": "^0.15.1-dev-next-release.
|
|
58
|
+
"@slicemachine/manager": "^0.15.1-dev-next-release.4",
|
|
59
59
|
chalk: "^4.1.2",
|
|
60
60
|
giget: "^1.1.2",
|
|
61
61
|
globby: "^13.1.3",
|
|
@@ -68,7 +68,7 @@ const dependencies = {
|
|
|
68
68
|
};
|
|
69
69
|
const devDependencies = {
|
|
70
70
|
"@size-limit/preset-small-lib": "8.2.4",
|
|
71
|
-
"@slicemachine/plugin-kit": "0.4.22-dev-next-release.
|
|
71
|
+
"@slicemachine/plugin-kit": "0.4.22-dev-next-release.4",
|
|
72
72
|
"@types/listr": "0.14.4",
|
|
73
73
|
"@types/prompts": "2.4.3",
|
|
74
74
|
"@types/semver": "7.3.13",
|
|
@@ -77,8 +77,8 @@ const devDependencies = {
|
|
|
77
77
|
"@vitest/coverage-v8": "0.32.0",
|
|
78
78
|
depcheck: "1.4.3",
|
|
79
79
|
eslint: "8.37.0",
|
|
80
|
-
"eslint-config-prettier": "
|
|
81
|
-
"eslint-plugin-prettier": "
|
|
80
|
+
"eslint-config-prettier": "9.0.0",
|
|
81
|
+
"eslint-plugin-prettier": "5.0.1",
|
|
82
82
|
"eslint-plugin-tsdoc": "0.2.17",
|
|
83
83
|
execa: "7.1.1",
|
|
84
84
|
"hook-std": "3.0.0",
|
|
@@ -86,15 +86,15 @@ const devDependencies = {
|
|
|
86
86
|
"mock-stdin": "1.0.0",
|
|
87
87
|
msw: "1.1.0",
|
|
88
88
|
"parse-multipart-data": "1.5.0",
|
|
89
|
-
prettier: "
|
|
90
|
-
"prettier-plugin-jsdoc": "
|
|
89
|
+
prettier: "3.0.3",
|
|
90
|
+
"prettier-plugin-jsdoc": "1.1.1",
|
|
91
91
|
"size-limit": "8.2.4",
|
|
92
92
|
typescript: "4.9.5",
|
|
93
93
|
vite: "4.3.9",
|
|
94
94
|
"vite-plugin-sdk": "0.1.1",
|
|
95
95
|
vitest: "0.32.0"
|
|
96
96
|
};
|
|
97
|
-
const gitHead = "
|
|
97
|
+
const gitHead = "1444d3484bf7babe488259c26847aceb44a6b42a";
|
|
98
98
|
const pkg = {
|
|
99
99
|
name,
|
|
100
100
|
version,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@slicemachine/init";
|
|
2
|
-
const version = "2.8.2-dev-next-release.
|
|
2
|
+
const version = "2.8.2-dev-next-release.4";
|
|
3
3
|
const description = "Init Prismic Slice Machine in your project";
|
|
4
4
|
const keywords = [
|
|
5
5
|
"typescript",
|
|
@@ -53,7 +53,7 @@ const dependencies = {
|
|
|
53
53
|
"@antfu/ni": "^0.20.0",
|
|
54
54
|
"@lihbr/listr-update-renderer": "^0.5.3",
|
|
55
55
|
"@sentry/node": "^7.70.0",
|
|
56
|
-
"@slicemachine/manager": "^0.15.1-dev-next-release.
|
|
56
|
+
"@slicemachine/manager": "^0.15.1-dev-next-release.4",
|
|
57
57
|
chalk: "^4.1.2",
|
|
58
58
|
giget: "^1.1.2",
|
|
59
59
|
globby: "^13.1.3",
|
|
@@ -66,7 +66,7 @@ const dependencies = {
|
|
|
66
66
|
};
|
|
67
67
|
const devDependencies = {
|
|
68
68
|
"@size-limit/preset-small-lib": "8.2.4",
|
|
69
|
-
"@slicemachine/plugin-kit": "0.4.22-dev-next-release.
|
|
69
|
+
"@slicemachine/plugin-kit": "0.4.22-dev-next-release.4",
|
|
70
70
|
"@types/listr": "0.14.4",
|
|
71
71
|
"@types/prompts": "2.4.3",
|
|
72
72
|
"@types/semver": "7.3.13",
|
|
@@ -75,8 +75,8 @@ const devDependencies = {
|
|
|
75
75
|
"@vitest/coverage-v8": "0.32.0",
|
|
76
76
|
depcheck: "1.4.3",
|
|
77
77
|
eslint: "8.37.0",
|
|
78
|
-
"eslint-config-prettier": "
|
|
79
|
-
"eslint-plugin-prettier": "
|
|
78
|
+
"eslint-config-prettier": "9.0.0",
|
|
79
|
+
"eslint-plugin-prettier": "5.0.1",
|
|
80
80
|
"eslint-plugin-tsdoc": "0.2.17",
|
|
81
81
|
execa: "7.1.1",
|
|
82
82
|
"hook-std": "3.0.0",
|
|
@@ -84,15 +84,15 @@ const devDependencies = {
|
|
|
84
84
|
"mock-stdin": "1.0.0",
|
|
85
85
|
msw: "1.1.0",
|
|
86
86
|
"parse-multipart-data": "1.5.0",
|
|
87
|
-
prettier: "
|
|
88
|
-
"prettier-plugin-jsdoc": "
|
|
87
|
+
prettier: "3.0.3",
|
|
88
|
+
"prettier-plugin-jsdoc": "1.1.1",
|
|
89
89
|
"size-limit": "8.2.4",
|
|
90
90
|
typescript: "4.9.5",
|
|
91
91
|
vite: "4.3.9",
|
|
92
92
|
"vite-plugin-sdk": "0.1.1",
|
|
93
93
|
vitest: "0.32.0"
|
|
94
94
|
};
|
|
95
|
-
const gitHead = "
|
|
95
|
+
const gitHead = "1444d3484bf7babe488259c26847aceb44a6b42a";
|
|
96
96
|
const pkg = {
|
|
97
97
|
name,
|
|
98
98
|
version,
|