@nativescript/core 8.8.0-alpha.1 → 8.8.0-alpha.2

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 (66) hide show
  1. package/data/observable/index.d.ts +34 -19
  2. package/data/observable/index.js +82 -78
  3. package/data/observable/index.js.map +1 -1
  4. package/data/observable-array/index.d.ts +10 -6
  5. package/data/virtual-array/index.d.ts +9 -5
  6. package/image-source/index.android.d.ts +2 -0
  7. package/image-source/index.android.js +6 -0
  8. package/image-source/index.android.js.map +1 -1
  9. package/image-source/index.d.ts +12 -0
  10. package/image-source/index.ios.d.ts +2 -0
  11. package/image-source/index.ios.js +25 -2
  12. package/image-source/index.ios.js.map +1 -1
  13. package/package.json +1 -1
  14. package/references.d.ts +1 -0
  15. package/ui/action-bar/index.d.ts +10 -6
  16. package/ui/button/index.android.js +3 -3
  17. package/ui/button/index.android.js.map +1 -1
  18. package/ui/button/index.d.ts +9 -5
  19. package/ui/core/bindable/index.d.ts +13 -0
  20. package/ui/core/bindable/index.js +24 -4
  21. package/ui/core/bindable/index.js.map +1 -1
  22. package/ui/core/view/index.d.ts +19 -12
  23. package/ui/core/view/view-common.d.ts +3 -3
  24. package/ui/core/view/view-common.js +35 -21
  25. package/ui/core/view/view-common.js.map +1 -1
  26. package/ui/frame/index.d.ts +10 -6
  27. package/ui/gestures/gestures-common.d.ts +10 -7
  28. package/ui/gestures/gestures-common.js +24 -71
  29. package/ui/gestures/gestures-common.js.map +1 -1
  30. package/ui/gestures/index.android.js +60 -46
  31. package/ui/gestures/index.android.js.map +1 -1
  32. package/ui/gestures/index.d.ts +3 -1
  33. package/ui/gestures/index.ios.d.ts +20 -2
  34. package/ui/gestures/index.ios.js +88 -66
  35. package/ui/gestures/index.ios.js.map +1 -1
  36. package/ui/gestures/touch-manager.js +2 -2
  37. package/ui/gestures/touch-manager.js.map +1 -1
  38. package/ui/image/image-common.d.ts +14 -0
  39. package/ui/image/image-common.js +19 -2
  40. package/ui/image/image-common.js.map +1 -1
  41. package/ui/image/index.d.ts +1 -0
  42. package/ui/image/index.ios.js +11 -1
  43. package/ui/image/index.ios.js.map +1 -1
  44. package/ui/image-cache/index.d.ts +10 -6
  45. package/ui/index.d.ts +1 -1
  46. package/ui/index.js.map +1 -1
  47. package/ui/list-view/index.d.ts +10 -6
  48. package/ui/page/index.d.ts +10 -6
  49. package/ui/placeholder/index.d.ts +9 -5
  50. package/ui/scroll-view/index.d.ts +9 -5
  51. package/ui/search-bar/index.d.ts +9 -5
  52. package/ui/segmented-bar/index.d.ts +9 -5
  53. package/ui/tab-view/index.d.ts +10 -6
  54. package/ui/web-view/index.d.ts +10 -6
  55. package/utils/common.d.ts +1 -0
  56. package/utils/common.js +3 -1
  57. package/utils/common.js.map +1 -1
  58. package/css/LICENSE +0 -9
  59. package/css/Readme.md +0 -278
  60. package/css-value/LICENSE +0 -9
  61. package/css-value/Readme.md +0 -45
  62. package/fetch/LICENSE +0 -20
  63. package/fetch/README.md +0 -1
  64. package/js-libs/easysax/LICENSE +0 -20
  65. package/js-libs/easysax/README.md +0 -46
  66. package/platforms/README.md +0 -1
