@fern-api/go-dynamic-snippets 0.0.7 → 0.0.9
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/cjs/DiscriminatedUnionTypeInstance.cjs +1 -0
- package/cjs/DiscriminatedUnionTypeInstance.d.cts +12 -0
- package/cjs/DynamicSnippetsGenerator.cjs +19 -0
- package/cjs/DynamicSnippetsGenerator.d.cts +20 -0
- package/cjs/DynamicSnippetsGeneratorContext-DuDerGxa.d.cts +143 -0
- package/cjs/EndpointSnippetGenerator.cjs +19 -0
- package/cjs/EndpointSnippetGenerator.d.cts +52 -0
- package/cjs/Result.cjs +1 -0
- package/cjs/Result.d.cts +23 -0
- package/cjs/Scope.cjs +1 -0
- package/cjs/Scope.d.cts +9 -0
- package/cjs/TypeInstance.cjs +1 -0
- package/cjs/TypeInstance.d.cts +15 -0
- package/cjs/context/DynamicSnippetsGeneratorContext.cjs +19 -0
- package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +7 -0
- package/cjs/context/DynamicTypeInstantiationMapper.cjs +19 -0
- package/cjs/context/DynamicTypeInstantiationMapper.d.cts +7 -0
- package/cjs/context/DynamicTypeMapper.cjs +19 -0
- package/cjs/context/DynamicTypeMapper.d.cts +7 -0
- package/cjs/context/ErrorReporter.cjs +1 -0
- package/cjs/context/ErrorReporter.d.cts +39 -0
- package/cjs/context/FilePropertyMapper.cjs +19 -0
- package/cjs/context/FilePropertyMapper.d.cts +7 -0
- package/cjs/index.cjs +19 -0
- package/{index.d.ts → cjs/index.d.cts} +1 -1
- package/esm/DiscriminatedUnionTypeInstance.d.ts +12 -0
- package/esm/DiscriminatedUnionTypeInstance.js +0 -0
- package/esm/DynamicSnippetsGenerator.d.ts +20 -0
- package/esm/DynamicSnippetsGenerator.js +1 -0
- package/esm/DynamicSnippetsGeneratorContext-DKWsHJSo.d.ts +143 -0
- package/esm/EndpointSnippetGenerator.d.ts +52 -0
- package/esm/EndpointSnippetGenerator.js +1 -0
- package/esm/Result.d.ts +23 -0
- package/esm/Result.js +1 -0
- package/esm/Scope.d.ts +9 -0
- package/esm/Scope.js +1 -0
- package/esm/TypeInstance.d.ts +15 -0
- package/esm/TypeInstance.js +0 -0
- package/esm/chunk-4PKXKUYU.js +1 -0
- package/esm/chunk-5XUC5IOB.js +1 -0
- package/esm/chunk-6JCPJA27.js +1 -0
- package/esm/chunk-BC35GX6S.js +1 -0
- package/esm/chunk-COBOWL3P.js +1 -0
- package/esm/chunk-IQODEXPX.js +1 -0
- package/esm/chunk-KJOW5AZT.js +1 -0
- package/esm/chunk-UVYC4FWB.js +1 -0
- package/esm/chunk-VAYOWHUI.js +19 -0
- package/esm/chunk-ZQRLKIRW.js +1 -0
- package/esm/chunk-ZYGZ4VN4.js +1 -0
- package/esm/context/DynamicSnippetsGeneratorContext.d.ts +7 -0
- package/esm/context/DynamicSnippetsGeneratorContext.js +1 -0
- package/esm/context/DynamicTypeInstantiationMapper.d.ts +7 -0
- package/esm/context/DynamicTypeInstantiationMapper.js +1 -0
- package/esm/context/DynamicTypeMapper.d.ts +7 -0
- package/esm/context/DynamicTypeMapper.js +1 -0
- package/esm/context/ErrorReporter.d.ts +39 -0
- package/esm/context/ErrorReporter.js +1 -0
- package/esm/context/FilePropertyMapper.d.ts +7 -0
- package/esm/context/FilePropertyMapper.js +1 -0
- package/esm/index.d.ts +8 -0
- package/esm/index.js +1 -0
- package/package.json +18 -6
- package/index.cjs +0 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../chunk-5XUC5IOB.js";import"../chunk-6JCPJA27.js";export{b as ErrorReporter,a as Severity};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '@fern-api/go-ast';
|
|
2
|
+
export { F as FilePropertyInfo, c as FilePropertyMapper } from '../DynamicSnippetsGeneratorContext-DKWsHJSo.js';
|
|
3
|
+
import '@fern-fern/ir-sdk/api';
|
|
4
|
+
import '@fern-api/browser-compatible-base-generator';
|
|
5
|
+
import '../TypeInstance.js';
|
|
6
|
+
import '../DiscriminatedUnionTypeInstance.js';
|
|
7
|
+
import './ErrorReporter.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-BC35GX6S.js";import"../chunk-VAYOWHUI.js";import"../chunk-5XUC5IOB.js";import"../chunk-6JCPJA27.js";export{a as FilePropertyMapper};
|
package/esm/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { DynamicSnippetsGenerator } from './DynamicSnippetsGenerator.js';
|
|
2
|
+
import '@fern-api/browser-compatible-base-generator';
|
|
3
|
+
import './DynamicSnippetsGeneratorContext-DKWsHJSo.js';
|
|
4
|
+
import '@fern-api/go-ast';
|
|
5
|
+
import '@fern-fern/ir-sdk/api';
|
|
6
|
+
import './TypeInstance.js';
|
|
7
|
+
import './DiscriminatedUnionTypeInstance.js';
|
|
8
|
+
import './context/ErrorReporter.js';
|
package/esm/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Nn}from"./chunk-4PKXKUYU.js";import"./chunk-KJOW5AZT.js";import"./chunk-COBOWL3P.js";import"./chunk-ZYGZ4VN4.js";import"./chunk-UVYC4FWB.js";import"./chunk-IQODEXPX.js";import"./chunk-ZQRLKIRW.js";import"./chunk-BC35GX6S.js";import"./chunk-VAYOWHUI.js";import"./chunk-5XUC5IOB.js";import{c as M,f as i,h as Gn}from"./chunk-6JCPJA27.js";var Yr=i(($a,zr)=>{"use strict";var Un="Function.prototype.bind called on incompatible ",_n=Object.prototype.toString,Cn=Math.max,Mn="[object Function]",Jr=function(r,e){for(var t=[],o=0;o<r.length;o+=1)t[o]=r[o];for(var a=0;a<e.length;a+=1)t[a+r.length]=e[a];return t},Wn=function(r,e){for(var t=[],o=e||0,a=0;o<r.length;o+=1,a+=1)t[a]=r[o];return t},kn=function(n,r){for(var e="",t=0;t<n.length;t+=1)e+=n[t],t+1<n.length&&(e+=r);return e};zr.exports=function(r){var e=this;if(typeof e!="function"||_n.apply(e)!==Mn)throw new TypeError(Un+e);for(var t=Wn(arguments,1),o,a=function(){if(this instanceof o){var l=e.apply(this,Jr(t,arguments));return Object(l)===l?l:this}return e.apply(r,Jr(t,arguments))},u=Cn(0,e.length-t.length),f=[],s=0;s<u;s++)f[s]="$"+s;if(o=Function("binder","return function ("+kn(f,",")+"){ return binder.apply(this,arguments); }")(a),e.prototype){var g=function(){};g.prototype=e.prototype,o.prototype=new g,g.prototype=null}return o}});var W=i((Oa,Xr)=>{"use strict";var Ln=Yr();Xr.exports=Function.prototype.bind||Ln});var Zr=i((Ia,Qr)=>{"use strict";Qr.exports=Error});var re=i((Ea,Vr)=>{"use strict";Vr.exports=EvalError});var te=i((Fa,ee)=>{"use strict";ee.exports=RangeError});var oe=i((ja,ne)=>{"use strict";ne.exports=ReferenceError});var fr=i((Ta,ie)=>{"use strict";ie.exports=SyntaxError});var b=i((Ra,ae)=>{"use strict";ae.exports=TypeError});var se=i((Ba,ue)=>{"use strict";ue.exports=URIError});var lr=i((Da,pe)=>{"use strict";pe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},e=Symbol("test"),t=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var o=42;r[e]=o;for(e in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(r,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(r,e);if(u.value!==o||u.enumerable!==!0)return!1}return!0}});var yr=i((Ga,le)=>{"use strict";var fe=typeof Symbol!="undefined"&&Symbol,Kn=lr();le.exports=function(){return typeof fe!="function"||typeof Symbol!="function"||typeof fe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Kn()}});var ce=i((Na,ye)=>{"use strict";var cr={__proto__:null,foo:{}},Hn=Object;ye.exports=function(){return{__proto__:cr}.foo===cr.foo&&!(cr instanceof Hn)}});var ge=i((Ua,ve)=>{"use strict";var Jn=Function.prototype.call,zn=Object.prototype.hasOwnProperty,Yn=W();ve.exports=Yn.call(Jn,zn)});var h=i((_a,Se)=>{"use strict";var p,Xn=Zr(),Qn=re(),Zn=te(),Vn=oe(),j=fr(),F=b(),ro=se(),me=Function,vr=function(n){try{return me('"use strict"; return ('+n+").constructor;")()}catch(r){}},$=Object.getOwnPropertyDescriptor;if($)try{$({},"")}catch(n){$=null}var gr=function(){throw new F},eo=$?function(){try{return arguments.callee,gr}catch(n){try{return $(arguments,"callee").get}catch(r){return gr}}}():gr,I=yr()(),to=ce()(),v=Object.getPrototypeOf||(to?function(n){return n.__proto__}:null),E={},no=typeof Uint8Array=="undefined"||!v?p:v(Uint8Array),O={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?p:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?p:ArrayBuffer,"%ArrayIteratorPrototype%":I&&v?v([][Symbol.iterator]()):p,"%AsyncFromSyncIteratorPrototype%":p,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics=="undefined"?p:Atomics,"%BigInt%":typeof BigInt=="undefined"?p:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?p:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?p:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?p:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Xn,"%eval%":eval,"%EvalError%":Qn,"%Float32Array%":typeof Float32Array=="undefined"?p:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?p:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?p:FinalizationRegistry,"%Function%":me,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array=="undefined"?p:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?p:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?p:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":I&&v?v(v([][Symbol.iterator]())):p,"%JSON%":typeof JSON=="object"?JSON:p,"%Map%":typeof Map=="undefined"?p:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!I||!v?p:v(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?p:Promise,"%Proxy%":typeof Proxy=="undefined"?p:Proxy,"%RangeError%":Zn,"%ReferenceError%":Vn,"%Reflect%":typeof Reflect=="undefined"?p:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?p:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!I||!v?p:v(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?p:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":I&&v?v(""[Symbol.iterator]()):p,"%Symbol%":I?Symbol:p,"%SyntaxError%":j,"%ThrowTypeError%":eo,"%TypedArray%":no,"%TypeError%":F,"%Uint8Array%":typeof Uint8Array=="undefined"?p:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?p:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?p:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?p:Uint32Array,"%URIError%":ro,"%WeakMap%":typeof WeakMap=="undefined"?p:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?p:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?p:WeakSet};if(v)try{null.error}catch(n){be=v(v(n)),O["%Error.prototype%"]=be}var be,oo=function n(r){var e;if(r==="%AsyncFunction%")e=vr("async function () {}");else if(r==="%GeneratorFunction%")e=vr("function* () {}");else if(r==="%AsyncGeneratorFunction%")e=vr("async function* () {}");else if(r==="%AsyncGenerator%"){var t=n("%AsyncGeneratorFunction%");t&&(e=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=n("%AsyncGenerator%");o&&v&&(e=v(o.prototype))}return O[r]=e,e},de={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=W(),k=ge(),io=D.call(Function.call,Array.prototype.concat),ao=D.call(Function.apply,Array.prototype.splice),he=D.call(Function.call,String.prototype.replace),L=D.call(Function.call,String.prototype.slice),uo=D.call(Function.call,RegExp.prototype.exec),so=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,po=/\\(\\)?/g,fo=function(r){var e=L(r,0,1),t=L(r,-1);if(e==="%"&&t!=="%")throw new j("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&e!=="%")throw new j("invalid intrinsic syntax, expected opening `%`");var o=[];return he(r,so,function(a,u,f,s){o[o.length]=f?he(s,po,"$1"):u||a}),o},lo=function(r,e){var t=r,o;if(k(de,t)&&(o=de[t],t="%"+o[0]+"%"),k(O,t)){var a=O[t];if(a===E&&(a=oo(t)),typeof a=="undefined"&&!e)throw new F("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:t,value:a}}throw new j("intrinsic "+r+" does not exist!")};Se.exports=function(r,e){if(typeof r!="string"||r.length===0)throw new F("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new F('"allowMissing" argument must be a boolean');if(uo(/^%?[^%]*%?$/,r)===null)throw new j("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=fo(r),o=t.length>0?t[0]:"",a=lo("%"+o+"%",e),u=a.name,f=a.value,s=!1,g=a.alias;g&&(o=g[0],ao(t,io([0,1],g)));for(var l=1,y=!0;l<t.length;l+=1){var c=t[l],m=L(c,0,1),A=L(c,-1);if((m==='"'||m==="'"||m==="`"||A==='"'||A==="'"||A==="`")&&m!==A)throw new j("property names with quotes must have matching quotes");if((c==="constructor"||!y)&&(s=!0),o+="."+c,u="%"+o+"%",k(O,u))f=O[u];else if(f!=null){if(!(c in f)){if(!e)throw new F("base intrinsic for "+r+" exists, but the property is not available.");return}if($&&l+1>=t.length){var d=$(f,c);y=!!d,y&&"get"in d&&!("originalValue"in d.get)?f=d.get:f=f[c]}else y=k(f,c),f=f[c];y&&!s&&(O[u]=f)}}return f}});var H=i((Ca,Ae)=>{"use strict";var yo=h(),K=yo("%Object.defineProperty%",!0)||!1;if(K)try{K({},"a",{value:1})}catch(n){K=!1}Ae.exports=K});var br=i((Ma,we)=>{"use strict";var co=h(),J=co("%Object.getOwnPropertyDescriptor%",!0);if(J)try{J([],"length")}catch(n){J=null}we.exports=J});var dr=i((Wa,Pe)=>{"use strict";var qe=H(),vo=fr(),T=b(),xe=br();Pe.exports=function(r,e,t){if(!r||typeof r!="object"&&typeof r!="function")throw new T("`obj` must be an object or a function`");if(typeof e!="string"&&typeof e!="symbol")throw new T("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new T("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new T("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new T("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new T("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,s=!!xe&&xe(r,e);if(qe)qe(r,e,{configurable:u===null&&s?s.configurable:!u,enumerable:o===null&&s?s.enumerable:!o,value:t,writable:a===null&&s?s.writable:!a});else if(f||!o&&!a&&!u)r[e]=t;else throw new vo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var mr=i((ka,Oe)=>{"use strict";var hr=H(),$e=function(){return!!hr};$e.hasArrayLengthDefineBug=function(){if(!hr)return null;try{return hr([],"length",{value:1}).length!==1}catch(r){return!0}};Oe.exports=$e});var Te=i((La,je)=>{"use strict";var go=h(),Ie=dr(),bo=mr()(),Ee=br(),Fe=b(),ho=go("%Math.floor%");je.exports=function(r,e){if(typeof r!="function")throw new Fe("`fn` is not a function");if(typeof e!="number"||e<0||e>4294967295||ho(e)!==e)throw new Fe("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in r&&Ee){var u=Ee(r,"length");u&&!u.configurable&&(o=!1),u&&!u.writable&&(a=!1)}return(o||a||!t)&&(bo?Ie(r,"length",e,!0,!0):Ie(r,"length",e)),r}});var X=i((Ka,z)=>{"use strict";var Sr=W(),Y=h(),mo=Te(),So=b(),De=Y("%Function.prototype.apply%"),Ge=Y("%Function.prototype.call%"),Ne=Y("%Reflect.apply%",!0)||Sr.call(Ge,De),Re=H(),Ao=Y("%Math.max%");z.exports=function(r){if(typeof r!="function")throw new So("a function is required");var e=Ne(Sr,Ge,arguments);return mo(e,1+Ao(0,r.length-(arguments.length-1)),!0)};var Be=function(){return Ne(Sr,De,arguments)};Re?Re(z.exports,"apply",{value:Be}):z.exports.apply=Be});var Ar=i((Ha,_e)=>{"use strict";var Ue=Object.prototype.toString;_e.exports=function(r){var e=Ue.call(r),t=e==="[object Arguments]";return t||(t=e!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&Ue.call(r.callee)==="[object Function]"),t}});var ze=i((Ja,Je)=>{"use strict";var He;Object.keys||(G=Object.prototype.hasOwnProperty,wr=Object.prototype.toString,Ce=Ar(),qr=Object.prototype.propertyIsEnumerable,Me=!qr.call({toString:null},"toString"),We=qr.call(function(){},"prototype"),N=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Q=function(n){var r=n.constructor;return r&&r.prototype===n},ke={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Le=function(){if(typeof window=="undefined")return!1;for(var n in window)try{if(!ke["$"+n]&&G.call(window,n)&&window[n]!==null&&typeof window[n]=="object")try{Q(window[n])}catch(r){return!0}}catch(r){return!0}return!1}(),Ke=function(n){if(typeof window=="undefined"||!Le)return Q(n);try{return Q(n)}catch(r){return!1}},He=function(r){var e=r!==null&&typeof r=="object",t=wr.call(r)==="[object Function]",o=Ce(r),a=e&&wr.call(r)==="[object String]",u=[];if(!e&&!t&&!o)throw new TypeError("Object.keys called on a non-object");var f=We&&t;if(a&&r.length>0&&!G.call(r,0))for(var s=0;s<r.length;++s)u.push(String(s));if(o&&r.length>0)for(var g=0;g<r.length;++g)u.push(String(g));else for(var l in r)!(f&&l==="prototype")&&G.call(r,l)&&u.push(String(l));if(Me)for(var y=Ke(r),c=0;c<N.length;++c)!(y&&N[c]==="constructor")&&G.call(r,N[c])&&u.push(N[c]);return u});var G,wr,Ce,qr,Me,We,N,Q,ke,Le,Ke;Je.exports=He});var Ze=i((za,Qe)=>{"use strict";var wo=Array.prototype.slice,qo=Ar(),Ye=Object.keys,Z=Ye?function(r){return Ye(r)}:ze(),Xe=Object.keys;Z.shim=function(){if(Object.keys){var r=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);r||(Object.keys=function(t){return qo(t)?Xe(wo.call(t)):Xe(t)})}else Object.keys=Z;return Object.keys||Z};Qe.exports=Z});var U=i((Ya,tt)=>{"use strict";var xo=Ze(),Po=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",$o=Object.prototype.toString,Oo=Array.prototype.concat,Ve=dr(),Io=function(n){return typeof n=="function"&&$o.call(n)==="[object Function]"},rt=mr()(),Eo=function(n,r,e,t){if(r in n){if(t===!0){if(n[r]===e)return}else if(!Io(t)||!t())return}rt?Ve(n,r,e,!0):Ve(n,r,e)},et=function(n,r){var e=arguments.length>2?arguments[2]:{},t=xo(r);Po&&(t=Oo.call(t,Object.getOwnPropertySymbols(r)));for(var o=0;o<t.length;o+=1)Eo(n,t[o],r[t[o]],e[t[o]])};et.supportsDescriptors=!!rt;tt.exports=et});var S=i((Xa,it)=>{"use strict";var nt=h(),ot=X(),Fo=ot(nt("String.prototype.indexOf"));it.exports=function(r,e){var t=nt(r,!!e);return typeof t=="function"&&Fo(r,".prototype.")>-1?ot(t):t}});var st=i((Qa,ut)=>{"use strict";var jo=h(),at=jo("%Array%"),To=!at.isArray&&S()("Object.prototype.toString");ut.exports=at.isArray||function(r){return To(r)==="[object Array]"}});var xr=i((Za,pt)=>{"use strict";pt.exports=st()});var lt=i((Va,ft)=>{"use strict";var Ro=h(),Bo=S(),Do=b(),Go=xr(),No=Ro("%Reflect.apply%",!0)||Bo("Function.prototype.apply");ft.exports=function(r,e){var t=arguments.length>2?arguments[2]:[];if(!Go(t))throw new Do("Assertion failed: optional `argumentsList`, if provided, must be a List");return No(r,e,t)}});var V=i((ru,yt)=>{"use strict";yt.exports=function(r){return typeof r=="string"||typeof r=="symbol"}});var vt=i((eu,ct)=>{"use strict";var Uo=b(),_o=M("object-inspect"),Co=V();ct.exports=function(r,e){if(!Co(e))throw new Uo("Assertion failed: IsPropertyKey(P) is not true, got "+_o(e));return r[e]}});var ht=i((tu,dt)=>{"use strict";var bt=Function.prototype.toString,R=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,$r,rr;if(typeof R=="function"&&typeof Object.defineProperty=="function")try{$r=Object.defineProperty({},"length",{get:function(){throw rr}}),rr={},R(function(){throw 42},null,$r)}catch(n){n!==rr&&(R=null)}else R=null;var Mo=/^\s*class\b/,Or=function(r){try{var e=bt.call(r);return Mo.test(e)}catch(t){return!1}},Pr=function(r){try{return Or(r)?!1:(bt.call(r),!0)}catch(e){return!1}},er=Object.prototype.toString,Wo="[object Object]",ko="[object Function]",Lo="[object GeneratorFunction]",Ko="[object HTMLAllCollection]",Ho="[object HTML document.all class]",Jo="[object HTMLCollection]",zo=typeof Symbol=="function"&&!!Symbol.toStringTag,Yo=!(0 in[,]),Ir=function(){return!1};typeof document=="object"&&(gt=document.all,er.call(gt)===er.call(document.all)&&(Ir=function(r){if((Yo||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var e=er.call(r);return(e===Ko||e===Ho||e===Jo||e===Wo)&&r("")==null}catch(t){}return!1}));var gt;dt.exports=R?function(r){if(Ir(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{R(r,null,$r)}catch(e){if(e!==rr)return!1}return!Or(r)&&Pr(r)}:function(r){if(Ir(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(zo)return Pr(r);if(Or(r))return!1;var e=er.call(r);return e!==ko&&e!==Lo&&!/^\[object HTML/.test(e)?!1:Pr(r)}});var Er=i((nu,mt)=>{"use strict";mt.exports=ht()});var qt=i((ou,wt)=>{"use strict";var St=b(),Xo=vt(),Qo=Er(),Zo=V(),At=M("object-inspect");wt.exports=function(r,e){if(!Zo(e))throw new St("Assertion failed: IsPropertyKey(P) is not true");var t=Xo(r,e);if(t!=null){if(!Qo(t))throw new St(At(e)+" is not a function: "+At(t));return t}}});var Pt=i((iu,xt)=>{"use strict";var Vo=lr();xt.exports=function(){return Vo()&&!!Symbol.toStringTag}});var Rr=i((au,Et)=>{"use strict";var Fr=S(),$t=Pt()(),Ot,It,jr,Tr;$t&&(Ot=Fr("Object.prototype.hasOwnProperty"),It=Fr("RegExp.prototype.exec"),jr={},tr=function(){throw jr},Tr={toString:tr,valueOf:tr},typeof Symbol.toPrimitive=="symbol"&&(Tr[Symbol.toPrimitive]=tr));var tr,ri=Fr("Object.prototype.toString"),ei=Object.getOwnPropertyDescriptor,ti="[object RegExp]";Et.exports=$t?function(r){if(!r||typeof r!="object")return!1;var e=ei(r,"lastIndex"),t=e&&Ot(e,"value");if(!t)return!1;try{It(r,Tr)}catch(o){return o===jr}}:function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:ri(r)===ti}});var Br=i((uu,Ft)=>{"use strict";var ni=S(),oi=Rr(),ii=ni("RegExp.prototype.exec"),ai=b();Ft.exports=function(r){if(!oi(r))throw new ai("`regex` must be a RegExp");return function(t){return ii(r,t)!==null}}});var Tt=i((su,jt)=>{"use strict";jt.exports=function(r,e){for(var t=0;t<r.length;t+=1)if(!e(r[t],t,r))return!1;return!0}});var Bt=i((pu,Rt)=>{"use strict";Rt.exports=function(r){if(r===null)return"Null";if(typeof r=="undefined")return"Undefined";if(typeof r=="function"||typeof r=="object")return"Object";if(typeof r=="number")return"Number";if(typeof r=="boolean")return"Boolean";if(typeof r=="string")return"String"}});var Dr=i((fu,Dt)=>{"use strict";var ui=Bt();Dt.exports=function(r){return typeof r=="symbol"?"Symbol":typeof r=="bigint"?"BigInt":ui(r)}});var Ut=i((lu,Nt)=>{"use strict";var Gt=b(),si=M("object-inspect"),pi=V(),fi=Dr();Nt.exports=function(r,e){if(fi(r)!=="Object")throw new Gt("Assertion failed: Type(O) is not Object");if(!pi(e))throw new Gt("Assertion failed: IsPropertyKey(P) is not true, got "+si(e));return r[e]}});var Ct=i((yu,_t)=>{"use strict";var li=h();_t.exports=li("%Math.min%")});var Gr=i((cu,Mt)=>{"use strict";Mt.exports=Number.isNaN||function(r){return r!==r}});var kt=i((vu,Wt)=>{"use strict";var yi=Gr();Wt.exports=function(n){return(typeof n=="number"||typeof n=="bigint")&&!yi(n)&&n!==1/0&&n!==-1/0}});var nr=i((gu,Kt)=>{"use strict";var Lt=h(),ci=Lt("%Math.abs%"),vi=Lt("%Math.floor%"),gi=Gr(),bi=kt();Kt.exports=function(r){if(typeof r!="number"||gi(r)||!bi(r))return!1;var e=ci(r);return vi(e)===e}});var Ur=i((bu,Ht)=>{"use strict";var di=S(),Nr=b(),hi=nr(),mi=di("String.prototype.slice");Ht.exports=function(r,e,t){if(typeof r!="string")throw new Nr("Assertion failed: `string` must be a String");if(typeof e!="string")throw new Nr("Assertion failed: `searchValue` must be a String");if(!hi(t)||t<0)throw new Nr("Assertion failed: `fromIndex` must be a non-negative integer");var o=r.length;if(e===""&&t<=o)return t;for(var a=e.length,u=t;u<=o-a;u+=1){var f=mi(r,u,u+a);if(f===e)return u}return-1}});var or=i((du,Jt)=>{"use strict";var Si=b();Jt.exports=function(r){if(r==null)throw new Si(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r}});var ir=i((hu,zt)=>{"use strict";var Ai=h(),wi=Ai("%String%"),qi=b();zt.exports=function(r){if(typeof r=="symbol")throw new qi("Cannot convert a Symbol value to a string");return wi(r)}});var _r=i((mu,Qt)=>{"use strict";var xi=or(),Pi=ir(),$i=S(),Yt=$i("String.prototype.replace"),Xt=/^\s$/.test("\u180E"),Oi=Xt?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Ii=Xt?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;Qt.exports=function(){var r=Pi(xi(this));return Yt(Yt(r,Oi,""),Ii,"")}});var Cr=i((Su,Vt)=>{"use strict";var Ei=_r(),Zt="\u200B",B="\u180E";Vt.exports=function(){return String.prototype.trim&&Zt.trim()===Zt&&B.trim()===B&&("_"+B).trim()==="_"+B&&(B+"_").trim()===B+"_"?String.prototype.trim:Ei}});var en=i((Au,rn)=>{"use strict";var Fi=U(),ji=Cr();rn.exports=function(){var r=ji();return Fi(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r}});var an=i((wu,on)=>{"use strict";var Ti=X(),Ri=U(),Bi=or(),Di=_r(),tn=Cr(),Gi=en(),Ni=Ti(tn()),nn=function(r){return Bi(r),Ni(r)};Ri(nn,{getPolyfill:tn,implementation:Di,shim:Gi});on.exports=nn});var fn=i((qu,pn)=>{"use strict";var Wr=h(),Mr=Wr("%Number%"),Ui=Wr("%RegExp%"),_i=b(),un=Wr("%parseInt%"),Ci=S(),ar=Br(),sn=Ci("String.prototype.slice"),Mi=ar(/^0b[01]+$/i),Wi=ar(/^0o[0-7]+$/i),ki=ar(/^[-+]0x[0-9a-f]+$/i),Li=["\x85","\u200B","\uFFFE"].join(""),Ki=new Ui("["+Li+"]","g"),Hi=ar(Ki),Ji=an();pn.exports=function n(r){if(typeof r!="string")throw new _i("Assertion failed: `argument` is not a String");if(Mi(r))return Mr(un(sn(r,2),2));if(Wi(r))return Mr(un(sn(r,2),8));if(Hi(r)||ki(r))return NaN;var e=Ji(r);return e!==r?n(e):Mr(r)}});var cn=i((xu,yn)=>{"use strict";var zi=b(),ln=nr(),Yi=S(),Xi=Yi("String.prototype.slice");yn.exports=function(r,e,t){if(typeof r!="string"||!ln(e)||arguments.length>2&&!ln(t))throw new zi("`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers");return Xi(r,e,arguments.length>2?t:r.length)}});var gn=i((Pu,vn)=>{"use strict";vn.exports=function(r){return typeof r=="string"||typeof r=="undefined"}});var dn=i(($u,bn)=>{"use strict";var Qi=S()("String.prototype.slice");bn.exports=function(r,e){return r===e?!0:r.length>e.length?!1:Qi(e,0,r.length)===r}});var wn=i((Ou,An)=>{"use strict";var q=b(),Sn=Br(),Zi=Tt(),kr=M("object-inspect"),Vi=Ut(),ra=xr(),ea=Ct(),ta=Ur(),hn=fn(),x=cn(),na=ir(),mn=Dr(),oa=nr(),ia=gn(),_=dn(),aa=Sn(/^\$[0-9]/),ua=Sn(/^\$[0-9][0-9]/);An.exports=function(r,e,t,o,a,u){if(typeof r!="string")throw new q("Assertion failed: `matched` must be a String");if(typeof e!="string")throw new q("Assertion failed: `str` must be a String");if(!oa(t)||t<0)throw new q("Assertion failed: `position` must be a nonnegative integer, got "+kr(t));if(!ra(o)||!Zi(o,ia))throw new q("Assertion failed: `captures` must be a possibly-empty List of Strings or `undefined`, got "+kr(o));if(typeof a!="undefined"&&mn(a)!=="Object")throw new q("Assertion failed: `namedCaptures` must be `undefined` or an Object");if(typeof u!="string")throw new q("Assertion failed: `replacementTemplate` must be a String");var f=e.length;if(t>f)throw new q("Assertion failed: position > stringLength, got "+kr(t));for(var s=u,g="";s!=="";){var l,y,c;if(_("$$",s))l="$$",y="$";else if(_("$`",s))l="$`",y=x(e,0,t);else if(_("$&",s))l="$&",y=r;else if(_("$'",s)){l="$'";var m=r.length,A=t+m;y=x(e,ea(A,f))}else if(aa(s)){var d=ua(s)?2:1,P=x(s,1,1+d),w=hn(P);if(w<0||w>99)throw new q("Assertion failed: `index` must be >= 0 and <= 99");var C=o.length;w>C&&d===2&&(d=1,P=x(P,0,1),w=hn(P)),l=x(s,0,1+d),1<=w&&w<=C?(c=o[w-1],typeof c=="undefined"?y="":y=c):y=l}else if(_("$<",s)){var pr=ta(s,">",0);if(pr===-1||typeof a=="undefined")l="$<",y=l;else{l=x(s,0,pr+1);var Bn=x(s,2,pr);if(mn(a)!=="Object")throw new q("Assertion failed: Type(namedCaptures) is not Object");c=Vi(a,Bn),typeof c=="undefined"?y="":y=na(c)}}else l=x(s,0,1),y=l;var Dn=l.length;s=x(s,Dn),g+=y}return g}});var Kr=i((Iu,$n)=>{"use strict";var qn=lt(),sa=qt(),pa=wn(),fa=Er(),la=or(),ur=ir(),xn=Ur(),ya=h(),sr=S(),ca=yr()(),va=Rr(),ga=ya("%Math.max%"),Pn=b(),ba=sr("Array.prototype.push"),Lr=sr("String.prototype.slice"),da=sr("String.prototype.indexOf"),ha=sr("String.prototype.replace");$n.exports=function(r,e){var t=la(this),o=va(r);if(o&&da(Lr(r,r.source.length+2),"g")===-1)throw new Pn("use .replace for a non-global regex. NOTE: this may be allowed in the future.");if(ca&&Symbol.replace){if(r!=null){var a=sa(r,Symbol.replace);if(typeof a!="undefined")return qn(a,r,[t,e])}}else if(o)return ha(t,r,e);var u=ur(t),f=ur(r),s=fa(e);s||(e=ur(e));for(var g=f.length,l=ga(1,g),y=[],c=xn(u,f,0);c!==-1;)ba(y,c),c=xn(u,f,c+l);for(var m=0,A="",d=0;d<y.length;d+=1){var P;if(s)P=ur(qn(e,void 0,[f,y[d],u]));else{if(typeof e!="string")throw new Pn("Assertion failed: `replaceValue` should be a string at this point");var w=[];P=pa(f,u,y[d],w,void 0,e)}var C=Lr(u,m,y[d]);A+=C+P,m=y[d]+g}return m<u.length&&(A+=Lr(u,m)),A}});var Hr=i((Eu,On)=>{"use strict";var ma=Kr();On.exports=function(){return String.prototype.replaceAll||ma}});var En=i((Fu,In)=>{"use strict";var Sa=U(),Aa=Hr();In.exports=function(){var r=Aa();return Sa(String.prototype,{replaceAll:r},{replaceAll:function(){return String.prototype.replaceAll!==r}}),r}});var Rn=i((ju,Tn)=>{"use strict";var wa=X(),qa=U(),Fn=Kr(),xa=Hr(),Pa=En(),jn=wa(Fn);qa(jn,{getPolyfill:xa,implementation:Fn,shim:Pa});Tn.exports=jn});var Tu=Gn(Rn(),1);export{Nn as DynamicSnippetsGenerator};
|
package/package.json
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fern-api/go-dynamic-snippets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/fern-api/fern.git",
|
|
7
7
|
"directory": "generators/go-v2/dynamic-snippets"
|
|
8
8
|
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./esm/index.d.ts",
|
|
13
|
+
"default": "./esm/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./cjs/index.d.cts",
|
|
17
|
+
"default": "./cjs/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"main": "./cjs/index.cjs",
|
|
21
|
+
"module": "./esm/index.js",
|
|
22
|
+
"types": "./cjs/index.d.cts",
|
|
11
23
|
"files": [
|
|
12
|
-
"
|
|
13
|
-
"
|
|
24
|
+
"cjs",
|
|
25
|
+
"esm"
|
|
14
26
|
]
|
|
15
|
-
}
|
|
27
|
+
}
|