1import{i as e,n as t,r as n}from"./rolldown-runtime-B0Z9INg1.js";import{At as r,Tt as i,a,jt as o,t as s,wt as c}from"./whatwg-url-without-unicode-hgS9AtdP.js";a();var l=parseInt(c.Version,10);c.OS===`ios`&&l===10&&(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,`byteLength`)??Object.defineProperty(ArrayBuffer.prototype,"byteLength",{configurable:!0,enumerable:!1,get(){return null}}));var u={name:`react-native-url-polyfill`,version:`3.0.0`,description:`A lightweight and trustworthy URL polyfill for React Native`,keywords:[`URL`,`URLSearchParams`,`polyfill`,`react native`,`whatwg-url`],bugs:{url:`https://github.com/charpeni/react-native-url-polyfill/issues`},homepage:`https://github.com/charpeni/react-native-url-polyfill`,readme:`https://github.com/charpeni/react-native-url-polyfill#readme`,repository:{type:`git`,url:`https://github.com/charpeni/react-native-url-polyfill.git`},main:`index.js`,types:`index.d.ts`,scripts:{test:`jest`,lint:`eslint .`,"type-check":`tsc index.d.ts`,prepare:`husky install`,"bundle-size":`node scripts/bundle-size`},author:`Nicolas Charpentier <[email protected]>`,license:`MIT`,dependencies:{"whatwg-url-without-unicode":`8.0.0-3`},devDependencies:{"@babel/core":`^7.25.2`,"@babel/preset-env":`^7.25.3`,"@babel/runtime":`^7.25.0`,"@react-native-community/eslint-config":`3.2.0`,"@react-native/babel-preset":`0.81.1`,"@types/node":`^22.13.10`,detox:`20.34.5`,eslint:`8.56.0`,"eslint-plugin-ft-flow":`^3.0.11`,"eslint-plugin-prettier":`5.5.4`,husky:`8.0.3`,jest:`30.1.3`,"lint-staged":`15.2.0`,nanoid:`3.3.11`,prettier:`3.6.2`,react:`19.1.1`,"react-native":`0.81.4`,"react-native-bundle-scale":`2.0.0`,typescript:`5.9.2`},peerDependencies:{"react-native":`*`},jest:{preset:`react-native`,testPathIgnorePatterns:[`/node_modules/`,`./platforms/`]},"lint-staged":{"*.js":[`eslint --fix`]}},d=n({URL:()=>h}),f,p,m,h,g=t((()=>{if(a(),f=s(),p=null,m=r.BlobModule,m&&typeof m.getConstants().BLOB_URI_SCHEME==`string`){let e=m.getConstants();p=e.BLOB_URI_SCHEME+`:`,typeof e.BLOB_URI_HOST==`string`&&(p+=`//${e.BLOB_URI_HOST}/`)}f.URL.createObjectURL=function(e){if(p===null)throw Error(`Cannot create URL for blob!`);return`${p}${e.data.blobId}?offset=${e.data.offset}&size=${e.size}`},f.URL.revokeObjectURL=function(e){},f.URL.canParse=function(e,t){try{return new h(e,t),!0}catch{return!1}},h=f.URL})),_=n({URLSearchParams:()=>v.URLSearchParams}),v,y=t((()=>{v=s()}));g(),y();function b(){globalThis.REACT_NATIVE_URL_POLYFILL=`${u.name}@${u.version}`,globalThis.URL=(g(),e(d)).URL,globalThis.URLSearchParams=(y(),e(_)).URLSearchParams}export{h as n,g as r,b as t}; 2//# sourceMappingURL=react-native-url-polyfill-O_D_CfId.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.