Debian Codegraph @

debian/patches/dgit-changes

raw
1 From:
2 Subject: Debian changes
3
4 The Debian packaging of node-fullcalendar is maintained in git, using a workflow
5 similar to the one described in dgit-maint-merge(7).
6 The Debian delta is represented by this one combined patch; there isn't a
7 patch queue that can be represented as a quilt series.
8
9 A detailed breakdown of the changes is available from their canonical
10 representation -- git commits in the packaging repository.
11 For example, to see the changes made by the Debian maintainer in the first
12 upload of upstream version 1.2.3, you could use:
13
14 % git clone https://git.dgit.debian.org/node-fullcalendar
15 % cd node-fullcalendar
16 % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'
17
18 (If you have dgit, use `dgit clone node-fullcalendar`, rather than plain `git clone`.)
19
20 We don't use debian/source/options single-debian-patch because it has bugs.
21 Therefore, NMUs etc. may nevertheless have made additional patches.
22
23 ---
24
25 diff --git a/packages/icalendar/src/event-source-def.ts b/packages/icalendar/src/event-source-def.ts
26 index 227b529a..233e081a 100644
27 --- a/packages/icalendar/src/event-source-def.ts
28 +++ b/packages/icalendar/src/event-source-def.ts
29 @@ -1,8 +1,9 @@
30 import { EventInput } from '@fullcalendar/core'
31 import { EventSourceDef, DateRange, addDays } from '@fullcalendar/core/internal'
32 -import * as ICAL from 'ical.js'
33 import { IcalExpander } from './ical-expander/IcalExpander.js'
34
35 +type ICalEvent = any
36 +
37 interface ICalFeedMeta {
38 url: string
39 format: 'ics', // for EventSourceApi
40 @@ -102,7 +103,7 @@ function expandICalEvents(iCalExpander: IcalExpander, range: DateRange): EventIn
41 return expanded
42 }
43
44 -function buildNonDateProps(iCalEvent: ICAL.Event): EventInput {
45 +function buildNonDateProps(iCalEvent: ICalEvent): EventInput {
46 return {
47 title: iCalEvent.summary,
48 url: extractEventUrl(iCalEvent),
49 @@ -114,12 +115,12 @@ function buildNonDateProps(iCalEvent: ICAL.Event): EventInput {
50 }
51 }
52
53 -function extractEventUrl(iCalEvent: ICAL.Event): string {
54 +function extractEventUrl(iCalEvent: ICalEvent): string {
55 let urlProp = iCalEvent.component.getFirstProperty('url')
56 return urlProp ? urlProp.getFirstValue() : ''
57 }
58
59 -function specifiesEnd(iCalEvent: ICAL.Event) {
60 +function specifiesEnd(iCalEvent: ICalEvent) {
61 return Boolean(iCalEvent.component.getFirstProperty('dtend')) ||
62 Boolean(iCalEvent.component.getFirstProperty('duration'))
63 }
64 diff --git a/packages/luxon1/src/convert.ts b/packages/luxon1/src/convert.ts
65 index e2034542..0ddb65ed 100644
66 --- a/packages/luxon1/src/convert.ts
67 +++ b/packages/luxon1/src/convert.ts
68 @@ -12,7 +12,7 @@ export function toLuxonDateTime(date: Date, calendar: CalendarApi): LuxonDateTim
69 return LuxonDateTime.fromJSDate(date, {
70 zone: dateEnv.timeZone,
71 locale: dateEnv.locale.codes[0],
72 - })
73 + } as any)
74 }
75
76 export function toLuxonDuration(duration: Duration, calendar: CalendarApi): LuxonDuration {
77 @@ -25,7 +25,7 @@ export function toLuxonDuration(duration: Duration, calendar: CalendarApi): Luxo
78 return LuxonDuration.fromObject({
79 ...duration,
80 locale: dateEnv.locale.codes[0],
81 - })
82 + } as any)
83 }
84
85 // Internal Utils
86 @@ -53,5 +53,5 @@ export function arrayToLuxon(arr: number[], timeZone: string, locale?: string):
87 minute: arr[4],
88 second: arr[5],
89 millisecond: arr[6],
90 - })
91 + } as any)
92 }
93 diff --git a/packages/luxon2/src/convert.ts b/packages/luxon2/src/convert.ts
94 index 943b099e..f2a6420d 100644
95 --- a/packages/luxon2/src/convert.ts
96 +++ b/packages/luxon2/src/convert.ts
97 @@ -12,9 +12,7 @@ export function toLuxonDateTime(date: Date, calendar: CalendarApi): LuxonDateTim
98 return LuxonDateTime.fromJSDate(date, {
99 zone: dateEnv.timeZone,
100 locale: dateEnv.locale.codes[0],
101 - } as {
102 - zone: string // HACK to allow locale property, which IS supported
103 - })
104 + } as any) // HACK to allow locale property, which IS supported
105 }
106
107 export function toLuxonDuration(duration: Duration, calendar: CalendarApi): LuxonDuration {
108 @@ -26,7 +24,7 @@ export function toLuxonDuration(duration: Duration, calendar: CalendarApi): Luxo
109
110 return LuxonDuration.fromObject(duration, {
111 locale: dateEnv.locale.codes[0],
112 - })
113 + } as any)
114 }
115
116 // Internal Utils
117 @@ -55,5 +53,5 @@ export function arrayToLuxon(arr: number[], timeZone: string, locale?: string):
118 }, {
119 locale,
120 zone: timeZone,
121 - })
122 + } as any)
123 }
124 diff --git a/packages/luxon3/src/convert.ts b/packages/luxon3/src/convert.ts
125 index 943b099e..f2a6420d 100644
126 --- a/packages/luxon3/src/convert.ts
127 +++ b/packages/luxon3/src/convert.ts
128 @@ -12,9 +12,7 @@ export function toLuxonDateTime(date: Date, calendar: CalendarApi): LuxonDateTim
129 return LuxonDateTime.fromJSDate(date, {
130 zone: dateEnv.timeZone,
131 locale: dateEnv.locale.codes[0],
132 - } as {
133 - zone: string // HACK to allow locale property, which IS supported
134 - })
135 + } as any) // HACK to allow locale property, which IS supported
136 }
137
138 export function toLuxonDuration(duration: Duration, calendar: CalendarApi): LuxonDuration {
139 @@ -26,7 +24,7 @@ export function toLuxonDuration(duration: Duration, calendar: CalendarApi): Luxo
140
141 return LuxonDuration.fromObject(duration, {
142 locale: dateEnv.locale.codes[0],
143 - })
144 + } as any)
145 }
146
147 // Internal Utils
148 @@ -55,5 +53,5 @@ export function arrayToLuxon(arr: number[], timeZone: string, locale?: string):
149 }, {
150 locale,
151 zone: timeZone,
152 - })
153 + } as any)
154 }
155 diff --git a/scripts/src/pkg/bundle.ts b/scripts/src/pkg/bundle.ts
156 index 41969ad5..748531d0 100644
157 --- a/scripts/src/pkg/bundle.ts
158 +++ b/scripts/src/pkg/bundle.ts
159 @@ -37,16 +37,14 @@ export async function writeBundles(
160 const pkgBundleStruct = await buildPkgBundleStruct(pkgDir, pkgJson)
161 const optionsObjs = await buildRollupOptionObjs(pkgBundleStruct, monorepoStruct, isDev)
162
163 - await Promise.all(
164 - optionsObjs.map(async (options) => {
165 - const bundle = await rollup(options)
166 - const outputOptionObjs: OutputOptions[] = arrayify(options.output)
167 -
168 - await Promise.all(
169 - outputOptionObjs.map((outputOptions) => bundle.write(outputOptions)),
170 - )
171 - }),
172 - )
173 + for (const options of optionsObjs) {
174 + const bundle = await rollup(options)
175 + const outputOptionObjs: OutputOptions[] = arrayify(options.output)
176 +
177 + await Promise.all(
178 + outputOptionObjs.map((outputOptions) => bundle.write(outputOptions)),
179 + )
180 + }
181 }
182
183 export async function watchBundles(
184 diff --git a/scripts/src/pkg/utils/rollup-presets.ts b/scripts/src/pkg/utils/rollup-presets.ts
185 index 76ea5cd5..dc44d890 100644
186 --- a/scripts/src/pkg/utils/rollup-presets.ts
187 +++ b/scripts/src/pkg/utils/rollup-presets.ts
188 @@ -8,6 +8,7 @@ import sourcemapsPlugin from 'rollup-plugin-sourcemaps'
189 import commonjsPluginLib from '@rollup/plugin-commonjs'
190 import jsonPluginLib from '@rollup/plugin-json'
191 import postcssPluginLib from 'rollup-plugin-postcss'
192 +import postcssCommentParserLib from 'postcss-comment'
193 import replacePluginLib from '@rollup/plugin-replace'
194 import { mapProps } from '../../utils/lang.js'
195 import { MonorepoStruct } from '../../utils/monorepo-struct.js'
196 @@ -50,6 +51,7 @@ import {
197 const commonjsPlugin = cjsInterop(commonjsPluginLib)
198 const jsonPlugin = cjsInterop(jsonPluginLib)
199 const postcssPlugin = cjsInterop(postcssPluginLib)
200 +const postcssCommentParser = cjsInterop(postcssCommentParserLib)
201 const replacePlugin = cjsInterop(replacePluginLib)
202
203 /*
204 @@ -390,6 +392,7 @@ function cssPlugin(options?: { inject?: CssInjector | boolean }): Plugin {
205 path: joinPaths(standardScriptsDir, 'config/postcss.config.cjs'),
206 ctx: {}, // arguments given to config file
207 },
208 + parser: (postcssCommentParser as any).parse,
209 inject: typeof inject === 'object' ?
210 (cssVarName: string) => {
211 return `import { ${inject.importProp} } from ${JSON.stringify(inject.importId)};\n` +