@breakside/jskit 2022.49.1 → 2022.50.0

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 (41) hide show
  1. package/Frameworks/DOM.jsframework/Info.json +2 -2
  2. package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
  3. package/Frameworks/FontKit.jsframework/Info.json +2 -2
  4. package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
  5. package/Frameworks/Foundation.jsframework/Info.json +2 -2
  6. package/Frameworks/Foundation.jsframework/JS/JSObject.js +5 -4
  7. package/Frameworks/Foundation.jsframework/JS/Number+JS.js +3 -1
  8. package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
  9. package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
  10. package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
  11. package/Info.json +2 -2
  12. package/Node/HTMLBuilder.js +9 -8
  13. package/Node/io.breakside.jskit-bundle.js +2 -2
  14. package/Root/Frameworks/APIKit/Info.yaml +1 -1
  15. package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
  16. package/Root/Frameworks/AuthKit/Info.yaml +1 -1
  17. package/Root/Frameworks/CSSOM/Info.yaml +1 -1
  18. package/Root/Frameworks/ChartKit/Info.yaml +1 -1
  19. package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
  20. package/Root/Frameworks/DBKit/Info.yaml +1 -1
  21. package/Root/Frameworks/DOM/Info.yaml +1 -1
  22. package/Root/Frameworks/Dispatch/Info.yaml +1 -1
  23. package/Root/Frameworks/FontKit/Info.yaml +1 -1
  24. package/Root/Frameworks/Foundation/Info.yaml +1 -1
  25. package/Root/Frameworks/Foundation/JSObject.js +5 -4
  26. package/Root/Frameworks/Foundation/Number+JS.js +3 -1
  27. package/Root/Frameworks/ImageKit/Info.yaml +1 -1
  28. package/Root/Frameworks/MediaKit/Info.yaml +1 -1
  29. package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
  30. package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
  31. package/Root/Frameworks/PDFKit/Info.yaml +1 -1
  32. package/Root/Frameworks/QRKit/Info.yaml +1 -1
  33. package/Root/Frameworks/SearchKit/Info.yaml +1 -1
  34. package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
  35. package/Root/Frameworks/ServerKit/Info.yaml +1 -1
  36. package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
  37. package/Root/Frameworks/TestKit/Info.yaml +1 -1
  38. package/Root/Frameworks/UIKit/Info.yaml +1 -1
  39. package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
  40. package/Root/Templates/html/${PROJECT_NAME}/www/service-worker.js +3 -3
  41. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "JSBundleType": "framework",
3
3
  "JSBundleIdentifier": "io.breakside.JSKit.DOM",
4
- "JSBundleVersion": "2022.49.1",
4
+ "JSBundleVersion": "2022.50.0",
5
5
  "JSDevelopmentLanguage": "en",
6
6
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
7
7
  "JSBundleEnvironments": {
@@ -9,5 +9,5 @@
9
9
  "node": "DOM+Node.js"
10
10
  },
11
11
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
12
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
12
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
13
13
  }
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "framework",
5
5
  "JSBundleIdentifier": "io.breakside.JSKit.DOM",
6
- "JSBundleVersion": "2022.49.1",
6
+ "JSBundleVersion": "2022.50.0",
7
7
  "JSDevelopmentLanguage": "en",
8
8
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
9
9
  "JSBundleEnvironments": {
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
11
11
  "node": "DOM+Node.js"
12
12
  },
13
13
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
14
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
14
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
15
15
  },
16
16
  "Resources": [],
17
17
  "ResourceLookup": {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "JSBundleType": "framework",
3
3
  "JSBundleIdentifier": "io.breakside.JSKit.FontKit",
4
- "JSBundleVersion": "2022.49.1",
4
+ "JSBundleVersion": "2022.50.0",
5
5
  "JSDevelopmentLanguage": "en",
6
6
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
7
7
  "JSBundleEnvironments": {
8
8
  "html": "FontKit+HTML.js"
9
9
  },
10
10
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
11
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
11
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
12
12
  }
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.JSKit.FontKit'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "framework",
5
5
  "JSBundleIdentifier": "io.breakside.JSKit.FontKit",
6
- "JSBundleVersion": "2022.49.1",
6
+ "JSBundleVersion": "2022.50.0",
7
7
  "JSDevelopmentLanguage": "en",
8
8
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
9
9
  "JSBundleEnvironments": {
10
10
  "html": "FontKit+HTML.js"
11
11
  },