@@ -111,12 +111,16 @@ export declare class Page extends PageBase {
111
111
  public accessibilityAnnouncePageEnabled: boolean;
112
112
 
113
113
  /**
114
- * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
115
- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
116
- * @param callback - Callback function which will be executed when event is raised.
117
- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
118
- */
119
- public on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
114
+ * Adds a listener for the specified event name.
115
+ *
116
+ * @param eventName The name of the event.
117
+ * @param callback The event listener to add. Will be called when an event of
118
+ * the given name is raised.
119
+ * @param thisArg An optional parameter which, when set, will be bound as the
120
+ * `this` context when the callback is called. Falsy values will be not be
121
+ * bound.
122
+ */
123
+ public on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
120
124
 
121
125
  /**
122
126
  * Raised when navigation to the page has started.
@@ -13,12 +13,16 @@ export class Placeholder extends View {
13
13
  public static creatingViewEvent: string;
14
14
 
15
15
  /**
16
- * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
17
- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
18
- * @param callback - Callback function which will be executed when event is raised.
19
- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
16
+ * Adds a listener for the specified event name.
17
+ *
18
+ * @param eventName The name of the event.
19
+ * @param callback The event listener to add. Will be called when an event of
20
+ * the given name is raised.
21
+ * @param thisArg An optional parameter which, when set, will be bound as the
22
+ * `this` context when the callback is called. Falsy values will be not be
23
+ * bound.
20
24
  */
21
- on(eventNames: string, callback: (args: EventData) => void, thisArg?: any): void;
25
+ on(eventName: string, callback: (args: EventData) => void, thisArg?: any): void;
22
26
 
23
27
  /**
24
28
  * Raised when a creatingView event occurs.
@@ -62,12 +62,16 @@ export class ScrollView extends ContentView {
62
62
  orientation: CoreTypes.OrientationType;
63
63
 
64
64
  /**
65
- * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
66
- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
67
- * @param callback - Callback function which will be executed when event is raised.
68
- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
65
+ * Adds a listener for the specified event name.
66
+ *
67
+ * @param eventName The name of the event.
68
+ * @param callback The event listener to add. Will be called when an event of
69
+ * the given name is raised.
70
+ * @param thisArg An optional parameter which, when set, will be bound as the
71
+ * `this` context when the callback is called. Falsy values will be not be
72
+ * bound.
69
73
  */
70
- on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
74
+ on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
71
75
 
72
76
  /**
73
77
  * Raised when a scroll event occurs.
@@ -48,12 +48,16 @@ export class SearchBar extends View {
48
48
  textFieldHintColor: Color;
49
49
 
50
50
  /**
51
- * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
52
- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
53
- * @param callback - Callback function which will be executed when event is raised.
54
- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
51
+ * Adds a listener for the specified event name.
52
+ *
53
+ * @param eventName The name of the event.
54
+ * @param callback The event listener to add. Will be called when an event of
55
+ * the given name is raised.
56
+ * @param thisArg An optional parameter which, when set, will be bound as the
57
+ * `this` context when the callback is called. Falsy values will be not be
58
+ * bound.
55
59
  */
56
- on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
60
+ on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
57
61
 
58
62
  /**
59
63
  * Raised when a search bar search is submitted.
@@ -60,12 +60,16 @@ export class SegmentedBar extends View implements AddChildFromBuilder, AddArrayF
60
60
  public static selectedIndexChangedEvent: string;
61
61
 
62
62
  /**
63
- * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
64
- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
65
- * @param callback - Callback function which will be executed when event is raised.
66
- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
63
+ * Adds a listener for the specified event name.
64
+ *
65
+ * @param eventName The name of the event.
66
+ * @param callback The event listener to add. Will be called when an event of
67
+ * the given name is raised.
68
+ * @param thisArg An optional parameter which, when set, will be bound as the
69
+ * `this` context when the callback is called. Falsy values will be not be
70
+ * bound.
67
71
  */
68
- on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
72
+ on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
69
73
 
70
74
  /**
71
75
  * Raised when the selected index changes.
@@ -145,12 +145,16 @@ export class TabView extends View {
145
145
  public static selectedIndexChangedEvent: string;
146
146
 
147
147
  /**
148
- * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
149
- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
150
- * @param callback - Callback function which will be executed when event is raised.
151
- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
152
- */
153
- on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
148
+ * Adds a listener for the specified event name.
149
+ *
150
+ * @param eventName The name of the event.
151
+ * @param callback The event listener to add. Will be called when an event of
152
+ * the given name is raised.
153
+ * @param thisArg An optional parameter which, when set, will be bound as the
154
+ * `this` context when the callback is called. Falsy values will be not be
155
+ * bound.
156
+ */
157
+ on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
154
158
 
155
159
  /**
156
160
  * Raised when the selected index changes.
@@ -87,12 +87,16 @@ export class WebView extends View {
87
87
  reload();
88
88
 
89
89
  /**
90
- * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
91
- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
92
- * @param callback - Callback function which will be executed when event is raised.
93
- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
94
- */
95
- on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
90
+ * Adds a listener for the specified event name.
91
+ *
92
+ * @param eventName The name of the event.
93
+ * @param callback The event listener to add. Will be called when an event of
94
+ * the given name is raised.
95
+ * @param thisArg An optional parameter which, when set, will be bound as the
96
+ * `this` context when the callback is called. Falsy values will be not be
97
+ * bound.
98
+ */
99
+ on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
96
100
 
97
101
  /**
98
102
  * Raised when a loadFinished event occurs.
package/utils/common.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './mainthread-helper';
2
2
  export * from './macrotask-scheduler';
3
3
  export declare const RESOURCE_PREFIX = "res://";
4
+ export declare const SYSTEM_PREFIX = "sys://";
4
5
  export declare const FILE_PREFIX = "file:///";
5
6
  export declare function escapeRegexSymbols(source: string): string;
6
7
  export declare function convertString(value: any): any;
package/utils/common.js CHANGED
@@ -5,6 +5,7 @@ import { GC } from './index';
5
5
  export * from './mainthread-helper';
6
6
  export * from './macrotask-scheduler';
7
7
  export const RESOURCE_PREFIX = 'res://';
8
+ export const SYSTEM_PREFIX = 'sys://';
8
9
  export const FILE_PREFIX = 'file:///';
9
10
  export function escapeRegexSymbols(source) {
10
11
  const escapeRegex = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;
@@ -63,7 +64,8 @@ export function isFileOrResourcePath(path) {
63
64
  }
64
65
  return (path.indexOf('~/') === 0 || // relative to AppRoot
65
66
  path.indexOf('/') === 0 || // absolute path
66
- path.indexOf(RESOURCE_PREFIX) === 0); // resource
67
+ path.indexOf(RESOURCE_PREFIX) === 0 ||
68
+ path.indexOf(SYSTEM_PREFIX) === 0); // resource
67
69
  }
68
70
  export function isFontIconURI(uri) {
69
71
  if (!types.isString(uri)) {
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../packages/core/utils/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AAEtC,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AACxC,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAC;AAEtC,MAAM,UAAU,kBAAkB,CAAC,MAAc;IAChD,MAAM,WAAW,GAAG,qCAAqC,CAAC;IAE1D,OAAO,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,aAAa,C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,OAAO,GAAG,CAAC,CAAC;QACtB,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YACX,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,GAAG,iBAAiB,CAAC,CAAC;QACxD,CAAC;IACF,CAAC;IACD,OAAO;QACN,QAAQ;QACR,OAAO;KACP,CAAC;AACH,CAAC"}
package/css/LICENSE DELETED
@@ -1,9 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/css/Readme.md DELETED
@@ -1,278 +0,0 @@
1
- # css [![Build Status](https://travis-ci.org/reworkcss/css.svg?branch=master)](https://travis-ci.org/reworkcss/css)
2
-
3
- CSS parser / stringifier.
4
-
5
- ## Installation
6
-
7
- $ npm install css
8
-
9
- ## Usage
10
-
11
- ```js
12
- var css = require('css');
13
- var obj = css.parse('body { font-size: 12px; }', options);
14
- css.stringify(obj, options);
15
- ```
16
-
17
- ## API
18
-
19
- ### css.parse(code, [options])
20
-
21
- Accepts a CSS string and returns an AST `object`.
22
-
23
- `options`:
24
-
25
- - silent: silently fail on parse errors.
26
- - source: the path to the file containing `css`. Makes errors and source
27
- maps more helpful, by letting them know where code comes from.
28
-
29
- ### Example
30
-
31
- ```js
32
- var ast = css.parse('body { font-size: 12px; }', { source: 'source.css' });
33
-
34
- ```
35
-
36
- ### Errors
37
-
38
- Errors will have `error.position`, just like [`node.position`](#position). The
39
- error contains the source position in the message. To get the error message
40
- without the position use `error.reason`.
41
-
42
- If you create any errors in plugins such as in
43
- [rework](https://github.com/reworkcss/rework), you __must__ set the `position`
44
- as well for consistency.
45
-
46
- ## AST
47
-
48
- ### Common properties
49
-
50
- All nodes have the following properties.
51
-
52
- #### position
53
-
54
- Information about the position in the source string that corresponds to
55
- the node.
56
-
57
- `Object`:
58
-
59
- - start: `Object`:
60
- - line: `Number`.
61
- - column: `Number`.
62
- - end: `Object`:
63
- - line: `Number`.
64
- - column: `Number`.
65
- - source: `String` or `undefined`. The value of `options.source` if passed to
66
- `css.parse`. Otherwise `undefined`.
67
- - content: `String`. The full source string passed to `css.parse`.
68
-
69
- The line and column numbers are 1-based: The first line is 1 and the first
70
- column of a line is 1 (not 0).
71
-
72
- The `position` property lets you know from which source file the node comes
73
- from (if available), what that file contains, and what part of that file was
74
- parsed into the node.
75
-
76
- #### type
77
-
78
- `String`. The possible values are the ones listed in the Types section below.
79
-
80
- #### parent
81
-
82
- A reference to the parent node, or `null` if the node has no parent.
83
-
84
- ### Types
85
-
86
- The available values of `node.type` are listed below, as well as the available
87
- properties of each node (other than the common properties listed above.)
88
-
89
- #### stylesheet
90
-
91
- The root node returned by `css.parse`.
92
-
93
- - stylesheet: `Object`:
94
- - rules: `Array` of nodes with the types `rule`, `comment` and any of the
95
- at-rule types.
96
-
97
- #### rule
98
-
99
- - selectors: `Array` of `String`s. The list of selectors of the rule, split
100
- on commas. Each selector is trimmed from whitespace and comments.
101
- - declarations: `Array` of nodes with the types `declaration` and `comment`.
102
-
103
- #### declaration
104
-
105
- - property: `String`. The property name, trimmed from whitespace and
106
- comments. May not be empty.
107
- - value: `String`. The value of the property, trimmed from whitespace and
108
- comments. Empty values are allowed.
109
-
110
- #### comment
111
-
112
- A rule-level or declaration-level comment. Comments inside selectors,
113
- properties and values etc. are lost.
114
-
115
- - comment: `String`. The part between the starting `/*` and the ending `*/`
116
- of the comment, including whitespace.
117
-
118
- #### charset
119
-
120
- The `@charset` at-rule.
121
-
122
- - charset: `String`. The part following `@charset `.
123
-
124
- #### custom-media
125
-
126
- The `@custom-media` at-rule.
127
-
128
- - name: `String`. The `--`-prefixed name.
129
- - media: `String`. The part following the name.
130
-
131
- #### document
132
-
133
- The `@document` at-rule.
134
-
135
- - document: `String`. The part following `@document `.
136
- - vendor: `String` or `undefined`. The vendor prefix in `@document`, or
137
- `undefined` if there is none.
138
- - rules: `Array` of nodes with the types `rule`, `comment` and any of the
139
- at-rule types.
140
-
141
- #### font-face
142
-
143
- The `@font-face` at-rule.
144
-
145
- - declarations: `Array` of nodes with the types `declaration` and `comment`.
146
-
147
- #### host
148
-
149
- The `@host` at-rule.
150
-
151
- - rules: `Array` of nodes with the types `rule`, `comment` and any of the
152
- at-rule types.
153
-
154
- #### import
155
-
156
- The `@import` at-rule.
157
-
158
- - import: `String`. The part following `@import `.
159
-
160
- #### keyframes
161
-
162
- The `@keyframes` at-rule.
163
-
164
- - name: `String`. The name of the keyframes rule.
165
- - vendor: `String` or `undefined`. The vendor prefix in `@keyframes`, or
166
- `undefined` if there is none.
167
- - keyframes: `Array` of nodes with the types `keyframe` and `comment`.
168
-
169
- #### keyframe
170
-
171
- - values: `Array` of `String`s. The list of “selectors” of the keyframe rule,
172
- split on commas. Each “selector” is trimmed from whitespace.
173
- - declarations: `Array` of nodes with the types `declaration` and `comment`.
174
-
175
- #### media
176
-
177
- The `@media` at-rule.
178
-
179
- - media: `String`. The part following `@media `.
180
- - rules: `Array` of nodes with the types `rule`, `comment` and any of the
181
- at-rule types.
182
-
183
- #### namespace
184
-
185
- The `@namespace` at-rule.
186
-
187
- - namespace: `String`. The part following `@namespace `.
188
-
189
- #### page
190
-
191
- The `@page` at-rule.
192
-
193
- - selectors: `Array` of `String`s. The list of selectors of the rule, split
194
- on commas. Each selector is trimmed from whitespace and comments.
195
- - declarations: `Array` of nodes with the types `declaration` and `comment`.
196
-
197
- #### supports
198
-
199
- The `@supports` at-rule.
200
-
201
- - supports: `String`. The part following `@supports `.
202
- - rules: `Array` of nodes with the types `rule`, `comment` and any of the
203
- at-rule types.
204
-
205
- ### Example
206
-
207
- CSS:
208
-
209
- ```css
210
- body {
211
- background: #eee;
212
- color: #888;
213
- }
214
- ```
215
-
216
- Parse tree:
217
-
218
- ```json
219
- {
220
- "type": "stylesheet",
221
- "stylesheet": {
222
- "rules": [
223
- {
224
- "type": "rule",
225
- "selectors": [
226
- "body"
227
- ],
228
- "declarations": [
229
- {
230
- "type": "declaration",
231
- "property": "background",
232
- "value": "#eee",
233
- "position": {
234
- "start": {
235
- "line": 2,
236
- "column": 3
237
- },
238
- "end": {
239
- "line": 2,
240
- "column": 19
241
- }
242
- }
243
- },
244
- {
245
- "type": "declaration",
246
- "property": "color",
247
- "value": "#888",
248
- "position": {
249
- "start": {
250
- "line": 3,
251
- "column": 3
252
- },
253
- "end": {
254
- "line": 3,
255
- "column": 14
256
- }
257
- }
258
- }
259
- ],
260
- "position": {
261
- "start": {
262
- "line": 1,
263
- "column": 1
264
- },
265
- "end": {
266
- "line": 4,
267
- "column": 2
268
- }
269
- }
270
- }
271
- ]
272
- }
273
- }
274
- ```
275
-
276
- ## License
277
-
278
- MIT
package/css-value/LICENSE DELETED
@@ -1,9 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2013 TJ Holowaychuk <tj@vision-media.ca>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,45 +0,0 @@
1
-
2
- # css-value
3
-
4
- WIP CSS value parser
5
-
6
- ## Example
7
-
8
- The CSS value string "1px 0 0 5% .5px .10 1.5" yields:
9
-
10
- ```js
11
- [
12
- { type: 'number', string: '1px', unit: 'px', value: 1 },
13
- { type: 'number', string: '0', unit: '', value: 0 },
14
- { type: 'number', string: '0', unit: '', value: 0 },
15
- { type: 'number', string: '5%', unit: '%', value: 5 },
16
- { type: 'number', string: '.5px', unit: 'px', value: .5 },
17
- { type: 'number', string: '.10', unit: '', value: .1 },
18
- { type: 'number', string: '1.5', unit: '', value: 1.5 }
19
- ]
20
- ```
21
-
22
- ## License
23
-
24
- (The MIT License)
25
-
26
- Copyright (c) 2013 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
27
-
28
- Permission is hereby granted, free of charge, to any person obtaining
29
- a copy of this software and associated documentation files (the
30
- 'Software'), to deal in the Software without restriction, including
31
- without limitation the rights to use, copy, modify, merge, publish,
32
- distribute, sublicense, and/or sell copies of the Software, and to
33
- permit persons to whom the Software is furnished to do so, subject to
34
- the following conditions:
35
-
36
- The above copyright notice and this permission notice shall be
37
- included in all copies or substantial portions of the Software.
38
-
39
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
40
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
42
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
43
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
44
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
45
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/fetch/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2014-2016 GitHub, Inc.
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/fetch/README.md DELETED
@@ -1 +0,0 @@
1
- Implementation of [fetch API](https://fetch.spec.whatwg.org/). Modified version of https://github.com/github/fetch.
@@ -1,20 +0,0 @@
1
- The MIT License (MIT)
2
- Copyright (c) 2012 Vopilovskii Constantine <flash.vkv@gmail.com>
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of
5
- this software and associated documentation files (the "Software"), to deal in
6
- the Software without restriction, including without limitation the rights to
7
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8
- of the Software, and to permit persons to whom the Software is furnished to do
9
- so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.