Reverts vercel/next.js#47657
This commit is contained in:
parent
6eaca5d5b2
commit
2ac022391c
36 changed files with 43 additions and 37485 deletions
|
@ -97,7 +97,7 @@
|
||||||
"@typescript-eslint/eslint-plugin": "4.29.1",
|
"@typescript-eslint/eslint-plugin": "4.29.1",
|
||||||
"@typescript-eslint/parser": "4.29.1",
|
"@typescript-eslint/parser": "4.29.1",
|
||||||
"@vercel/fetch": "6.1.1",
|
"@vercel/fetch": "6.1.1",
|
||||||
"@vercel/og": "0.5.0",
|
"@vercel/og": "0.4.1",
|
||||||
"@webassemblyjs/ast": "1.11.1",
|
"@webassemblyjs/ast": "1.11.1",
|
||||||
"@webassemblyjs/floating-point-hex-parser": "1.11.1",
|
"@webassemblyjs/floating-point-hex-parser": "1.11.1",
|
||||||
"@webassemblyjs/helper-api-error": "1.11.1",
|
"@webassemblyjs/helper-api-error": "1.11.1",
|
||||||
|
@ -119,8 +119,8 @@
|
||||||
"@zeit/next-typescript": "1.1.2-canary.0",
|
"@zeit/next-typescript": "1.1.2-canary.0",
|
||||||
"abort-controller": "3.0.0",
|
"abort-controller": "3.0.0",
|
||||||
"alex": "9.1.0",
|
"alex": "9.1.0",
|
||||||
"amphtml-validator": "1.0.35",
|
|
||||||
"ansi-escapes": "4.3.2",
|
"ansi-escapes": "4.3.2",
|
||||||
|
"amphtml-validator": "1.0.35",
|
||||||
"async-sema": "3.0.1",
|
"async-sema": "3.0.1",
|
||||||
"body-parser": "1.20.1",
|
"body-parser": "1.20.1",
|
||||||
"browserslist": "4.20.2",
|
"browserslist": "4.20.2",
|
||||||
|
@ -211,7 +211,6 @@
|
||||||
"resolve-from": "5.0.0",
|
"resolve-from": "5.0.0",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"sass": "1.54.0",
|
"sass": "1.54.0",
|
||||||
"satori": "0.4.4",
|
|
||||||
"seedrandom": "3.0.5",
|
"seedrandom": "3.0.5",
|
||||||
"selenium-webdriver": "4.0.0-beta.4",
|
"selenium-webdriver": "4.0.0-beta.4",
|
||||||
"semver": "7.3.7",
|
"semver": "7.3.7",
|
||||||
|
|
1
packages/next/server.d.ts
vendored
1
packages/next/server.d.ts
vendored
|
@ -11,4 +11,3 @@ export { NextMiddleware } from 'next/dist/server/web/types'
|
||||||
export { userAgentFromString } from 'next/dist/server/web/spec-extension/user-agent'
|
export { userAgentFromString } from 'next/dist/server/web/spec-extension/user-agent'
|
||||||
export { userAgent } from 'next/dist/server/web/spec-extension/user-agent'
|
export { userAgent } from 'next/dist/server/web/spec-extension/user-agent'
|
||||||
export { URLPattern } from 'next/dist/compiled/@edge-runtime/primitives/url'
|
export { URLPattern } from 'next/dist/compiled/@edge-runtime/primitives/url'
|
||||||
export { ImageResponse } from 'next/dist/server/web/spec-extension/image-response'
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ const serverExports = {
|
||||||
.NextRequest,
|
.NextRequest,
|
||||||
NextResponse: require('next/dist/server/web/spec-extension/response')
|
NextResponse: require('next/dist/server/web/spec-extension/response')
|
||||||
.NextResponse,
|
.NextResponse,
|
||||||
ImageResponse: require('next/dist/server/web/spec-extension/image-response')
|
|
||||||
.ImageResponse,
|
|
||||||
userAgentFromString: require('next/dist/server/web/spec-extension/user-agent')
|
userAgentFromString: require('next/dist/server/web/spec-extension/user-agent')
|
||||||
.userAgentFromString,
|
.userAgentFromString,
|
||||||
userAgent: require('next/dist/server/web/spec-extension/user-agent')
|
userAgent: require('next/dist/server/web/spec-extension/user-agent')
|
||||||
|
@ -23,7 +21,6 @@ module.exports = serverExports
|
||||||
// make import { xxx } from 'next/server' work
|
// make import { xxx } from 'next/server' work
|
||||||
exports.NextRequest = serverExports.NextRequest
|
exports.NextRequest = serverExports.NextRequest
|
||||||
exports.NextResponse = serverExports.NextResponse
|
exports.NextResponse = serverExports.NextResponse
|
||||||
exports.ImageResponse = serverExports.ImageResponse
|
|
||||||
exports.userAgentFromString = serverExports.userAgentFromString
|
exports.userAgentFromString = serverExports.userAgentFromString
|
||||||
exports.userAgent = serverExports.userAgent
|
exports.userAgent = serverExports.userAgent
|
||||||
exports.URLPattern = serverExports.URLPattern
|
exports.URLPattern = serverExports.URLPattern
|
||||||
|
|
|
@ -50,14 +50,6 @@ function getBaseSWCOptions({
|
||||||
.filter(Array.isArray)
|
.filter(Array.isArray)
|
||||||
.map(([name, options]: any) => [require.resolve(name), options])
|
.map(([name, options]: any) => [require.resolve(name), options])
|
||||||
|
|
||||||
// Use modularized imports for next/server to ensure treeshaking.
|
|
||||||
// This prevents ImageResponse related assets from being bundled when not used.
|
|
||||||
// TODO: move it into next-swc
|
|
||||||
const modularizeImports = nextConfig?.modularizeImports || {}
|
|
||||||
modularizeImports['next/server'] = {
|
|
||||||
transform: 'next/dist/server/web/exports/{{ kebabCase member }}',
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
jsc: {
|
jsc: {
|
||||||
...(resolvedBaseUrl && paths
|
...(resolvedBaseUrl && paths
|
||||||
|
@ -123,7 +115,7 @@ function getBaseSWCOptions({
|
||||||
reactRemoveProperties: jest
|
reactRemoveProperties: jest
|
||||||
? false
|
? false
|
||||||
: nextConfig?.compiler?.reactRemoveProperties,
|
: nextConfig?.compiler?.reactRemoveProperties,
|
||||||
modularizeImports,
|
modularizeImports: nextConfig?.modularizeImports,
|
||||||
relay: nextConfig?.compiler?.relay,
|
relay: nextConfig?.compiler?.relay,
|
||||||
// Always transform styled-jsx and error when `client-only` condition is triggered
|
// Always transform styled-jsx and error when `client-only` condition is triggered
|
||||||
styledJsx: true,
|
styledJsx: true,
|
||||||
|
|
|
@ -668,7 +668,7 @@ function getExtractMetadata(params: {
|
||||||
const resource = module.resource
|
const resource = module.resource
|
||||||
const hasOGImageGeneration =
|
const hasOGImageGeneration =
|
||||||
resource &&
|
resource &&
|
||||||
/[\\/]node_modules[\\/]@vercel[\\/]og[\\/]dist[\\/]index\.(edge|node)\.js$|[\\/]next[\\/]dist[\\/]server[\\/]web[\\/]spec-extension[\\/]image-response\.js$/.test(
|
/[\\/]node_modules[\\/]@vercel[\\/]og[\\/]dist[\\/]index\.(edge|node)\.js$/.test(
|
||||||
resource
|
resource
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,373 +0,0 @@
|
||||||
Mozilla Public License Version 2.0
|
|
||||||
==================================
|
|
||||||
|
|
||||||
1. Definitions
|
|
||||||
--------------
|
|
||||||
|
|
||||||
1.1. "Contributor"
|
|
||||||
means each individual or legal entity that creates, contributes to
|
|
||||||
the creation of, or owns Covered Software.
|
|
||||||
|
|
||||||
1.2. "Contributor Version"
|
|
||||||
means the combination of the Contributions of others (if any) used
|
|
||||||
by a Contributor and that particular Contributor's Contribution.
|
|
||||||
|
|
||||||
1.3. "Contribution"
|
|
||||||
means Covered Software of a particular Contributor.
|
|
||||||
|
|
||||||
1.4. "Covered Software"
|
|
||||||
means Source Code Form to which the initial Contributor has attached
|
|
||||||
the notice in Exhibit A, the Executable Form of such Source Code
|
|
||||||
Form, and Modifications of such Source Code Form, in each case
|
|
||||||
including portions thereof.
|
|
||||||
|
|
||||||
1.5. "Incompatible With Secondary Licenses"
|
|
||||||
means
|
|
||||||
|
|
||||||
(a) that the initial Contributor has attached the notice described
|
|
||||||
in Exhibit B to the Covered Software; or
|
|
||||||
|
|
||||||
(b) that the Covered Software was made available under the terms of
|
|
||||||
version 1.1 or earlier of the License, but not also under the
|
|
||||||
terms of a Secondary License.
|
|
||||||
|
|
||||||
1.6. "Executable Form"
|
|
||||||
means any form of the work other than Source Code Form.
|
|
||||||
|
|
||||||
1.7. "Larger Work"
|
|
||||||
means a work that combines Covered Software with other material, in
|
|
||||||
a separate file or files, that is not Covered Software.
|
|
||||||
|
|
||||||
1.8. "License"
|
|
||||||
means this document.
|
|
||||||
|
|
||||||
1.9. "Licensable"
|
|
||||||
means having the right to grant, to the maximum extent possible,
|
|
||||||
whether at the time of the initial grant or subsequently, any and
|
|
||||||
all of the rights conveyed by this License.
|
|
||||||
|
|
||||||
1.10. "Modifications"
|
|
||||||
means any of the following:
|
|
||||||
|
|
||||||
(a) any file in Source Code Form that results from an addition to,
|
|
||||||
deletion from, or modification of the contents of Covered
|
|
||||||
Software; or
|
|
||||||
|
|
||||||
(b) any new file in Source Code Form that contains any Covered
|
|
||||||
Software.
|
|
||||||
|
|
||||||
1.11. "Patent Claims" of a Contributor
|
|
||||||
means any patent claim(s), including without limitation, method,
|
|
||||||
process, and apparatus claims, in any patent Licensable by such
|
|
||||||
Contributor that would be infringed, but for the grant of the
|
|
||||||
License, by the making, using, selling, offering for sale, having
|
|
||||||
made, import, or transfer of either its Contributions or its
|
|
||||||
Contributor Version.
|
|
||||||
|
|
||||||
1.12. "Secondary License"
|
|
||||||
means either the GNU General Public License, Version 2.0, the GNU
|
|
||||||
Lesser General Public License, Version 2.1, the GNU Affero General
|
|
||||||
Public License, Version 3.0, or any later versions of those
|
|
||||||
licenses.
|
|
||||||
|
|
||||||
1.13. "Source Code Form"
|
|
||||||
means the form of the work preferred for making modifications.
|
|
||||||
|
|
||||||
1.14. "You" (or "Your")
|
|
||||||
means an individual or a legal entity exercising rights under this
|
|
||||||
License. For legal entities, "You" includes any entity that
|
|
||||||
controls, is controlled by, or is under common control with You. For
|
|
||||||
purposes of this definition, "control" means (a) the power, direct
|
|
||||||
or indirect, to cause the direction or management of such entity,
|
|
||||||
whether by contract or otherwise, or (b) ownership of more than
|
|
||||||
fifty percent (50%) of the outstanding shares or beneficial
|
|
||||||
ownership of such entity.
|
|
||||||
|
|
||||||
2. License Grants and Conditions
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
2.1. Grants
|
|
||||||
|
|
||||||
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
||||||
non-exclusive license:
|
|
||||||
|
|
||||||
(a) under intellectual property rights (other than patent or trademark)
|
|
||||||
Licensable by such Contributor to use, reproduce, make available,
|
|
||||||
modify, display, perform, distribute, and otherwise exploit its
|
|
||||||
Contributions, either on an unmodified basis, with Modifications, or
|
|
||||||
as part of a Larger Work; and
|
|
||||||
|
|
||||||
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
|
||||||
for sale, have made, import, and otherwise transfer either its
|
|
||||||
Contributions or its Contributor Version.
|
|
||||||
|
|
||||||
2.2. Effective Date
|
|
||||||
|
|
||||||
The licenses granted in Section 2.1 with respect to any Contribution
|
|
||||||
become effective for each Contribution on the date the Contributor first
|
|
||||||
distributes such Contribution.
|
|
||||||
|
|
||||||
2.3. Limitations on Grant Scope
|
|
||||||
|
|
||||||
The licenses granted in this Section 2 are the only rights granted under
|
|
||||||
this License. No additional rights or licenses will be implied from the
|
|
||||||
distribution or licensing of Covered Software under this License.
|
|
||||||
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
|
||||||
Contributor:
|
|
||||||
|
|
||||||
(a) for any code that a Contributor has removed from Covered Software;
|
|
||||||
or
|
|
||||||
|
|
||||||
(b) for infringements caused by: (i) Your and any other third party's
|
|
||||||
modifications of Covered Software, or (ii) the combination of its
|
|
||||||
Contributions with other software (except as part of its Contributor
|
|
||||||
Version); or
|
|
||||||
|
|
||||||
(c) under Patent Claims infringed by Covered Software in the absence of
|
|
||||||
its Contributions.
|
|
||||||
|
|
||||||
This License does not grant any rights in the trademarks, service marks,
|
|
||||||
or logos of any Contributor (except as may be necessary to comply with
|
|
||||||
the notice requirements in Section 3.4).
|
|
||||||
|
|
||||||
2.4. Subsequent Licenses
|
|
||||||
|
|
||||||
No Contributor makes additional grants as a result of Your choice to
|
|
||||||
distribute the Covered Software under a subsequent version of this
|
|
||||||
License (see Section 10.2) or under the terms of a Secondary License (if
|
|
||||||
permitted under the terms of Section 3.3).
|
|
||||||
|
|
||||||
2.5. Representation
|
|
||||||
|
|
||||||
Each Contributor represents that the Contributor believes its
|
|
||||||
Contributions are its original creation(s) or it has sufficient rights
|
|
||||||
to grant the rights to its Contributions conveyed by this License.
|
|
||||||
|
|
||||||
2.6. Fair Use
|
|
||||||
|
|
||||||
This License is not intended to limit any rights You have under
|
|
||||||
applicable copyright doctrines of fair use, fair dealing, or other
|
|
||||||
equivalents.
|
|
||||||
|
|
||||||
2.7. Conditions
|
|
||||||
|
|
||||||
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
|
||||||
in Section 2.1.
|
|
||||||
|
|
||||||
3. Responsibilities
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
3.1. Distribution of Source Form
|
|
||||||
|
|
||||||
All distribution of Covered Software in Source Code Form, including any
|
|
||||||
Modifications that You create or to which You contribute, must be under
|
|
||||||
the terms of this License. You must inform recipients that the Source
|
|
||||||
Code Form of the Covered Software is governed by the terms of this
|
|
||||||
License, and how they can obtain a copy of this License. You may not
|
|
||||||
attempt to alter or restrict the recipients' rights in the Source Code
|
|
||||||
Form.
|
|
||||||
|
|
||||||
3.2. Distribution of Executable Form
|
|
||||||
|
|
||||||
If You distribute Covered Software in Executable Form then:
|
|
||||||
|
|
||||||
(a) such Covered Software must also be made available in Source Code
|
|
||||||
Form, as described in Section 3.1, and You must inform recipients of
|
|
||||||
the Executable Form how they can obtain a copy of such Source Code
|
|
||||||
Form by reasonable means in a timely manner, at a charge no more
|
|
||||||
than the cost of distribution to the recipient; and
|
|
||||||
|
|
||||||
(b) You may distribute such Executable Form under the terms of this
|
|
||||||
License, or sublicense it under different terms, provided that the
|
|
||||||
license for the Executable Form does not attempt to limit or alter
|
|
||||||
the recipients' rights in the Source Code Form under this License.
|
|
||||||
|
|
||||||
3.3. Distribution of a Larger Work
|
|
||||||
|
|
||||||
You may create and distribute a Larger Work under terms of Your choice,
|
|
||||||
provided that You also comply with the requirements of this License for
|
|
||||||
the Covered Software. If the Larger Work is a combination of Covered
|
|
||||||
Software with a work governed by one or more Secondary Licenses, and the
|
|
||||||
Covered Software is not Incompatible With Secondary Licenses, this
|
|
||||||
License permits You to additionally distribute such Covered Software
|
|
||||||
under the terms of such Secondary License(s), so that the recipient of
|
|
||||||
the Larger Work may, at their option, further distribute the Covered
|
|
||||||
Software under the terms of either this License or such Secondary
|
|
||||||
License(s).
|
|
||||||
|
|
||||||
3.4. Notices
|
|
||||||
|
|
||||||
You may not remove or alter the substance of any license notices
|
|
||||||
(including copyright notices, patent notices, disclaimers of warranty,
|
|
||||||
or limitations of liability) contained within the Source Code Form of
|
|
||||||
the Covered Software, except that You may alter any license notices to
|
|
||||||
the extent required to remedy known factual inaccuracies.
|
|
||||||
|
|
||||||
3.5. Application of Additional Terms
|
|
||||||
|
|
||||||
You may choose to offer, and to charge a fee for, warranty, support,
|
|
||||||
indemnity or liability obligations to one or more recipients of Covered
|
|
||||||
Software. However, You may do so only on Your own behalf, and not on
|
|
||||||
behalf of any Contributor. You must make it absolutely clear that any
|
|
||||||
such warranty, support, indemnity, or liability obligation is offered by
|
|
||||||
You alone, and You hereby agree to indemnify every Contributor for any
|
|
||||||
liability incurred by such Contributor as a result of warranty, support,
|
|
||||||
indemnity or liability terms You offer. You may include additional
|
|
||||||
disclaimers of warranty and limitations of liability specific to any
|
|
||||||
jurisdiction.
|
|
||||||
|
|
||||||
4. Inability to Comply Due to Statute or Regulation
|
|
||||||
---------------------------------------------------
|
|
||||||
|
|
||||||
If it is impossible for You to comply with any of the terms of this
|
|
||||||
License with respect to some or all of the Covered Software due to
|
|
||||||
statute, judicial order, or regulation then You must: (a) comply with
|
|
||||||
the terms of this License to the maximum extent possible; and (b)
|
|
||||||
describe the limitations and the code they affect. Such description must
|
|
||||||
be placed in a text file included with all distributions of the Covered
|
|
||||||
Software under this License. Except to the extent prohibited by statute
|
|
||||||
or regulation, such description must be sufficiently detailed for a
|
|
||||||
recipient of ordinary skill to be able to understand it.
|
|
||||||
|
|
||||||
5. Termination
|
|
||||||
--------------
|
|
||||||
|
|
||||||
5.1. The rights granted under this License will terminate automatically
|
|
||||||
if You fail to comply with any of its terms. However, if You become
|
|
||||||
compliant, then the rights granted under this License from a particular
|
|
||||||
Contributor are reinstated (a) provisionally, unless and until such
|
|
||||||
Contributor explicitly and finally terminates Your grants, and (b) on an
|
|
||||||
ongoing basis, if such Contributor fails to notify You of the
|
|
||||||
non-compliance by some reasonable means prior to 60 days after You have
|
|
||||||
come back into compliance. Moreover, Your grants from a particular
|
|
||||||
Contributor are reinstated on an ongoing basis if such Contributor
|
|
||||||
notifies You of the non-compliance by some reasonable means, this is the
|
|
||||||
first time You have received notice of non-compliance with this License
|
|
||||||
from such Contributor, and You become compliant prior to 30 days after
|
|
||||||
Your receipt of the notice.
|
|
||||||
|
|
||||||
5.2. If You initiate litigation against any entity by asserting a patent
|
|
||||||
infringement claim (excluding declaratory judgment actions,
|
|
||||||
counter-claims, and cross-claims) alleging that a Contributor Version
|
|
||||||
directly or indirectly infringes any patent, then the rights granted to
|
|
||||||
You by any and all Contributors for the Covered Software under Section
|
|
||||||
2.1 of this License shall terminate.
|
|
||||||
|
|
||||||
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
|
||||||
end user license agreements (excluding distributors and resellers) which
|
|
||||||
have been validly granted by You or Your distributors under this License
|
|
||||||
prior to termination shall survive termination.
|
|
||||||
|
|
||||||
************************************************************************
|
|
||||||
* *
|
|
||||||
* 6. Disclaimer of Warranty *
|
|
||||||
* ------------------------- *
|
|
||||||
* *
|
|
||||||
* Covered Software is provided under this License on an "as is" *
|
|
||||||
* basis, without warranty of any kind, either expressed, implied, or *
|
|
||||||
* statutory, including, without limitation, warranties that the *
|
|
||||||
* Covered Software is free of defects, merchantable, fit for a *
|
|
||||||
* particular purpose or non-infringing. The entire risk as to the *
|
|
||||||
* quality and performance of the Covered Software is with You. *
|
|
||||||
* Should any Covered Software prove defective in any respect, You *
|
|
||||||
* (not any Contributor) assume the cost of any necessary servicing, *
|
|
||||||
* repair, or correction. This disclaimer of warranty constitutes an *
|
|
||||||
* essential part of this License. No use of any Covered Software is *
|
|
||||||
* authorized under this License except under this disclaimer. *
|
|
||||||
* *
|
|
||||||
************************************************************************
|
|
||||||
|
|
||||||
************************************************************************
|
|
||||||
* *
|
|
||||||
* 7. Limitation of Liability *
|
|
||||||
* -------------------------- *
|
|
||||||
* *
|
|
||||||
* Under no circumstances and under no legal theory, whether tort *
|
|
||||||
* (including negligence), contract, or otherwise, shall any *
|
|
||||||
* Contributor, or anyone who distributes Covered Software as *
|
|
||||||
* permitted above, be liable to You for any direct, indirect, *
|
|
||||||
* special, incidental, or consequential damages of any character *
|
|
||||||
* including, without limitation, damages for lost profits, loss of *
|
|
||||||
* goodwill, work stoppage, computer failure or malfunction, or any *
|
|
||||||
* and all other commercial damages or losses, even if such party *
|
|
||||||
* shall have been informed of the possibility of such damages. This *
|
|
||||||
* limitation of liability shall not apply to liability for death or *
|
|
||||||
* personal injury resulting from such party's negligence to the *
|
|
||||||
* extent applicable law prohibits such limitation. Some *
|
|
||||||
* jurisdictions do not allow the exclusion or limitation of *
|
|
||||||
* incidental or consequential damages, so this exclusion and *
|
|
||||||
* limitation may not apply to You. *
|
|
||||||
* *
|
|
||||||
************************************************************************
|
|
||||||
|
|
||||||
8. Litigation
|
|
||||||
-------------
|
|
||||||
|
|
||||||
Any litigation relating to this License may be brought only in the
|
|
||||||
courts of a jurisdiction where the defendant maintains its principal
|
|
||||||
place of business and such litigation shall be governed by laws of that
|
|
||||||
jurisdiction, without reference to its conflict-of-law provisions.
|
|
||||||
Nothing in this Section shall prevent a party's ability to bring
|
|
||||||
cross-claims or counter-claims.
|
|
||||||
|
|
||||||
9. Miscellaneous
|
|
||||||
----------------
|
|
||||||
|
|
||||||
This License represents the complete agreement concerning the subject
|
|
||||||
matter hereof. If any provision of this License is held to be
|
|
||||||
unenforceable, such provision shall be reformed only to the extent
|
|
||||||
necessary to make it enforceable. Any law or regulation which provides
|
|
||||||
that the language of a contract shall be construed against the drafter
|
|
||||||
shall not be used to construe this License against a Contributor.
|
|
||||||
|
|
||||||
10. Versions of the License
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
10.1. New Versions
|
|
||||||
|
|
||||||
Mozilla Foundation is the license steward. Except as provided in Section
|
|
||||||
10.3, no one other than the license steward has the right to modify or
|
|
||||||
publish new versions of this License. Each version will be given a
|
|
||||||
distinguishing version number.
|
|
||||||
|
|
||||||
10.2. Effect of New Versions
|
|
||||||
|
|
||||||
You may distribute the Covered Software under the terms of the version
|
|
||||||
of the License under which You originally received the Covered Software,
|
|
||||||
or under the terms of any subsequent version published by the license
|
|
||||||
steward.
|
|
||||||
|
|
||||||
10.3. Modified Versions
|
|
||||||
|
|
||||||
If you create software not governed by this License, and you want to
|
|
||||||
create a new license for such software, you may create and use a
|
|
||||||
modified version of this License if you rename the license and remove
|
|
||||||
any references to the name of the license steward (except to note that
|
|
||||||
such modified license differs from this License).
|
|
||||||
|
|
||||||
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
|
||||||
Licenses
|
|
||||||
|
|
||||||
If You choose to distribute Source Code Form that is Incompatible With
|
|
||||||
Secondary Licenses under the terms of this version of the License, the
|
|
||||||
notice described in Exhibit B of this License must be attached.
|
|
||||||
|
|
||||||
Exhibit A - Source Code Form License Notice
|
|
||||||
-------------------------------------------
|
|
||||||
|
|
||||||
This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
If it is not possible or desirable to put the notice in a particular
|
|
||||||
file, then You may include the notice in a location (such as a LICENSE
|
|
||||||
file in a relevant directory) where a recipient would be likely to look
|
|
||||||
for such a notice.
|
|
||||||
|
|
||||||
You may add additional accurate notices of copyright ownership.
|
|
||||||
|
|
||||||
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
|
||||||
---------------------------------------------------------
|
|
||||||
|
|
||||||
This Source Code Form is "Incompatible With Secondary Licenses", as
|
|
||||||
defined by the Mozilla Public License, v. 2.0.
|
|
|
@ -1,15 +0,0 @@
|
||||||
/**
|
|
||||||
* Modified version of https://unpkg.com/twemoji@13.1.0/dist/twemoji.esm.js.
|
|
||||||
*/
|
|
||||||
export declare function getIconCode(char: string): string;
|
|
||||||
declare const apis: {
|
|
||||||
twemoji: (code: any) => string;
|
|
||||||
openmoji: string;
|
|
||||||
blobmoji: string;
|
|
||||||
noto: string;
|
|
||||||
fluent: (code: any) => string;
|
|
||||||
fluentFlat: (code: any) => string;
|
|
||||||
};
|
|
||||||
export declare type EmojiType = keyof typeof apis;
|
|
||||||
export declare function loadEmoji(code: string, type?: EmojiType): Promise<Response>;
|
|
||||||
export {};
|
|
|
@ -1,5 +0,0 @@
|
||||||
import type { ReactElement } from 'react';
|
|
||||||
import type { ImageResponseOptions } from './types';
|
|
||||||
export declare class ImageResponse {
|
|
||||||
constructor(element: ReactElement, options?: ImageResponseOptions);
|
|
||||||
}
|
|
File diff suppressed because one or more lines are too long
|
@ -1,25 +0,0 @@
|
||||||
/// <reference types="node" />
|
|
||||||
import type { ReactElement } from 'react';
|
|
||||||
import type { ImageResponseNodeOptions, ImageResponseOptions } from './types';
|
|
||||||
import { Readable } from 'stream';
|
|
||||||
export declare class ImageResponse {
|
|
||||||
constructor(element: ReactElement, options?: ImageResponseOptions);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Creates a pipeable stream of the rendered image in a lambda function.
|
|
||||||
* All parameters are the same as `ImageResponse`.
|
|
||||||
* @example
|
|
||||||
* ```js
|
|
||||||
* import { unstable_createNodejsStream } from '@vercel/og'
|
|
||||||
*
|
|
||||||
* export default async (req, res) => {
|
|
||||||
* const stream = await unstable_createNodejsStream(<div>Hello World</div>, { ... })
|
|
||||||
* res.setHeader('Content-Type', 'image/png')
|
|
||||||
* res.setHeader('Cache-Control', 'public, max-age=31536000, immutable')
|
|
||||||
* res.statusCode = 200
|
|
||||||
* res.statusMessage = 'OK'
|
|
||||||
* stream.pipe(res)
|
|
||||||
* }
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
export declare function unstable_createNodejsStream(element: ReactElement, options?: Omit<ImageResponseNodeOptions, 'status' | 'statusText' | 'headers'>): Promise<Readable>;
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
export default function render(satori: any, resvg: any, opts: any, defaultFonts: any, element: any): Promise<any>;
|
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@vercel/og",
|
|
||||||
"LICENSE": "MLP-2.0",
|
|
||||||
"type": "module",
|
|
||||||
"main": "./index.node.js",
|
|
||||||
"exports": {
|
|
||||||
".": {
|
|
||||||
"edge-light": "./index.edge.js",
|
|
||||||
"import": "./index.node.js",
|
|
||||||
"node": "./index.node.js",
|
|
||||||
"default": "./index.node.js"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,373 +0,0 @@
|
||||||
Mozilla Public License Version 2.0
|
|
||||||
==================================
|
|
||||||
|
|
||||||
1. Definitions
|
|
||||||
--------------
|
|
||||||
|
|
||||||
1.1. "Contributor"
|
|
||||||
means each individual or legal entity that creates, contributes to
|
|
||||||
the creation of, or owns Covered Software.
|
|
||||||
|
|
||||||
1.2. "Contributor Version"
|
|
||||||
means the combination of the Contributions of others (if any) used
|
|
||||||
by a Contributor and that particular Contributor's Contribution.
|
|
||||||
|
|
||||||
1.3. "Contribution"
|
|
||||||
means Covered Software of a particular Contributor.
|
|
||||||
|
|
||||||
1.4. "Covered Software"
|
|
||||||
means Source Code Form to which the initial Contributor has attached
|
|
||||||
the notice in Exhibit A, the Executable Form of such Source Code
|
|
||||||
Form, and Modifications of such Source Code Form, in each case
|
|
||||||
including portions thereof.
|
|
||||||
|
|
||||||
1.5. "Incompatible With Secondary Licenses"
|
|
||||||
means
|
|
||||||
|
|
||||||
(a) that the initial Contributor has attached the notice described
|
|
||||||
in Exhibit B to the Covered Software; or
|
|
||||||
|
|
||||||
(b) that the Covered Software was made available under the terms of
|
|
||||||
version 1.1 or earlier of the License, but not also under the
|
|
||||||
terms of a Secondary License.
|
|
||||||
|
|
||||||
1.6. "Executable Form"
|
|
||||||
means any form of the work other than Source Code Form.
|
|
||||||
|
|
||||||
1.7. "Larger Work"
|
|
||||||
means a work that combines Covered Software with other material, in
|
|
||||||
a separate file or files, that is not Covered Software.
|
|
||||||
|
|
||||||
1.8. "License"
|
|
||||||
means this document.
|
|
||||||
|
|
||||||
1.9. "Licensable"
|
|
||||||
means having the right to grant, to the maximum extent possible,
|
|
||||||
whether at the time of the initial grant or subsequently, any and
|
|
||||||
all of the rights conveyed by this License.
|
|
||||||
|
|
||||||
1.10. "Modifications"
|
|
||||||
means any of the following:
|
|
||||||
|
|
||||||
(a) any file in Source Code Form that results from an addition to,
|
|
||||||
deletion from, or modification of the contents of Covered
|
|
||||||
Software; or
|
|
||||||
|
|
||||||
(b) any new file in Source Code Form that contains any Covered
|
|
||||||
Software.
|
|
||||||
|
|
||||||
1.11. "Patent Claims" of a Contributor
|
|
||||||
means any patent claim(s), including without limitation, method,
|
|
||||||
process, and apparatus claims, in any patent Licensable by such
|
|
||||||
Contributor that would be infringed, but for the grant of the
|
|
||||||
License, by the making, using, selling, offering for sale, having
|
|
||||||
made, import, or transfer of either its Contributions or its
|
|
||||||
Contributor Version.
|
|
||||||
|
|
||||||
1.12. "Secondary License"
|
|
||||||
means either the GNU General Public License, Version 2.0, the GNU
|
|
||||||
Lesser General Public License, Version 2.1, the GNU Affero General
|
|
||||||
Public License, Version 3.0, or any later versions of those
|
|
||||||
licenses.
|
|
||||||
|
|
||||||
1.13. "Source Code Form"
|
|
||||||
means the form of the work preferred for making modifications.
|
|
||||||
|
|
||||||
1.14. "You" (or "Your")
|
|
||||||
means an individual or a legal entity exercising rights under this
|
|
||||||
License. For legal entities, "You" includes any entity that
|
|
||||||
controls, is controlled by, or is under common control with You. For
|
|
||||||
purposes of this definition, "control" means (a) the power, direct
|
|
||||||
or indirect, to cause the direction or management of such entity,
|
|
||||||
whether by contract or otherwise, or (b) ownership of more than
|
|
||||||
fifty percent (50%) of the outstanding shares or beneficial
|
|
||||||
ownership of such entity.
|
|
||||||
|
|
||||||
2. License Grants and Conditions
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
2.1. Grants
|
|
||||||
|
|
||||||
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
||||||
non-exclusive license:
|
|
||||||
|
|
||||||
(a) under intellectual property rights (other than patent or trademark)
|
|
||||||
Licensable by such Contributor to use, reproduce, make available,
|
|
||||||
modify, display, perform, distribute, and otherwise exploit its
|
|
||||||
Contributions, either on an unmodified basis, with Modifications, or
|
|
||||||
as part of a Larger Work; and
|
|
||||||
|
|
||||||
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
|
||||||
for sale, have made, import, and otherwise transfer either its
|
|
||||||
Contributions or its Contributor Version.
|
|
||||||
|
|
||||||
2.2. Effective Date
|
|
||||||
|
|
||||||
The licenses granted in Section 2.1 with respect to any Contribution
|
|
||||||
become effective for each Contribution on the date the Contributor first
|
|
||||||
distributes such Contribution.
|
|
||||||
|
|
||||||
2.3. Limitations on Grant Scope
|
|
||||||
|
|
||||||
The licenses granted in this Section 2 are the only rights granted under
|
|
||||||
this License. No additional rights or licenses will be implied from the
|
|
||||||
distribution or licensing of Covered Software under this License.
|
|
||||||
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
|
||||||
Contributor:
|
|
||||||
|
|
||||||
(a) for any code that a Contributor has removed from Covered Software;
|
|
||||||
or
|
|
||||||
|
|
||||||
(b) for infringements caused by: (i) Your and any other third party's
|
|
||||||
modifications of Covered Software, or (ii) the combination of its
|
|
||||||
Contributions with other software (except as part of its Contributor
|
|
||||||
Version); or
|
|
||||||
|
|
||||||
(c) under Patent Claims infringed by Covered Software in the absence of
|
|
||||||
its Contributions.
|
|
||||||
|
|
||||||
This License does not grant any rights in the trademarks, service marks,
|
|
||||||
or logos of any Contributor (except as may be necessary to comply with
|
|
||||||
the notice requirements in Section 3.4).
|
|
||||||
|
|
||||||
2.4. Subsequent Licenses
|
|
||||||
|
|
||||||
No Contributor makes additional grants as a result of Your choice to
|
|
||||||
distribute the Covered Software under a subsequent version of this
|
|
||||||
License (see Section 10.2) or under the terms of a Secondary License (if
|
|
||||||
permitted under the terms of Section 3.3).
|
|
||||||
|
|
||||||
2.5. Representation
|
|
||||||
|
|
||||||
Each Contributor represents that the Contributor believes its
|
|
||||||
Contributions are its original creation(s) or it has sufficient rights
|
|
||||||
to grant the rights to its Contributions conveyed by this License.
|
|
||||||
|
|
||||||
2.6. Fair Use
|
|
||||||
|
|
||||||
This License is not intended to limit any rights You have under
|
|
||||||
applicable copyright doctrines of fair use, fair dealing, or other
|
|
||||||
equivalents.
|
|
||||||
|
|
||||||
2.7. Conditions
|
|
||||||
|
|
||||||
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
|
||||||
in Section 2.1.
|
|
||||||
|
|
||||||
3. Responsibilities
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
3.1. Distribution of Source Form
|
|
||||||
|
|
||||||
All distribution of Covered Software in Source Code Form, including any
|
|
||||||
Modifications that You create or to which You contribute, must be under
|
|
||||||
the terms of this License. You must inform recipients that the Source
|
|
||||||
Code Form of the Covered Software is governed by the terms of this
|
|
||||||
License, and how they can obtain a copy of this License. You may not
|
|
||||||
attempt to alter or restrict the recipients' rights in the Source Code
|
|
||||||
Form.
|
|
||||||
|
|
||||||
3.2. Distribution of Executable Form
|
|
||||||
|
|
||||||
If You distribute Covered Software in Executable Form then:
|
|
||||||
|
|
||||||
(a) such Covered Software must also be made available in Source Code
|
|
||||||
Form, as described in Section 3.1, and You must inform recipients of
|
|
||||||
the Executable Form how they can obtain a copy of such Source Code
|
|
||||||
Form by reasonable means in a timely manner, at a charge no more
|
|
||||||
than the cost of distribution to the recipient; and
|
|
||||||
|
|
||||||
(b) You may distribute such Executable Form under the terms of this
|
|
||||||
License, or sublicense it under different terms, provided that the
|
|
||||||
license for the Executable Form does not attempt to limit or alter
|
|
||||||
the recipients' rights in the Source Code Form under this License.
|
|
||||||
|
|
||||||
3.3. Distribution of a Larger Work
|
|
||||||
|
|
||||||
You may create and distribute a Larger Work under terms of Your choice,
|
|
||||||
provided that You also comply with the requirements of this License for
|
|
||||||
the Covered Software. If the Larger Work is a combination of Covered
|
|
||||||
Software with a work governed by one or more Secondary Licenses, and the
|
|
||||||
Covered Software is not Incompatible With Secondary Licenses, this
|
|
||||||
License permits You to additionally distribute such Covered Software
|
|
||||||
under the terms of such Secondary License(s), so that the recipient of
|
|
||||||
the Larger Work may, at their option, further distribute the Covered
|
|
||||||
Software under the terms of either this License or such Secondary
|
|
||||||
License(s).
|
|
||||||
|
|
||||||
3.4. Notices
|
|
||||||
|
|
||||||
You may not remove or alter the substance of any license notices
|
|
||||||
(including copyright notices, patent notices, disclaimers of warranty,
|
|
||||||
or limitations of liability) contained within the Source Code Form of
|
|
||||||
the Covered Software, except that You may alter any license notices to
|
|
||||||
the extent required to remedy known factual inaccuracies.
|
|
||||||
|
|
||||||
3.5. Application of Additional Terms
|
|
||||||
|
|
||||||
You may choose to offer, and to charge a fee for, warranty, support,
|
|
||||||
indemnity or liability obligations to one or more recipients of Covered
|
|
||||||
Software. However, You may do so only on Your own behalf, and not on
|
|
||||||
behalf of any Contributor. You must make it absolutely clear that any
|
|
||||||
such warranty, support, indemnity, or liability obligation is offered by
|
|
||||||
You alone, and You hereby agree to indemnify every Contributor for any
|
|
||||||
liability incurred by such Contributor as a result of warranty, support,
|
|
||||||
indemnity or liability terms You offer. You may include additional
|
|
||||||
disclaimers of warranty and limitations of liability specific to any
|
|
||||||
jurisdiction.
|
|
||||||
|
|
||||||
4. Inability to Comply Due to Statute or Regulation
|
|
||||||
---------------------------------------------------
|
|
||||||
|
|
||||||
If it is impossible for You to comply with any of the terms of this
|
|
||||||
License with respect to some or all of the Covered Software due to
|
|
||||||
statute, judicial order, or regulation then You must: (a) comply with
|
|
||||||
the terms of this License to the maximum extent possible; and (b)
|
|
||||||
describe the limitations and the code they affect. Such description must
|
|
||||||
be placed in a text file included with all distributions of the Covered
|
|
||||||
Software under this License. Except to the extent prohibited by statute
|
|
||||||
or regulation, such description must be sufficiently detailed for a
|
|
||||||
recipient of ordinary skill to be able to understand it.
|
|
||||||
|
|
||||||
5. Termination
|
|
||||||
--------------
|
|
||||||
|
|
||||||
5.1. The rights granted under this License will terminate automatically
|
|
||||||
if You fail to comply with any of its terms. However, if You become
|
|
||||||
compliant, then the rights granted under this License from a particular
|
|
||||||
Contributor are reinstated (a) provisionally, unless and until such
|
|
||||||
Contributor explicitly and finally terminates Your grants, and (b) on an
|
|
||||||
ongoing basis, if such Contributor fails to notify You of the
|
|
||||||
non-compliance by some reasonable means prior to 60 days after You have
|
|
||||||
come back into compliance. Moreover, Your grants from a particular
|
|
||||||
Contributor are reinstated on an ongoing basis if such Contributor
|
|
||||||
notifies You of the non-compliance by some reasonable means, this is the
|
|
||||||
first time You have received notice of non-compliance with this License
|
|
||||||
from such Contributor, and You become compliant prior to 30 days after
|
|
||||||
Your receipt of the notice.
|
|
||||||
|
|
||||||
5.2. If You initiate litigation against any entity by asserting a patent
|
|
||||||
infringement claim (excluding declaratory judgment actions,
|
|
||||||
counter-claims, and cross-claims) alleging that a Contributor Version
|
|
||||||
directly or indirectly infringes any patent, then the rights granted to
|
|
||||||
You by any and all Contributors for the Covered Software under Section
|
|
||||||
2.1 of this License shall terminate.
|
|
||||||
|
|
||||||
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
|
||||||
end user license agreements (excluding distributors and resellers) which
|
|
||||||
have been validly granted by You or Your distributors under this License
|
|
||||||
prior to termination shall survive termination.
|
|
||||||
|
|
||||||
************************************************************************
|
|
||||||
* *
|
|
||||||
* 6. Disclaimer of Warranty *
|
|
||||||
* ------------------------- *
|
|
||||||
* *
|
|
||||||
* Covered Software is provided under this License on an "as is" *
|
|
||||||
* basis, without warranty of any kind, either expressed, implied, or *
|
|
||||||
* statutory, including, without limitation, warranties that the *
|
|
||||||
* Covered Software is free of defects, merchantable, fit for a *
|
|
||||||
* particular purpose or non-infringing. The entire risk as to the *
|
|
||||||
* quality and performance of the Covered Software is with You. *
|
|
||||||
* Should any Covered Software prove defective in any respect, You *
|
|
||||||
* (not any Contributor) assume the cost of any necessary servicing, *
|
|
||||||
* repair, or correction. This disclaimer of warranty constitutes an *
|
|
||||||
* essential part of this License. No use of any Covered Software is *
|
|
||||||
* authorized under this License except under this disclaimer. *
|
|
||||||
* *
|
|
||||||
************************************************************************
|
|
||||||
|
|
||||||
************************************************************************
|
|
||||||
* *
|
|
||||||
* 7. Limitation of Liability *
|
|
||||||
* -------------------------- *
|
|
||||||
* *
|
|
||||||
* Under no circumstances and under no legal theory, whether tort *
|
|
||||||
* (including negligence), contract, or otherwise, shall any *
|
|
||||||
* Contributor, or anyone who distributes Covered Software as *
|
|
||||||
* permitted above, be liable to You for any direct, indirect, *
|
|
||||||
* special, incidental, or consequential damages of any character *
|
|
||||||
* including, without limitation, damages for lost profits, loss of *
|
|
||||||
* goodwill, work stoppage, computer failure or malfunction, or any *
|
|
||||||
* and all other commercial damages or losses, even if such party *
|
|
||||||
* shall have been informed of the possibility of such damages. This *
|
|
||||||
* limitation of liability shall not apply to liability for death or *
|
|
||||||
* personal injury resulting from such party's negligence to the *
|
|
||||||
* extent applicable law prohibits such limitation. Some *
|
|
||||||
* jurisdictions do not allow the exclusion or limitation of *
|
|
||||||
* incidental or consequential damages, so this exclusion and *
|
|
||||||
* limitation may not apply to You. *
|
|
||||||
* *
|
|
||||||
************************************************************************
|
|
||||||
|
|
||||||
8. Litigation
|
|
||||||
-------------
|
|
||||||
|
|
||||||
Any litigation relating to this License may be brought only in the
|
|
||||||
courts of a jurisdiction where the defendant maintains its principal
|
|
||||||
place of business and such litigation shall be governed by laws of that
|
|
||||||
jurisdiction, without reference to its conflict-of-law provisions.
|
|
||||||
Nothing in this Section shall prevent a party's ability to bring
|
|
||||||
cross-claims or counter-claims.
|
|
||||||
|
|
||||||
9. Miscellaneous
|
|
||||||
----------------
|
|
||||||
|
|
||||||
This License represents the complete agreement concerning the subject
|
|
||||||
matter hereof. If any provision of this License is held to be
|
|
||||||
unenforceable, such provision shall be reformed only to the extent
|
|
||||||
necessary to make it enforceable. Any law or regulation which provides
|
|
||||||
that the language of a contract shall be construed against the drafter
|
|
||||||
shall not be used to construe this License against a Contributor.
|
|
||||||
|
|
||||||
10. Versions of the License
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
10.1. New Versions
|
|
||||||
|
|
||||||
Mozilla Foundation is the license steward. Except as provided in Section
|
|
||||||
10.3, no one other than the license steward has the right to modify or
|
|
||||||
publish new versions of this License. Each version will be given a
|
|
||||||
distinguishing version number.
|
|
||||||
|
|
||||||
10.2. Effect of New Versions
|
|
||||||
|
|
||||||
You may distribute the Covered Software under the terms of the version
|
|
||||||
of the License under which You originally received the Covered Software,
|
|
||||||
or under the terms of any subsequent version published by the license
|
|
||||||
steward.
|
|
||||||
|
|
||||||
10.3. Modified Versions
|
|
||||||
|
|
||||||
If you create software not governed by this License, and you want to
|
|
||||||
create a new license for such software, you may create and use a
|
|
||||||
modified version of this License if you rename the license and remove
|
|
||||||
any references to the name of the license steward (except to note that
|
|
||||||
such modified license differs from this License).
|
|
||||||
|
|
||||||
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
|
||||||
Licenses
|
|
||||||
|
|
||||||
If You choose to distribute Source Code Form that is Incompatible With
|
|
||||||
Secondary Licenses under the terms of this version of the License, the
|
|
||||||
notice described in Exhibit B of this License must be attached.
|
|
||||||
|
|
||||||
Exhibit A - Source Code Form License Notice
|
|
||||||
-------------------------------------------
|
|
||||||
|
|
||||||
This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
If it is not possible or desirable to put the notice in a particular
|
|
||||||
file, then You may include the notice in a location (such as a LICENSE
|
|
||||||
file in a relevant directory) where a recipient would be likely to look
|
|
||||||
for such a notice.
|
|
||||||
|
|
||||||
You may add additional accurate notices of copyright ownership.
|
|
||||||
|
|
||||||
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
|
||||||
---------------------------------------------------------
|
|
||||||
|
|
||||||
This Source Code Form is "Incompatible With Secondary Licenses", as
|
|
||||||
defined by the Mozilla Public License, v. 2.0.
|
|
|
@ -1,157 +0,0 @@
|
||||||
import { ReactNode } from 'react';
|
|
||||||
type Yoga = any;
|
|
||||||
|
|
||||||
declare const code: {
|
|
||||||
readonly 'ja-JP': RegExp;
|
|
||||||
readonly 'ko-KR': RegExp;
|
|
||||||
readonly 'zh-CN': RegExp;
|
|
||||||
readonly 'zh-TW': RegExp;
|
|
||||||
readonly 'zh-HK': RegExp;
|
|
||||||
readonly 'th-TH': RegExp;
|
|
||||||
readonly 'bn-IN': RegExp;
|
|
||||||
readonly 'ar-AR': RegExp;
|
|
||||||
readonly 'ta-IN': RegExp;
|
|
||||||
readonly 'ml-IN': RegExp;
|
|
||||||
readonly 'he-IL': RegExp;
|
|
||||||
readonly 'te-IN': RegExp;
|
|
||||||
readonly devanagari: RegExp;
|
|
||||||
readonly kannada: RegExp;
|
|
||||||
};
|
|
||||||
declare type Locale = keyof typeof code;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class handles everything related to fonts.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare type Weight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
||||||
declare type Style$1 = 'normal' | 'italic';
|
|
||||||
interface FontOptions {
|
|
||||||
data: Buffer | ArrayBuffer;
|
|
||||||
name: string;
|
|
||||||
weight?: Weight;
|
|
||||||
style?: Style$1;
|
|
||||||
lang?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare type Style = {
|
|
||||||
[key: string]: string[] | string | number | boolean | Style;
|
|
||||||
};
|
|
||||||
declare type NotImplemented = (...args: any) => unknown;
|
|
||||||
declare type AddedUtilities = Record<string, Style | string>;
|
|
||||||
declare type PluginFunction = (obj: {
|
|
||||||
addUtilities(utilities: AddedUtilities): unknown;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
addComponents: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
addBase: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
addVariant: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
e: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
prefix: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
theme: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
variants: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
config: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
corePlugins: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
matchUtilities: NotImplemented;
|
|
||||||
/**
|
|
||||||
* @deprecated not supported in @jaredh159/twrn
|
|
||||||
*/
|
|
||||||
postcss: unknown;
|
|
||||||
}) => unknown;
|
|
||||||
|
|
||||||
declare type TwFontSize = string | [string, string] | [string, {
|
|
||||||
lineHeight?: string;
|
|
||||||
letterSpacing?: string;
|
|
||||||
}];
|
|
||||||
declare type TwScreen = string | {
|
|
||||||
max?: string;
|
|
||||||
min?: string;
|
|
||||||
};
|
|
||||||
declare type TwColors<K extends keyof any = string, V = string> = {
|
|
||||||
[key: string]: V | TwColors<K, V>;
|
|
||||||
};
|
|
||||||
interface TwTheme {
|
|
||||||
fontSize?: Record<string, TwFontSize>;
|
|
||||||
lineHeight?: Record<string, string>;
|
|
||||||
spacing?: Record<string, string>;
|
|
||||||
padding?: Record<string, string>;
|
|
||||||
margin?: Record<string, string>;
|
|
||||||
inset?: Record<string, string>;
|
|
||||||
height?: Record<string, string>;
|
|
||||||
width?: Record<string, string>;
|
|
||||||
maxWidth?: Record<string, string>;
|
|
||||||
maxHeight?: Record<string, string>;
|
|
||||||
minWidth?: Record<string, string>;
|
|
||||||
minHeight?: Record<string, string>;
|
|
||||||
letterSpacing?: Record<string, string>;
|
|
||||||
borderWidth?: Record<string, string>;
|
|
||||||
borderRadius?: Record<string, string>;
|
|
||||||
screens?: Record<string, TwScreen>;
|
|
||||||
opacity?: Record<string, number | string>;
|
|
||||||
flex?: Record<string, string>;
|
|
||||||
flexGrow?: Record<string, number | string>;
|
|
||||||
flexShrink?: Record<string, number | string>;
|
|
||||||
fontWeight?: Record<string, number | string>;
|
|
||||||
fontFamily?: Record<string, string | string[]>;
|
|
||||||
zIndex?: Record<string, number | string>;
|
|
||||||
colors?: TwColors;
|
|
||||||
backgroundColor?: TwColors;
|
|
||||||
borderColor?: TwColors;
|
|
||||||
textColor?: TwColors;
|
|
||||||
extend?: Omit<TwTheme, 'extend'>;
|
|
||||||
}
|
|
||||||
interface TwConfig {
|
|
||||||
theme?: TwTheme;
|
|
||||||
plugins?: Array<{
|
|
||||||
handler: PluginFunction;
|
|
||||||
}>;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare function init(yoga: Yoga): void;
|
|
||||||
|
|
||||||
declare type SatoriOptions = ({
|
|
||||||
width: number;
|
|
||||||
height: number;
|
|
||||||
} | {
|
|
||||||
width: number;
|
|
||||||
} | {
|
|
||||||
height: number;
|
|
||||||
}) & {
|
|
||||||
fonts: FontOptions[];
|
|
||||||
embedFont?: boolean;
|
|
||||||
debug?: boolean;
|
|
||||||
graphemeImages?: Record<string, string>;
|
|
||||||
loadAdditionalAsset?: (languageCode: string, segment: string) => Promise<FontOptions | string | undefined>;
|
|
||||||
tailwindConfig?: TwConfig;
|
|
||||||
};
|
|
||||||
|
|
||||||
declare function satori(element: ReactNode, options: SatoriOptions): Promise<string>;
|
|
||||||
|
|
||||||
export { FontOptions as Font, Style$1 as FontStyle, Weight as FontWeight, Locale, SatoriOptions, satori as default, init };
|
|
65
packages/next/src/compiled/@vercel/og/types.d.ts
vendored
65
packages/next/src/compiled/@vercel/og/types.d.ts
vendored
|
@ -1,65 +0,0 @@
|
||||||
/// <reference types="node" />
|
|
||||||
import type { SatoriOptions } from "next/dist/compiled/@vercel/og/satori";
|
|
||||||
import type { EmojiType } from './emoji';
|
|
||||||
import type { OutgoingHttpHeader } from 'http';
|
|
||||||
declare type ImageOptions = {
|
|
||||||
/**
|
|
||||||
* The width of the image.
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @default 1200
|
|
||||||
*/
|
|
||||||
width?: number;
|
|
||||||
/**
|
|
||||||
* The height of the image.
|
|
||||||
*
|
|
||||||
* @type {number}
|
|
||||||
* @default 630
|
|
||||||
*/
|
|
||||||
height?: number;
|
|
||||||
/**
|
|
||||||
* Display debug information on the image.
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @default false
|
|
||||||
*/
|
|
||||||
debug?: boolean;
|
|
||||||
/**
|
|
||||||
* A list of fonts to use.
|
|
||||||
*
|
|
||||||
* @type {{ data: ArrayBuffer; name: string; weight?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; style?: 'normal' | 'italic' }[]}
|
|
||||||
* @default Noto Sans Latin Regular.
|
|
||||||
*/
|
|
||||||
fonts?: SatoriOptions['fonts'];
|
|
||||||
/**
|
|
||||||
* Using a specific Emoji style. Defaults to `twemoji`.
|
|
||||||
*
|
|
||||||
* @link https://github.com/vercel/og#emoji
|
|
||||||
* @type {EmojiType}
|
|
||||||
* @default 'twemoji'
|
|
||||||
*/
|
|
||||||
emoji?: EmojiType;
|
|
||||||
};
|
|
||||||
export declare type ImageResponseNodeOptions = ImageOptions & {
|
|
||||||
status?: number;
|
|
||||||
statusText?: string;
|
|
||||||
headers?: OutgoingHttpHeader[];
|
|
||||||
};
|
|
||||||
export declare type ImageResponseOptions = ImageOptions & ConstructorParameters<typeof Response>[1];
|
|
||||||
declare module 'react' {
|
|
||||||
interface HTMLAttributes<T> {
|
|
||||||
/**
|
|
||||||
* Specify styles using Tailwind CSS classes. This feature is currently experimental.
|
|
||||||
* If `style` prop is also specified, styles generated with `tw` prop will be overridden.
|
|
||||||
*
|
|
||||||
* Example:
|
|
||||||
* - `tw='w-full h-full bg-blue-200'`
|
|
||||||
* - `tw='text-9xl'`
|
|
||||||
* - `tw='text-[80px]'`
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
tw?: string;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
export {};
|
|
Binary file not shown.
|
@ -1,2 +0,0 @@
|
||||||
// This file is for modularized imports for next/server to get fully-treeshaking.
|
|
||||||
export { ImageResponse as default } from '../spec-extension/image-response'
|
|
|
@ -1,2 +0,0 @@
|
||||||
// This file is for modularized imports for next/server to get fully-treeshaking.
|
|
||||||
export { NextRequest as default } from '../spec-extension/request'
|
|
|
@ -1,2 +0,0 @@
|
||||||
// This file is for modularized imports for next/server to get fully-treeshaking.
|
|
||||||
export { NextResponse as default } from '../spec-extension/response'
|
|
|
@ -1,5 +0,0 @@
|
||||||
const GlobalURLPattern =
|
|
||||||
// @ts-expect-error: URLPattern is not available in Node.js
|
|
||||||
typeof URLPattern === 'undefined' ? undefined : URLPattern
|
|
||||||
|
|
||||||
export default GlobalURLPattern
|
|
|
@ -1,2 +0,0 @@
|
||||||
// This file is for modularized imports for next/server to get fully-treeshaking.
|
|
||||||
export { userAgentFromString as default } from '../spec-extension/user-agent'
|
|
|
@ -1,2 +0,0 @@
|
||||||
// This file is for modularized imports for next/server to get fully-treeshaking.
|
|
||||||
export { userAgent as default } from '../spec-extension/user-agent'
|
|
|
@ -1,51 +0,0 @@
|
||||||
export class ImageResponse {
|
|
||||||
constructor(
|
|
||||||
...args: ConstructorParameters<
|
|
||||||
typeof import('next/dist/compiled/@vercel/og').ImageResponse
|
|
||||||
>
|
|
||||||
) {
|
|
||||||
const readable = new ReadableStream({
|
|
||||||
async start(controller) {
|
|
||||||
const OGImageResponse: typeof import('next/dist/compiled/@vercel/og').ImageResponse =
|
|
||||||
// So far we have to manually determine which build to use,
|
|
||||||
// as the auto resolving is not working
|
|
||||||
(
|
|
||||||
await import(
|
|
||||||
process.env.NEXT_RUNTIME === 'edge'
|
|
||||||
? 'next/dist/compiled/@vercel/og/index.edge'
|
|
||||||
: 'next/dist/compiled/@vercel/og/index.node'
|
|
||||||
)
|
|
||||||
).ImageResponse
|
|
||||||
const imageResponse = new OGImageResponse(...args) as Response
|
|
||||||
|
|
||||||
if (!imageResponse.body) {
|
|
||||||
return controller.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
const reader = imageResponse.body!.getReader()
|
|
||||||
while (true) {
|
|
||||||
const { done, value } = await reader.read()
|
|
||||||
if (done) {
|
|
||||||
return controller.close()
|
|
||||||
}
|
|
||||||
controller.enqueue(value)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
const options = args[1] || {}
|
|
||||||
|
|
||||||
return new Response(readable, {
|
|
||||||
headers: {
|
|
||||||
'content-type': 'image/png',
|
|
||||||
'cache-control':
|
|
||||||
process.env.NODE_ENV === 'development'
|
|
||||||
? 'no-cache, no-store'
|
|
||||||
: 'public, immutable, no-transform, max-age=31536000',
|
|
||||||
...options.headers,
|
|
||||||
},
|
|
||||||
status: options.status,
|
|
||||||
statusText: options.statusText,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { I18NConfig } from '../config-shared'
|
import type { I18NConfig } from '../config-shared'
|
||||||
import type { NextRequest } from './spec-extension/request'
|
import type { NextRequest } from '../web/spec-extension/request'
|
||||||
import type { NextFetchEvent } from './spec-extension/fetch-event'
|
import type { NextFetchEvent } from '../web/spec-extension/fetch-event'
|
||||||
import type { NextResponse } from './spec-extension/response'
|
import type { NextResponse } from './spec-extension/response'
|
||||||
import type { CloneableBody } from '../body-streams'
|
import type { CloneableBody } from '../body-streams'
|
||||||
|
|
||||||
|
|
|
@ -213,77 +213,6 @@ export async function copy_babel_runtime(task, opts) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
externals['@vercel/og'] = 'next/dist/compiled/@vercel/og'
|
|
||||||
export async function copy_vercel_og(task, opts) {
|
|
||||||
await task
|
|
||||||
.source(
|
|
||||||
join(
|
|
||||||
dirname(require.resolve('@vercel/og/package.json')),
|
|
||||||
'{LICENSE,./dist/*.+(js|ttf|wasm)}'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
.target('src/compiled/@vercel/og')
|
|
||||||
|
|
||||||
// Types are not bundled, include satori types here
|
|
||||||
await task
|
|
||||||
.source(
|
|
||||||
join(dirname(require.resolve('satori/package.json')), 'dist/index.d.ts')
|
|
||||||
)
|
|
||||||
// eslint-disable-next-line require-yield
|
|
||||||
.run({ every: true }, function* (file) {
|
|
||||||
const source = file.data.toString()
|
|
||||||
// Ignore yoga-wasm-web types
|
|
||||||
file.data = source.replace(
|
|
||||||
/import { Yoga } from ['"]yoga-wasm-web['"]/g,
|
|
||||||
'type Yoga = any'
|
|
||||||
)
|
|
||||||
})
|
|
||||||
.target('src/compiled/@vercel/og/satori')
|
|
||||||
await task
|
|
||||||
.source(join(dirname(require.resolve('satori/package.json')), 'LICENSE'))
|
|
||||||
.target('src/compiled/@vercel/og/satori')
|
|
||||||
|
|
||||||
await task
|
|
||||||
.source(
|
|
||||||
join(
|
|
||||||
dirname(require.resolve('@vercel/og/package.json')),
|
|
||||||
'dist/**/*.d.ts'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
// eslint-disable-next-line require-yield
|
|
||||||
.run({ every: true }, function* (file) {
|
|
||||||
const source = file.data.toString()
|
|
||||||
// Refers to copied satori types
|
|
||||||
file.data = source.replace(
|
|
||||||
/['"]satori['"]/g,
|
|
||||||
'"next/dist/compiled/@vercel/og/satori"'
|
|
||||||
)
|
|
||||||
})
|
|
||||||
.target('src/compiled/@vercel/og')
|
|
||||||
|
|
||||||
await fs.writeFile(
|
|
||||||
join(__dirname, 'src/compiled/@vercel/og/package.json'),
|
|
||||||
JSON.stringify(
|
|
||||||
{
|
|
||||||
name: '@vercel/og',
|
|
||||||
LICENSE: 'MLP-2.0',
|
|
||||||
type: 'module',
|
|
||||||
main: './index.node.js',
|
|
||||||
exports: {
|
|
||||||
'.': {
|
|
||||||
'edge-light': './index.edge.js',
|
|
||||||
import: './index.node.js',
|
|
||||||
node: './index.node.js',
|
|
||||||
default: './index.node.js',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
null,
|
|
||||||
2
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// eslint-disable-next-line camelcase
|
// eslint-disable-next-line camelcase
|
||||||
externals['node-fetch'] = 'next/dist/compiled/node-fetch'
|
externals['node-fetch'] = 'next/dist/compiled/node-fetch'
|
||||||
export async function ncc_node_fetch(task, opts) {
|
export async function ncc_node_fetch(task, opts) {
|
||||||
|
@ -2280,7 +2209,6 @@ export async function ncc(task, opts) {
|
||||||
'ncc_cssnano_simple_bundle',
|
'ncc_cssnano_simple_bundle',
|
||||||
'copy_regenerator_runtime',
|
'copy_regenerator_runtime',
|
||||||
'copy_babel_runtime',
|
'copy_babel_runtime',
|
||||||
'copy_vercel_og',
|
|
||||||
'copy_constants_browserify',
|
'copy_constants_browserify',
|
||||||
'copy_vendor_react',
|
'copy_vendor_react',
|
||||||
'copy_react_is',
|
'copy_react_is',
|
||||||
|
|
9
packages/next/types/misc.d.ts
vendored
9
packages/next/types/misc.d.ts
vendored
|
@ -404,15 +404,6 @@ declare module 'next/dist/compiled/shell-quote' {
|
||||||
export = m
|
export = m
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'next/dist/compiled/@vercel/og/satori-types' {
|
|
||||||
export * from 'satori'
|
|
||||||
}
|
|
||||||
declare module 'next/dist/compiled/@vercel/og' {
|
|
||||||
export * from '@vercel/og'
|
|
||||||
}
|
|
||||||
declare module 'next/dist/compiled/@vercel/og/index.node'
|
|
||||||
declare module 'next/dist/compiled/@vercel/og/index.edge'
|
|
||||||
|
|
||||||
declare namespace NodeJS {
|
declare namespace NodeJS {
|
||||||
interface ProcessVersions {
|
interface ProcessVersions {
|
||||||
pnp?: string
|
pnp?: string
|
||||||
|
|
|
@ -55,7 +55,7 @@ importers:
|
||||||
'@typescript-eslint/eslint-plugin': 4.29.1
|
'@typescript-eslint/eslint-plugin': 4.29.1
|
||||||
'@typescript-eslint/parser': 4.29.1
|
'@typescript-eslint/parser': 4.29.1
|
||||||
'@vercel/fetch': 6.1.1
|
'@vercel/fetch': 6.1.1
|
||||||
'@vercel/og': 0.5.0
|
'@vercel/og': 0.4.1
|
||||||
'@webassemblyjs/ast': 1.11.1
|
'@webassemblyjs/ast': 1.11.1
|
||||||
'@webassemblyjs/floating-point-hex-parser': 1.11.1
|
'@webassemblyjs/floating-point-hex-parser': 1.11.1
|
||||||
'@webassemblyjs/helper-api-error': 1.11.1
|
'@webassemblyjs/helper-api-error': 1.11.1
|
||||||
|
@ -169,7 +169,6 @@ importers:
|
||||||
resolve-from: 5.0.0
|
resolve-from: 5.0.0
|
||||||
rimraf: 3.0.2
|
rimraf: 3.0.2
|
||||||
sass: 1.54.0
|
sass: 1.54.0
|
||||||
satori: 0.4.4
|
|
||||||
seedrandom: 3.0.5
|
seedrandom: 3.0.5
|
||||||
selenium-webdriver: 4.0.0-beta.4
|
selenium-webdriver: 4.0.0-beta.4
|
||||||
semver: 7.3.7
|
semver: 7.3.7
|
||||||
|
@ -236,7 +235,7 @@ importers:
|
||||||
'@typescript-eslint/eslint-plugin': 4.29.1_qxyn66xcaddhgaahwkbomftvi4
|
'@typescript-eslint/eslint-plugin': 4.29.1_qxyn66xcaddhgaahwkbomftvi4
|
||||||
'@typescript-eslint/parser': 4.29.1_6x3mpmmsttbpxxsctsorxedanu
|
'@typescript-eslint/parser': 4.29.1_6x3mpmmsttbpxxsctsorxedanu
|
||||||
'@vercel/fetch': 6.1.1_fii5qhbaymjqmfm7e2spxc5z4m
|
'@vercel/fetch': 6.1.1_fii5qhbaymjqmfm7e2spxc5z4m
|
||||||
'@vercel/og': 0.5.0
|
'@vercel/og': 0.4.1
|
||||||
'@webassemblyjs/ast': 1.11.1
|
'@webassemblyjs/ast': 1.11.1
|
||||||
'@webassemblyjs/floating-point-hex-parser': 1.11.1
|
'@webassemblyjs/floating-point-hex-parser': 1.11.1
|
||||||
'@webassemblyjs/helper-api-error': 1.11.1
|
'@webassemblyjs/helper-api-error': 1.11.1
|
||||||
|
@ -350,7 +349,6 @@ importers:
|
||||||
resolve-from: 5.0.0
|
resolve-from: 5.0.0
|
||||||
rimraf: 3.0.2
|
rimraf: 3.0.2
|
||||||
sass: 1.54.0
|
sass: 1.54.0
|
||||||
satori: 0.4.4
|
|
||||||
seedrandom: 3.0.5
|
seedrandom: 3.0.5
|
||||||
selenium-webdriver: 4.0.0-beta.4
|
selenium-webdriver: 4.0.0-beta.4
|
||||||
semver: 7.3.7
|
semver: 7.3.7
|
||||||
|
@ -5973,7 +5971,7 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@mdx-js/mdx': 2.2.1
|
'@mdx-js/mdx': 2.2.1
|
||||||
source-map: 0.7.3
|
source-map: 0.7.3
|
||||||
webpack: 5.74.0_@swc+core@1.2.203
|
webpack: 5.74.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
|
@ -6639,6 +6637,7 @@ packages:
|
||||||
cpu: [arm]
|
cpu: [arm]
|
||||||
os: [android]
|
os: [android]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-android-arm64/1.2.203:
|
/@swc/core-android-arm64/1.2.203:
|
||||||
|
@ -6647,6 +6646,7 @@ packages:
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [android]
|
os: [android]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-darwin-arm64/1.2.203:
|
/@swc/core-darwin-arm64/1.2.203:
|
||||||
|
@ -6655,6 +6655,7 @@ packages:
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-darwin-x64/1.2.203:
|
/@swc/core-darwin-x64/1.2.203:
|
||||||
|
@ -6663,6 +6664,7 @@ packages:
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-freebsd-x64/1.2.203:
|
/@swc/core-freebsd-x64/1.2.203:
|
||||||
|
@ -6671,6 +6673,7 @@ packages:
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [freebsd]
|
os: [freebsd]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-linux-arm-gnueabihf/1.2.203:
|
/@swc/core-linux-arm-gnueabihf/1.2.203:
|
||||||
|
@ -6679,6 +6682,7 @@ packages:
|
||||||
cpu: [arm]
|
cpu: [arm]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-linux-arm64-gnu/1.2.203:
|
/@swc/core-linux-arm64-gnu/1.2.203:
|
||||||
|
@ -6687,6 +6691,7 @@ packages:
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-linux-arm64-musl/1.2.203:
|
/@swc/core-linux-arm64-musl/1.2.203:
|
||||||
|
@ -6695,6 +6700,7 @@ packages:
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-linux-x64-gnu/1.2.203:
|
/@swc/core-linux-x64-gnu/1.2.203:
|
||||||
|
@ -6703,6 +6709,7 @@ packages:
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-linux-x64-musl/1.2.203:
|
/@swc/core-linux-x64-musl/1.2.203:
|
||||||
|
@ -6711,6 +6718,7 @@ packages:
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-win32-arm64-msvc/1.2.203:
|
/@swc/core-win32-arm64-msvc/1.2.203:
|
||||||
|
@ -6719,6 +6727,7 @@ packages:
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-win32-ia32-msvc/1.2.203:
|
/@swc/core-win32-ia32-msvc/1.2.203:
|
||||||
|
@ -6727,6 +6736,7 @@ packages:
|
||||||
cpu: [ia32]
|
cpu: [ia32]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core-win32-x64-msvc/1.2.203:
|
/@swc/core-win32-x64-msvc/1.2.203:
|
||||||
|
@ -6735,6 +6745,7 @@ packages:
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@swc/core/1.2.203:
|
/@swc/core/1.2.203:
|
||||||
|
@ -6755,6 +6766,7 @@ packages:
|
||||||
'@swc/core-win32-arm64-msvc': 1.2.203
|
'@swc/core-win32-arm64-msvc': 1.2.203
|
||||||
'@swc/core-win32-ia32-msvc': 1.2.203
|
'@swc/core-win32-ia32-msvc': 1.2.203
|
||||||
'@swc/core-win32-x64-msvc': 1.2.203
|
'@swc/core-win32-x64-msvc': 1.2.203
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@swc/helpers/0.4.11:
|
/@swc/helpers/0.4.11:
|
||||||
resolution: {integrity: sha512-rEUrBSGIoSFuYxwBYtlUFMlE2CwGhmW+w9355/5oduSw8e5h2+Tj4UrAGNNgP9915++wj5vkQo0UuOBqOAq4nw==}
|
resolution: {integrity: sha512-rEUrBSGIoSFuYxwBYtlUFMlE2CwGhmW+w9355/5oduSw8e5h2+Tj4UrAGNNgP9915++wj5vkQo0UuOBqOAq4nw==}
|
||||||
|
@ -7733,13 +7745,13 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@vercel/og/0.5.0:
|
/@vercel/og/0.4.1:
|
||||||
resolution: {integrity: sha512-NrHyWFj7fLixXPjgCXlyX90VdbiIfP6IBcyimiFGgwpnmyRgLiYTvrnPIKI/JP49VF9bnYHFfVqzMupeyCamuQ==}
|
resolution: {integrity: sha512-N8SXkbmQQRK0iHpqwUe50Fe8JO3sx2ByV6hgPTi16ONiMdqOM9uzE4QMWoY1Oa0uYZuUVA30sEB84mVMn+gT3w==}
|
||||||
engines: {node: '>=16'}
|
engines: {node: '>=16'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@resvg/resvg-wasm': 2.4.1
|
'@resvg/resvg-wasm': 2.4.1
|
||||||
satori: 0.4.4
|
satori: 0.4.1
|
||||||
yoga-wasm-web: 0.3.3
|
yoga-wasm-web: 0.3.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@webassemblyjs/ast/1.11.1:
|
/@webassemblyjs/ast/1.11.1:
|
||||||
|
@ -22372,8 +22384,8 @@ packages:
|
||||||
immutable: 4.1.0
|
immutable: 4.1.0
|
||||||
source-map-js: 1.0.2
|
source-map-js: 1.0.2
|
||||||
|
|
||||||
/satori/0.4.4:
|
/satori/0.4.1:
|
||||||
resolution: {integrity: sha512-UCgoY7CXibFQmgI4ay4QSWUOca07nI9pY56w8NKrBq+bkGgiMbcPXZWj9bxukyJkEl/cgAICGjjxvwlDF2NYRw==}
|
resolution: {integrity: sha512-uQm4+vQj57E9PO/ASAlxsRb+78fHkRUmkNLBBmfuEeGNLGqJ9ufYU7TzYP4XH60PLHYt9Wz1jSsgcAe2cz7+ng==}
|
||||||
engines: {node: '>=16'}
|
engines: {node: '>=16'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@shuding/opentype.js': 1.4.0-beta.0
|
'@shuding/opentype.js': 1.4.0-beta.0
|
||||||
|
@ -23727,6 +23739,7 @@ packages:
|
||||||
source-map: 0.6.1
|
source-map: 0.6.1
|
||||||
terser: 5.14.1
|
terser: 5.14.1
|
||||||
webpack: 5.74.0_@swc+core@1.2.203
|
webpack: 5.74.0_@swc+core@1.2.203
|
||||||
|
dev: true
|
||||||
|
|
||||||
/terser-webpack-plugin/5.2.4_webpack@5.74.0:
|
/terser-webpack-plugin/5.2.4_webpack@5.74.0:
|
||||||
resolution: {integrity: sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==}
|
resolution: {integrity: sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==}
|
||||||
|
@ -25132,6 +25145,7 @@ packages:
|
||||||
- '@swc/core'
|
- '@swc/core'
|
||||||
- esbuild
|
- esbuild
|
||||||
- uglify-js
|
- uglify-js
|
||||||
|
dev: true
|
||||||
|
|
||||||
/websocket-driver/0.7.3:
|
/websocket-driver/0.7.3:
|
||||||
resolution: {integrity: sha512-bpxWlvbbB459Mlipc5GBzzZwhoZgGEZLuqPaR0INBGnPAY1vdBX6hPnoFXiw+3yWxDuHyQjO2oXTMyS8A5haFg==}
|
resolution: {integrity: sha512-bpxWlvbbB459Mlipc5GBzzZwhoZgGEZLuqPaR0INBGnPAY1vdBX6hPnoFXiw+3yWxDuHyQjO2oXTMyS8A5haFg==}
|
||||||
|
@ -25514,6 +25528,10 @@ packages:
|
||||||
engines: {node: '>=12.20'}
|
engines: {node: '>=12.20'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/yoga-wasm-web/0.3.0:
|
||||||
|
resolution: {integrity: sha512-rD3L4jyMlO1m+RWU60lNwZQK5zmzglCV5fI1gTRikmpv3YzmNIZQbjyfE6cMNb9Xaly/C1SwemYGbsiOekMvnQ==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/yoga-wasm-web/0.3.3:
|
/yoga-wasm-web/0.3.3:
|
||||||
resolution: {integrity: sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==}
|
resolution: {integrity: sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ImageResponse } from 'next/server'
|
import { ImageResponse } from '@vercel/og'
|
||||||
|
|
||||||
export const contentType = 'image/png'
|
export const contentType = 'image/png'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ImageResponse } from 'next/server'
|
import { ImageResponse } from '@vercel/og'
|
||||||
|
|
||||||
export const alt = 'Open Graph'
|
export const alt = 'Open Graph'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ImageResponse } from 'next/server'
|
import { ImageResponse } from '@vercel/og'
|
||||||
|
|
||||||
export const contentType = 'image/png'
|
export const contentType = 'image/png'
|
||||||
export const size = { width: 512, height: 512 }
|
export const size = { width: 512, height: 512 }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ImageResponse } from 'next/server'
|
import { ImageResponse } from '@vercel/og'
|
||||||
|
|
||||||
export const alt = 'Open Graph'
|
export const alt = 'Open Graph'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ImageResponse } from 'next/server'
|
import { ImageResponse } from '@vercel/og'
|
||||||
|
|
||||||
export const alt = 'Twitter'
|
export const alt = 'Twitter'
|
||||||
export const size = { width: 1600, height: 900 }
|
export const size = { width: 1600, height: 900 }
|
||||||
|
|
|
@ -14,6 +14,9 @@ createNextDescribe(
|
||||||
{
|
{
|
||||||
files: __dirname,
|
files: __dirname,
|
||||||
skipDeployment: true,
|
skipDeployment: true,
|
||||||
|
dependencies: {
|
||||||
|
'@vercel/og': '0.4.1',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
({ next, isNextDev }) => {
|
({ next, isNextDev }) => {
|
||||||
describe('text routes', () => {
|
describe('text routes', () => {
|
||||||
|
|
Loading…
Reference in a new issue