12
12
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
13
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
13
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
14
14
  },
15
15
  "Resources": [],
16
16
  "ResourceLookup": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "JSBundleType": "framework",
3
3
  "JSBundleIdentifier": "io.breakside.JSKit.Foundation",
4
- "JSBundleVersion": "2022.49.1",
4
+ "JSBundleVersion": "2022.50.0",
5
5
  "JSDevelopmentLanguage": "en",
6
6
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
7
7
  "JSBundleEnvironments": {
@@ -9,5 +9,5 @@
9
9
  "node": "Foundation+Node.js"
10
10
  },
11
11
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
12
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
12
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
13
13
  }
@@ -15,6 +15,7 @@
15
15
 
16
16
  // #import "JSClass.js"
17
17
  // #import "JSValueTransformer.js"
18
+ // #import "Number+JS.js"
18
19
  /* global JSSpec */
19
20
  'use strict';
20
21
 
@@ -156,21 +157,21 @@ JSObject.definePropertiesFromExtensions({
156
157
  this._updateValueForBinding(context.binding);
157
158
  }else if (change.type == JSObject.KeyValueChange.Insertion){
158
159
  key = bindingInfo.binding;
159
- change.indexes.sort();
160
+ change.indexes.sort(Number.jskitCompare);
160
161
  for (i = 0, l = change.indexes.length; i < l; ++i){
161
162
  index = change.indexes[i];
162
163
  this.silentlyInsertObjectInKeyAtIndex(change.sourceObject.objectInKeyAtIndex(change.sourceKey, index), key, index);
163
164
  }
164
165
  }else if (change.type == JSObject.KeyValueChange.Removal){
165
166
  key = bindingInfo.binding;
166
- change.indexes.sort();
167
+ change.indexes.sort(Number.jskitCompare);
167
168
  for (i = change.indexes.length - 1; i >= 0; --i){
168
169
  index = change.indexes[i];
169
170
  this.silentlyRemoveObjectFromKeyAtIndex(key, index);
170
171
  }
171
172
  }else if (change.type == JSObject.KeyValueChange.Replacement){
172
173
  key = bindingInfo.binding;
173
- change.indexes.sort();
174
+ change.indexes.sort(Number.jskitCompare);
174
175
  for (i = 0, l = change.indexes.length; i < l; ++i){
175
176
  index = change.indexes[i];
176
177
  this.silentlyReplaceObjectInKeyAtIndexWithObject(key, index, change.sourceObject.objectInKeyAtIndex(change.sourceKey, index));
@@ -613,7 +614,7 @@ JSObject.definePropertiesFromExtensions({
613
614
  targetObject = targetObject.valueForKeyPath(keyParts.join('.'));
614
615
  }
615
616
  if (targetObject){
616
- indexes.sort();
617
+ indexes.sort(Number.jskitCompare);
617
618
  if (change == JSObject.KeyValueChange.Insertion){
618
619
  for (i = 0, l = indexes.length; i < l; ++i){
619
620
  index = indexes[i];
@@ -17,4 +17,6 @@
17
17
 
18
18
  Number.prototype.parseNumberArray = function(){
19
19
  return [this];
20
- };
20
+ };
21
+
22
+ Number.jskitCompare = function(a, b){ return a - b; };
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "framework",
5
5
  "JSBundleIdentifier": "io.breakside.JSKit.Foundation",
6
- "JSBundleVersion": "2022.49.1",
6
+ "JSBundleVersion": "2022.50.0",
7
7
  "JSDevelopmentLanguage": "en",
8
8
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
9
9
  "JSBundleEnvironments": {
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
11
11
  "node": "Foundation+Node.js"
12
12
  },
13
13
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
14
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
14
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
15
15
  },
16
16
  "Resources": [
17
17
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "JSBundleType": "framework",
3
3
  "JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
4
- "JSBundleVersion": "2022.49.1",
4
+ "JSBundleVersion": "2022.50.0",
5
5
  "JSDevelopmentLanguage": "en",
6
6
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
7
7
  "JSBundleEnvironments": {
@@ -9,5 +9,5 @@
9
9
  "node": "SecurityKit+Node.js"
10
10
  },
11
11
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
12
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
12
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
13
13
  }
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "framework",
5
5
  "JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
6
- "JSBundleVersion": "2022.49.1",
6
+ "JSBundleVersion": "2022.50.0",
7
7
  "JSDevelopmentLanguage": "en",
8
8
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
9
9
  "JSBundleEnvironments": {
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
11
11
  "node": "SecurityKit+Node.js"
12
12
  },
13
13
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
14
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
14
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
15
15
  },
16
16
  "Resources": [],
17
17
  "ResourceLookup": {
package/Info.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "JSBundleType": "node",
3
3
  "JSBundleIdentifier": "io.breakside.jskit",
4
- "JSBundleVersion": "2022.49.1",
4
+ "JSBundleVersion": "2022.50.0",
5
5
  "JSExecutableName": "jskit",
6
6
  "NPMOrganization": "breakside",
7
7
  "JSResources": [
8
8
  "Tests/HTMLTestRunner.js",
9
9
  "Tests/NodeTestRunner.js"
10
10
  ],
11
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
11
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
12
12
  }
@@ -722,35 +722,36 @@ JSClass("HTMLBuilder", Builder, {
722
722
  return;
723
723
  }
724
724
  this.printer.setStatus("Creating service worker...");
725
- var sources = {'./': {required: true}};
725
+ var sources = {'./': {required: true, cache: "no-store"}};
726
726
  for (let i = 0, l = this.wwwPaths.length; i < l; ++i){
727
- sources[this.wwwPaths[i]] = {required: true};
727
+ sources[this.wwwPaths[i]] = {required: true, cache: "no-store"};
728
728
  }
729
729
  for (let i = 0, l = this.wwwJavascriptPaths.length; i < l; ++i){
730
- sources[this.wwwJavascriptPaths[i]] = {required: true};
730
+ sources[this.wwwJavascriptPaths[i]] = {required: true, cache: "no-store"};
731
731
  }
732
732
  if (this.preflightURL !== null){
733
733
  let path = this.preflightURL.encodedStringRelativeTo(this.wwwURL);
734
- sources[path] = {required: true};
734
+ sources[path] = {required: true, cache: "default"};
735
735
  }
736
736
  if (this.workerURL !== null && this.hasLinkedDispatchFramework){
737
737
  let path = this.workerURL.encodedStringRelativeTo(this.wwwURL);
738
- sources[path] = {required: true};
738
+ sources[path] = {required: true, cache: "no-store"};
739
739
  }
740
740
  for (let i = 0, l = this.wwwResourcePaths.length; i < l; ++i){
741
- sources[this.wwwResourcePaths[i]] = {required: true};
741
+ sources[this.wwwResourcePaths[i]] = {required: true, cache: "default"};
742
742
  }
743
743
  for (let i = 0, l = this.wwwCSSPaths.length; i < l; ++i){
744
- sources[this.wwwCSSPaths[i]] = {required: true};
744
+ sources[this.wwwCSSPaths[i]] = {required: true, cache: "no-store"};
745
745
  }
746
746
  for (let i = 0, l = this.uncachedWWWPaths.length; i < l; ++i){
747
- sources[this.uncachedWWWPaths[i]] = {required: false};
747
+ sources[this.uncachedWWWPaths[i]] = {required: false, cache: "default"};
748
748
  }
749
749
  var params = {
750
750
  JSKIT_APP: JSON.stringify({
751
751
  buildId: this.buildId,
752
752
  environment: this.project.info.HTMLApplicationEnvironment,
753
753
  sources: sources,
754
+ debug: this.debug
754
755
  }, null, 2)
755
756
  };
756
757
  var workerConents = await this.fileManager.contentsAtURL(this.serviceWorkerSourceURL);
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.jskit'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "node",
5
5
  "JSBundleIdentifier": "io.breakside.jskit",
6
- "JSBundleVersion": "2022.49.1",
6
+ "JSBundleVersion": "2022.50.0",
7
7
  "JSExecutableName": "jskit",
8
8
  "NPMOrganization": "breakside",
9
9
  "JSResources": [
10
10
  "Tests/HTMLTestRunner.js",
11
11
  "Tests/NodeTestRunner.js"
12
12
  ],
13
- "GitRevision": "55add1449a151d1f7a666032d4fb8b77c26bb221"
13
+ "GitRevision": "28227032ddb908d100f267545432254d514ff4b3"
14
14
  },
15
15
  "Resources": [
16
16
  {
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.APIKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSIncludeDirectories:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.APIKitTesting
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.AuthKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.CSSOM
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.ChartKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2021 Breakside Inc.
6
6
  # JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.ConferenceKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.DBKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.DOM
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.Dispatch
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSCopyright: Copyright © 2020 Breakside Inc.
5
5
  JSBundleEnvironments:
6
6
  html: Dispatch+HTML.js
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.FontKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.Foundation
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -15,6 +15,7 @@
15
15
 
16
16
  // #import "JSClass.js"
17
17
  // #import "JSValueTransformer.js"
18
+ // #import "Number+JS.js"
18
19
  /* global JSSpec */
19
20
  'use strict';
20
21
 
@@ -156,21 +157,21 @@ JSObject.definePropertiesFromExtensions({
156
157
  this._updateValueForBinding(context.binding);
157
158
  }else if (change.type == JSObject.KeyValueChange.Insertion){
158
159
  key = bindingInfo.binding;
159
- change.indexes.sort();
160
+ change.indexes.sort(Number.jskitCompare);
160
161
  for (i = 0, l = change.indexes.length; i < l; ++i){
161
162
  index = change.indexes[i];
162
163
  this.silentlyInsertObjectInKeyAtIndex(change.sourceObject.objectInKeyAtIndex(change.sourceKey, index), key, index);
163
164
  }
164
165
  }else if (change.type == JSObject.KeyValueChange.Removal){
165
166
  key = bindingInfo.binding;
166
- change.indexes.sort();
167
+ change.indexes.sort(Number.jskitCompare);
167
168
  for (i = change.indexes.length - 1; i >= 0; --i){
168
169
  index = change.indexes[i];
169
170
  this.silentlyRemoveObjectFromKeyAtIndex(key, index);
170
171
  }
171
172
  }else if (change.type == JSObject.KeyValueChange.Replacement){
172
173
  key = bindingInfo.binding;
173
- change.indexes.sort();
174
+ change.indexes.sort(Number.jskitCompare);
174
175
  for (i = 0, l = change.indexes.length; i < l; ++i){
175
176
  index = change.indexes[i];
176
177
  this.silentlyReplaceObjectInKeyAtIndexWithObject(key, index, change.sourceObject.objectInKeyAtIndex(change.sourceKey, index));
@@ -613,7 +614,7 @@ JSObject.definePropertiesFromExtensions({
613
614
  targetObject = targetObject.valueForKeyPath(keyParts.join('.'));
614
615
  }
615
616
  if (targetObject){
616
- indexes.sort();
617
+ indexes.sort(Number.jskitCompare);
617
618
  if (change == JSObject.KeyValueChange.Insertion){
618
619
  for (i = 0, l = indexes.length; i < l; ++i){
619
620
  index = indexes[i];
@@ -17,4 +17,6 @@
17
17
 
18
18
  Number.prototype.parseNumberArray = function(){
19
19
  return [this];
20
- };
20
+ };
21
+
22
+ Number.jskitCompare = function(a, b){ return a - b; };
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.ImageKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.MediaKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.MediaKitUI
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.NotificationKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2021 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.PDFKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.QRKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.SearchKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.SecurityKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.ServerKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.ServerKitTesting
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.TestKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.UIKit
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.UIKitTesting
3
- JSBundleVersion: 2022.49.1
3
+ JSBundleVersion: 2022.50.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -12,7 +12,7 @@ function install(){
12
12
  for (var path in app.sources){
13
13
  source = app.sources[path];
14
14
  if (source.required){
15
- required.push(path);
15
+ required.push({path: path, cache: source.cache});
16
16
  }
17
17
  }
18
18
  var loaded = 0;
@@ -20,8 +20,8 @@ function install(){
20
20
  return clients.matchAll({includeUncontrolled: true}).then(function(clients){
21
21
  var client = clients[0];
22
22
  return caches.open(cacheKey).then(function(cache){
23
- return Promise.all(required.map(function(path){
24
- return cache.add(path).then(function(){
23
+ return Promise.all(required.map(function(resource){
24
+ return cache.add(new Request(resource.path, {cache: resource.cache || "default"})).then(function(){
25
25
  ++loaded;
26
26
  client.postMessage({type: 'progress', loaded: loaded, total: total});
27
27
  });
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "node": ">=10.10.0"
10
10
  },
11
11
  "name": "@breakside/jskit",
12
- "version": "2022.49.1",
12
+ "version": "2022.50.0",
13
13
  "license": "SEE LICENSE IN LICENSE.txt",
14
14
  "files": [
15
15
  "*"