ios-haptics 0.0.5 → 0.0.6

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.
Files changed (3) hide show
  1. package/LICENSE +357 -0
  2. package/dist/index.js +5 -0
  3. package/package.json +2 -1
package/LICENSE ADDED
@@ -0,0 +1,357 @@
1
+ Mozilla Public License Version 2.0
2
+
3
+ 1. Definitions
4
+
5
+ 1.1. "Contributor"
6
+ means each individual or legal entity that creates, contributes to the creation
7
+ of, or owns Covered Software.
8
+
9
+ 1.2. "Contributor Version" means the
10
+ combination of the Contributions of others (if any) used by a Contributor and
11
+ that particular Contributor's Contribution.
12
+
13
+ 1.3. "Contribution" means
14
+ Covered Software of a particular Contributor.
15
+
16
+ 1.4. "Covered Software"
17
+ means Source Code Form to which the initial Contributor has attached the notice
18
+ in Exhibit A, the Executable Form of such Source Code Form, and Modifications of
19
+ such Source Code Form, in each case including portions thereof.
20
+
21
+ 1.5.
22
+ "Incompatible With Secondary Licenses" means
23
+
24
+ (a) that the initial
25
+ Contributor has attached the notice described in Exhibit B to the Covered
26
+ Software; or
27
+
28
+ (b) that the Covered Software was made available under the
29
+ terms of version 1.1 or earlier of the License, but not also under the terms of a
30
+ Secondary License.
31
+
32
+ 1.6. "Executable Form" means any form of the work other
33
+ than Source Code Form.
34
+
35
+ 1.7. "Larger Work" means a work that combines
36
+ Covered Software with other material, in a separate file or files, that is not
37
+ Covered Software.
38
+
39
+ 1.8. "License" means this document.
40
+
41
+ 1.9.
42
+ "Licensable" means having the right to grant, to the maximum extent possible,
43
+ whether at the time of the initial grant or subsequently, any and all of the
44
+ rights conveyed by this License.
45
+
46
+ 1.10. "Modifications" means any of the
47
+ following:
48
+
49
+ (a) any file in Source Code Form that results from an
50
+ addition to, deletion from, or modification of the contents of Covered Software;
51
+ or
52
+
53
+ (b) any new file in Source Code Form that contains any Covered
54
+ Software.
55
+
56
+ 1.11. "Patent Claims" of a Contributor means any patent
57
+ claim(s), including without limitation, method, process, and apparatus claims, in
58
+ any patent Licensable by such Contributor that would be infringed, but for the
59
+ grant of the License, by the making, using, selling, offering for sale, having
60
+ made, import, or transfer of either its Contributions or its Contributor
61
+ Version.
62
+
63
+ 1.12. "Secondary License" means either the GNU General Public
64
+ License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU
65
+ Affero General Public License, Version 3.0, or any later versions of those
66
+ licenses.
67
+
68
+ 1.13. "Source Code Form" means the form of the work preferred
69
+ for making modifications.
70
+
71
+ 1.14. "You" (or "Your") means an individual or a
72
+ legal entity exercising rights under this License. For legal entities, "You"
73
+ includes any entity that controls, is controlled by, or is under common control
74
+ with You. For purposes of this definition, "control" means (a) the power, direct
75
+ or indirect, to cause the direction or management of such entity, whether by
76
+ contract or otherwise, or (b) ownership of more than fifty percent (50%) of the
77
+ outstanding shares or beneficial ownership of such entity.
78
+
79
+ 2. License Grants
80
+ and Conditions
81
+
82
+ 2.1. Grants
83
+
84
+ Each Contributor hereby grants You a
85
+ world-wide, royalty-free, non-exclusive license:
86
+
87
+ (a) under intellectual
88
+ property rights (other than patent or trademark) Licensable by such Contributor
89
+ to use, reproduce, make available, modify, display, perform, distribute, and
90
+ otherwise exploit its Contributions, either on an unmodified basis, with
91
+ Modifications, or as part of a Larger Work; and
92
+
93
+ (b) under Patent Claims
94
+ of such Contributor to make, use, sell, offer for sale, have made, import, and
95
+ otherwise transfer either its Contributions or its Contributor Version.
96
+
97
+
98
+ 2.2. Effective Date
99
+
100
+ The licenses granted in Section 2.1 with respect to
101
+ any Contribution become effective for each Contribution on the date the
102
+ Contributor first distributes such Contribution.
103
+
104
+ 2.3. Limitations on Grant
105
+ Scope
106
+
107
+ The licenses granted in this Section 2 are the only rights granted
108
+ under this License. No additional rights or licenses will be implied from the
109
+ distribution or licensing of Covered Software under this License. Notwithstanding
110
+ Section 2.1(b) above, no patent license is granted by a Contributor:
111
+
112
+
113
+ (a) for any code that a Contributor has removed from Covered Software; or
114
+
115
+
116
+ (b) for infringements caused by: (i) Your and any other third party's
117
+ modifications of Covered Software, or (ii) the combination of its Contributions
118
+ with other software (except as part of its Contributor Version); or
119
+
120
+ (c)
121
+ under Patent Claims infringed by Covered Software in the absence of its
122
+ Contributions.
123
+
124
+ This License does not grant any rights in the trademarks,
125
+ service marks, or logos of any Contributor (except as may be necessary to comply
126
+ with the notice requirements in Section 3.4).
127
+
128
+ 2.4. Subsequent Licenses
129
+
130
+
131
+ No Contributor makes additional grants as a result of Your choice to distribute
132
+ the Covered Software under a subsequent version of this License (see Section
133
+ 10.2) or under the terms of a Secondary License (if permitted under the terms of
134
+ Section 3.3).
135
+
136
+ 2.5. Representation
137
+
138
+ Each Contributor represents that
139
+ the Contributor believes its Contributions are its original creation(s) or it has
140
+ sufficient rights to grant the rights to its Contributions conveyed by this
141
+ License.
142
+
143
+ 2.6. Fair Use
144
+
145
+ This License is not intended to limit any
146
+ rights You have under applicable copyright doctrines of fair use, fair dealing,
147
+ or other equivalents.
148
+
149
+ 2.7. Conditions
150
+
151
+ Sections 3.1, 3.2, 3.3, and
152
+ 3.4 are conditions of the licenses granted in Section 2.1.
153
+
154
+ 3.
155
+ Responsibilities
156
+
157
+ 3.1. Distribution of Source Form
158
+
159
+ All distribution
160
+ of Covered Software in Source Code Form, including any Modifications that You
161
+ create or to which You contribute, must be under the terms of this License. You
162
+ must inform recipients that the Source Code Form of the Covered Software is
163
+ governed by the terms of this License, and how they can obtain a copy of this
164
+ License. You may not attempt to alter or restrict the recipients' rights in the
165
+ Source Code Form.
166
+
167
+ 3.2. Distribution of Executable Form
168
+
169
+ If You
170
+ distribute Covered Software in Executable Form then:
171
+
172
+ (a) such Covered
173
+ Software must also be made available in Source Code Form, as described in Section
174
+ 3.1, and You must inform recipients of the Executable Form how they can obtain a
175
+ copy of such Source Code Form by reasonable means in a timely manner, at a charge
176
+ no more than the cost of distribution to the recipient; and
177
+
178
+ (b) You may
179
+ distribute such Executable Form under the terms of this License, or sublicense it
180
+ under different terms, provided that the license for the Executable Form does not
181
+ attempt to limit or alter the recipients' rights in the Source Code Form under
182
+ this License.
183
+
184
+ 3.3. Distribution of a Larger Work
185
+
186
+ You may create and
187
+ distribute a Larger Work under terms of Your choice, provided that You also
188
+ comply with the requirements of this License for the Covered Software. If the
189
+ Larger Work is a combination of Covered Software with a work governed by one or
190
+ more Secondary Licenses, and the Covered Software is not Incompatible With
191
+ Secondary Licenses, this License permits You to additionally distribute such
192
+ Covered Software under the terms of such Secondary License(s), so that the
193
+ recipient of the Larger Work may, at their option, further distribute the Covered
194
+ Software under the terms of either this License or such Secondary License(s).
195
+
196
+
197
+ 3.4. Notices
198
+
199
+ You may not remove or alter the substance of any license
200
+ notices (including copyright notices, patent notices, disclaimers of warranty, or
201
+ limitations of liability) contained within the Source Code Form of the Covered
202
+ Software, except that You may alter any license notices to the extent required to
203
+ remedy known factual inaccuracies.
204
+
205
+ 3.5. Application of Additional Terms
206
+
207
+
208
+ You may choose to offer, and to charge a fee for, warranty, support, indemnity or
209
+ liability obligations to one or more recipients of Covered Software. However, You
210
+ may do so only on Your own behalf, and not on behalf of any Contributor. You must
211
+ make it absolutely clear that any such warranty, support, indemnity, or liability
212
+ obligation is offered by You alone, and You hereby agree to indemnify every
213
+ Contributor for any liability incurred by such Contributor as a result of
214
+ warranty, support, indemnity or liability terms You offer. You may include
215
+ additional disclaimers of warranty and limitations of liability specific to any
216
+ jurisdiction.
217
+
218
+ 4. Inability to Comply Due to Statute or Regulation
219
+
220
+ If it
221
+ is impossible for You to comply with any of the terms of this License with
222
+ respect to some or all of the Covered Software due to statute, judicial order, or
223
+ regulation then You must: (a) comply with the terms of this License to the
224
+ maximum extent possible; and (b) describe the limitations and the code they
225
+ affect. Such description must be placed in a text file included with all
226
+ distributions of the Covered Software under this License. Except to the extent
227
+ prohibited by statute or regulation, such description must be sufficiently
228
+ detailed for a recipient of ordinary skill to be able to understand it.
229
+
230
+ 5.
231
+ Termination
232
+
233
+ 5.1. The rights granted under this License will terminate
234
+ automatically if You fail to comply with any of its terms. However, if You become
235
+ compliant, then the rights granted under this License from a particular
236
+ Contributor are reinstated (a) provisionally, unless and until such Contributor
237
+ explicitly and finally terminates Your grants, and (b) on an ongoing basis, if
238
+ such Contributor fails to notify You of the non-compliance by some reasonable
239
+ means prior to 60 days after You have come back into compliance. Moreover, Your
240
+ grants from a particular Contributor are reinstated on an ongoing basis if such
241
+ Contributor notifies You of the non-compliance by some reasonable means, this is
242
+ the first time You have received notice of non-compliance with this License from
243
+ such Contributor, and You become compliant prior to 30 days after Your receipt of
244
+ the notice.
245
+
246
+ 5.2. If You initiate litigation against any entity by
247
+ asserting a patent infringement claim (excluding declaratory judgment actions,
248
+ counter-claims, and cross-claims) alleging that a Contributor Version directly or
249
+ indirectly infringes any patent, then the rights granted to You by any and all
250
+ Contributors for the Covered Software under Section 2.1 of this License shall
251
+ terminate.
252
+
253
+ 5.3. In the event of termination under Sections 5.1 or 5.2
254
+ above, all end user license agreements (excluding distributors and resellers)
255
+ which have been validly granted by You or Your distributors under this License
256
+ prior to termination shall survive termination.
257
+
258
+ 6. Disclaimer of Warranty
259
+
260
+
261
+ Covered Software is provided under this License on an "as is" basis, without
262
+ warranty of any kind, either expressed, implied, or statutory, including, without
263
+ limitation, warranties that the Covered Software is free of defects,
264
+ merchantable, fit for a particular purpose or non-infringing. The entire risk as
265
+ to the quality and performance of the Covered Software is with You. Should any
266
+ Covered Software prove defective in any respect, You (not any Contributor) assume
267
+ the cost of any necessary servicing, repair, or correction. This disclaimer of
268
+ warranty constitutes an essential part of this License. No use of any Covered
269
+ Software is authorized under this License except under this disclaimer.
270
+
271
+ 7.
272
+ Limitation of Liability
273
+
274
+ Under no circumstances and under no legal theory,
275
+ whether tort (including negligence), contract, or otherwise, shall any
276
+ Contributor, or anyone who distributes Covered Software as permitted above, be
277
+ liable to You for any direct, indirect, special, incidental, or consequential
278
+ damages of any character including, without limitation, damages for lost profits,
279
+ loss of goodwill, work stoppage, computer failure or malfunction, or any and all
280
+ other commercial damages or losses, even if such party shall have been informed
281
+ of the possibility of such damages. This limitation of liability shall not apply
282
+ to liability for death or personal injury resulting from such party's negligence
283
+ to the extent applicable law prohibits such limitation. Some jurisdictions do not
284
+ allow the exclusion or limitation of incidental or consequential damages, so this
285
+ exclusion and limitation may not apply to You.
286
+
287
+ 8. Litigation
288
+
289
+ Any
290
+ litigation relating to this License may be brought only in the courts of a
291
+ jurisdiction where the defendant maintains its principal place of business and
292
+ such litigation shall be governed by laws of that jurisdiction, without reference
293
+ to its conflict-of-law provisions. Nothing in this Section shall prevent a
294
+ party's ability to bring cross-claims or counter-claims.
295
+
296
+ 9. Miscellaneous
297
+
298
+
299
+ This License represents the complete agreement concerning the subject matter
300
+ hereof. If any provision of this License is held to be unenforceable, such
301
+ provision shall be reformed only to the extent necessary to make it enforceable.
302
+ Any law or regulation which provides that the language of a contract shall be
303
+ construed against the drafter shall not be used to construe this License against
304
+ a Contributor.
305
+
306
+ 10. Versions of the License
307
+
308
+ 10.1. New Versions
309
+
310
+
311
+ Mozilla Foundation is the license steward. Except as provided in Section 10.3, no
312
+ one other than the license steward has the right to modify or publish new
313
+ versions of this License. Each version will be given a distinguishing version
314
+ number.
315
+
316
+ 10.2. Effect of New Versions
317
+
318
+ You may distribute the Covered
319
+ Software under the terms of the version of the License under which You originally
320
+ received the Covered Software, or under the terms of any subsequent version
321
+ published by the license steward.
322
+
323
+ 10.3. Modified Versions
324
+
325
+ If you
326
+ create software not governed by this License, and you want to create a new
327
+ license for such software, you may create and use a modified version of this
328
+ License if you rename the license and remove any references to the name of the
329
+ license steward (except to note that such modified license differs from this
330
+ License).
331
+
332
+ 10.4. Distributing Source Code Form that is Incompatible With
333
+ Secondary Licenses
334
+
335
+ If You choose to distribute Source Code Form that is
336
+ Incompatible With Secondary Licenses under the terms of this version of the
337
+ License, the notice described in Exhibit B of this License must be attached.
338
+ Exhibit A - Source Code Form License Notice
339
+
340
+ This Source Code Form is subject to
341
+ the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
342
+ distributed with this file, You can obtain one at
343
+ http://mozilla.org/MPL/2.0/.
344
+
345
+ If it is not possible or desirable to put the
346
+ notice in a particular file, then You may include the notice in a location (such
347
+ as a LICENSE file in a relevant directory) where a recipient would be likely to
348
+ look for such a notice.
349
+
350
+ You may add additional accurate notices of copyright
351
+ ownership.
352
+
353
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
354
+
355
+ This
356
+ Source Code Form is "Incompatible With Secondary Licenses", as defined by the
357
+ Mozilla Public License, v. 2.0.
package/dist/index.js CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * ios-haptics v0.0.6
3
+ * tijn.dev
4
+ * @license MPL-2.0
5
+ **/
1
6
  //#region src/index.ts
2
7
  /**
3
8
  * A single haptic "click"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ios-haptics",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "haptic feedback for ios safari",
5
5
  "keywords": [
6
6
  "haptic",
@@ -12,6 +12,7 @@
12
12
  "vibrate"
13
13
  ],
14
14
  "repository": "tijnjh/ios-haptics",
15
+ "license": "MPL-2.0",
15
16
  "author": "tijnjh",
16
17
  "type": "module",
17
18
  "exports": {