Changeset 3219727
- Timestamp:
- 01/09/2025 03:34:08 PM (15 months ago)
- Location:
- sync-market-pro
- Files:
-
- 6 added
- 10 edited
-
tags/1.0.0/lib/composer.lock (modified) (1 diff)
-
tags/1.0.0/lib/vendor/bin (added)
-
tags/1.0.0/lib/vendor/composer/ClassLoader.php (modified) (24 diffs)
-
tags/1.0.0/lib/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.0.0/lib/vendor/ecomphp/tiktokshop-php/src/Resources/Analytics.php (added)
-
tags/1.0.0/lib/vendor/ecomphp/tiktokshop-php/tests/Resources/AnalyticsTest.php (added)
-
tags/1.0.0/readme.txt (modified) (1 diff)
-
tags/1.0.0/sync-market-pro.php (modified) (1 diff)
-
trunk/lib/composer.lock (modified) (1 diff)
-
trunk/lib/vendor/bin (added)
-
trunk/lib/vendor/composer/ClassLoader.php (modified) (24 diffs)
-
trunk/lib/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/lib/vendor/ecomphp/tiktokshop-php/src/Resources/Analytics.php (added)
-
trunk/lib/vendor/ecomphp/tiktokshop-php/tests/Resources/AnalyticsTest.php (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/sync-market-pro.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sync-market-pro/tags/1.0.0/lib/composer.lock
r3219710 r3219727 674 674 "platform": [], 675 675 "platform-dev": [], 676 "plugin-api-version": "2. 6.0"676 "plugin-api-version": "2.3.0" 677 677 } -
sync-market-pro/tags/1.0.0/lib/vendor/composer/ClassLoader.php
r3219710 r3219727 46 46 private static $includeFile; 47 47 48 /** @var string|null*/48 /** @var ?string */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array<string, array<string, int>> 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 54 55 */ 55 56 private $prefixLengthsPsr4 = array(); 56 57 /** 57 * @var array<string, list<string>> 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 58 60 */ 59 61 private $prefixDirsPsr4 = array(); 60 62 /** 61 * @var list<string> 63 * @var array[] 64 * @psalm-var array<string, string> 62 65 */ 63 66 private $fallbackDirsPsr4 = array(); … … 65 68 // PSR-0 66 69 /** 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var list<string> 75 * @var array[] 76 * @psalm-var array<string, string> 76 77 */ 77 78 private $fallbackDirsPsr0 = array(); … … 81 82 82 83 /** 83 * @var array<string, string> 84 * @var string[] 85 * @psalm-var array<string, string> 84 86 */ 85 87 private $classMap = array(); … … 89 91 90 92 /** 91 * @var array<string, bool> 93 * @var bool[] 94 * @psalm-var array<string, bool> 92 95 */ 93 96 private $missingClasses = array(); 94 97 95 /** @var string|null*/98 /** @var ?string */ 96 99 private $apcuPrefix; 97 100 98 101 /** 99 * @var array<string, self>102 * @var self[] 100 103 */ 101 104 private static $registeredLoaders = array(); 102 105 103 106 /** 104 * @param string|null$vendorDir107 * @param ?string $vendorDir 105 108 */ 106 109 public function __construct($vendorDir = null) … … 111 114 112 115 /** 113 * @return array<string, list<string>>116 * @return string[] 114 117 */ 115 118 public function getPrefixes() … … 123 126 124 127 /** 125 * @return array<string, list<string>> 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 126 130 */ 127 131 public function getPrefixesPsr4() … … 131 135 132 136 /** 133 * @return list<string> 137 * @return array[] 138 * @psalm-return array<string, string> 134 139 */ 135 140 public function getFallbackDirs() … … 139 144 140 145 /** 141 * @return list<string> 146 * @return array[] 147 * @psalm-return array<string, string> 142 148 */ 143 149 public function getFallbackDirsPsr4() … … 147 153 148 154 /** 149 * @return array<string, string> Array of classname => path 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 150 157 */ 151 158 public function getClassMap() … … 155 162 156 163 /** 157 * @param array<string, string> $classMap Class to filename map 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 158 166 * 159 167 * @return void … … 172 180 * appending or prepending to the ones previously set for this prefix. 173 181 * 174 * @param string $prefix The prefix175 * @param list<string>|string $paths The PSR-0 root directories176 * @param bool $prepend Whether to prepend the directories182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 177 185 * 178 186 * @return void … … 180 188 public function add($prefix, $paths, $prepend = false) 181 189 { 182 $paths = (array) $paths;183 190 if (!$prefix) { 184 191 if ($prepend) { 185 192 $this->fallbackDirsPsr0 = array_merge( 186 $paths,193 (array) $paths, 187 194 $this->fallbackDirsPsr0 188 195 ); … … 190 197 $this->fallbackDirsPsr0 = array_merge( 191 198 $this->fallbackDirsPsr0, 192 $paths199 (array) $paths 193 200 ); 194 201 } … … 199 206 $first = $prefix[0]; 200 207 if (!isset($this->prefixesPsr0[$first][$prefix])) { 201 $this->prefixesPsr0[$first][$prefix] = $paths;208 $this->prefixesPsr0[$first][$prefix] = (array) $paths; 202 209 203 210 return; … … 205 212 if ($prepend) { 206 213 $this->prefixesPsr0[$first][$prefix] = array_merge( 207 $paths,214 (array) $paths, 208 215 $this->prefixesPsr0[$first][$prefix] 209 216 ); … … 211 218 $this->prefixesPsr0[$first][$prefix] = array_merge( 212 219 $this->prefixesPsr0[$first][$prefix], 213 $paths220 (array) $paths 214 221 ); 215 222 } … … 220 227 * appending or prepending to the ones previously set for this namespace. 221 228 * 222 * @param string $prefix The prefix/namespace, with trailing '\\'223 * @param list<string>|string $paths The PSR-4 base directories224 * @param bool $prepend Whether to prepend the directories229 * @param string $prefix The prefix/namespace, with trailing '\\' 230 * @param string[]|string $paths The PSR-4 base directories 231 * @param bool $prepend Whether to prepend the directories 225 232 * 226 233 * @throws \InvalidArgumentException … … 230 237 public function addPsr4($prefix, $paths, $prepend = false) 231 238 { 232 $paths = (array) $paths;233 239 if (!$prefix) { 234 240 // Register directories for the root namespace. 235 241 if ($prepend) { 236 242 $this->fallbackDirsPsr4 = array_merge( 237 $paths,243 (array) $paths, 238 244 $this->fallbackDirsPsr4 239 245 ); … … 241 247 $this->fallbackDirsPsr4 = array_merge( 242 248 $this->fallbackDirsPsr4, 243 $paths249 (array) $paths 244 250 ); 245 251 } … … 251 257 } 252 258 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 253 $this->prefixDirsPsr4[$prefix] = $paths;259 $this->prefixDirsPsr4[$prefix] = (array) $paths; 254 260 } elseif ($prepend) { 255 261 // Prepend directories for an already registered namespace. 256 262 $this->prefixDirsPsr4[$prefix] = array_merge( 257 $paths,263 (array) $paths, 258 264 $this->prefixDirsPsr4[$prefix] 259 265 ); … … 262 268 $this->prefixDirsPsr4[$prefix] = array_merge( 263 269 $this->prefixDirsPsr4[$prefix], 264 $paths270 (array) $paths 265 271 ); 266 272 } … … 271 277 * replacing any others previously set for this prefix. 272 278 * 273 * @param string $prefix The prefix274 * @param list<string>|string $paths The PSR-0 base directories279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 275 281 * 276 282 * @return void … … 289 295 * replacing any others previously set for this namespace. 290 296 * 291 * @param string $prefix The prefix/namespace, with trailing '\\'292 * @param list<string>|string $paths The PSR-4 base directories297 * @param string $prefix The prefix/namespace, with trailing '\\' 298 * @param string[]|string $paths The PSR-4 base directories 293 299 * 294 300 * @throws \InvalidArgumentException … … 476 482 477 483 /** 478 * Returns the currently registered loaders keyed by their corresponding vendor directories.479 * 480 * @return array<string, self>484 * Returns the currently registered loaders indexed by their corresponding vendor directories. 485 * 486 * @return self[] 481 487 */ 482 488 public static function getRegisteredLoaders() -
sync-market-pro/tags/1.0.0/lib/vendor/composer/installed.php
r3219710 r3219727 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' e9fd4e03568f7f83a4f78cb2ab144e68490e91bb',6 'reference' => 'c0f0f641812d87809258f633293f2852e4abfb1b', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' e9fd4e03568f7f83a4f78cb2ab144e68490e91bb',16 'reference' => 'c0f0f641812d87809258f633293f2852e4abfb1b', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
sync-market-pro/tags/1.0.0/readme.txt
r3219703 r3219727 2 2 Contributors: wprealizer 3 3 Tags: woocommerce-sync, amazon-sync, walmart-sync, tiktok-sync, inventory-sync 4 Requires at least: 6. 54 Requires at least: 6.6 5 5 Tested up to: 6.7.1 6 6 Stable tag: 1.0.0 -
sync-market-pro/tags/1.0.0/sync-market-pro.php
r3219703 r3219727 1 1 <?php 2 2 /** 3 *Plugin Name: Sync Market Pro4 *Slug: sync-market-pro5 *Plugin URI: https://syncmarketpro.com/sync-market-pro6 * Description: Seamlessly sync WooCommerce products and inventory with top marketplaces like Amazon, TikTok, Walmart, and more.7 *Short Description: Sync WooCommerce products and inventory with Amazon, TikTok, and Walmart marketplaces.8 *Contributors: wprealizer9 * Author: WPrealizer10 *Author URI: https://profiles.wordpress.org/wprealizer/11 *Tags: woocommerce-sync, amazon-sync, walmart-sync, tiktok-sync, inventory-sync12 *Requires Plugins: woocommerce13 * Requires at least: 6.5 14 *Tested up to: 6.7.115 *Version: 1.0.016 *Stable tag: 1.0.017 *Requires PHP: 7.218 *License: GPLv2 or later19 *License URI: https://www.gnu.org/licenses/gpl-2.0.html20 */3 Plugin Name: Sync Market Pro 4 Slug: sync-market-pro 5 Plugin URI: https://syncmarketpro.com/sync-market-pro 6 Description: Seamlessly sync WooCommerce products and inventory with top marketplaces like Amazon, TikTok, Walmart, and more, using Sync Market Pro. 7 Short Description: Sync WooCommerce products and inventory with Amazon, TikTok, and Walmart marketplaces. 8 Contributors: wprealizer 9 Author: WPRealizer 10 Author URI: https://profiles.wordpress.org/wprealizer/ 11 Tags: woocommerce-sync, amazon-sync, walmart-sync, tiktok-sync, inventory-sync 12 Requires Plugins: woocommerce 13 Requires at least: 6.6 14 Tested up to: 6.7.1 15 Version: 1.0.0 16 Stable tag: 1.0.0 17 Requires PHP: 7.2 18 License: GPLv2 or later 19 License URI: https://www.gnu.org/licenses/gpl-2.0.html 20 **/ 21 21 22 22 if (! defined('ABSPATH')) { -
sync-market-pro/trunk/lib/composer.lock
r3219710 r3219727 674 674 "platform": [], 675 675 "platform-dev": [], 676 "plugin-api-version": "2. 6.0"676 "plugin-api-version": "2.3.0" 677 677 } -
sync-market-pro/trunk/lib/vendor/composer/ClassLoader.php
r3219710 r3219727 46 46 private static $includeFile; 47 47 48 /** @var string|null*/48 /** @var ?string */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array<string, array<string, int>> 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 54 55 */ 55 56 private $prefixLengthsPsr4 = array(); 56 57 /** 57 * @var array<string, list<string>> 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 58 60 */ 59 61 private $prefixDirsPsr4 = array(); 60 62 /** 61 * @var list<string> 63 * @var array[] 64 * @psalm-var array<string, string> 62 65 */ 63 66 private $fallbackDirsPsr4 = array(); … … 65 68 // PSR-0 66 69 /** 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var list<string> 75 * @var array[] 76 * @psalm-var array<string, string> 76 77 */ 77 78 private $fallbackDirsPsr0 = array(); … … 81 82 82 83 /** 83 * @var array<string, string> 84 * @var string[] 85 * @psalm-var array<string, string> 84 86 */ 85 87 private $classMap = array(); … … 89 91 90 92 /** 91 * @var array<string, bool> 93 * @var bool[] 94 * @psalm-var array<string, bool> 92 95 */ 93 96 private $missingClasses = array(); 94 97 95 /** @var string|null*/98 /** @var ?string */ 96 99 private $apcuPrefix; 97 100 98 101 /** 99 * @var array<string, self>102 * @var self[] 100 103 */ 101 104 private static $registeredLoaders = array(); 102 105 103 106 /** 104 * @param string|null$vendorDir107 * @param ?string $vendorDir 105 108 */ 106 109 public function __construct($vendorDir = null) … … 111 114 112 115 /** 113 * @return array<string, list<string>>116 * @return string[] 114 117 */ 115 118 public function getPrefixes() … … 123 126 124 127 /** 125 * @return array<string, list<string>> 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 126 130 */ 127 131 public function getPrefixesPsr4() … … 131 135 132 136 /** 133 * @return list<string> 137 * @return array[] 138 * @psalm-return array<string, string> 134 139 */ 135 140 public function getFallbackDirs() … … 139 144 140 145 /** 141 * @return list<string> 146 * @return array[] 147 * @psalm-return array<string, string> 142 148 */ 143 149 public function getFallbackDirsPsr4() … … 147 153 148 154 /** 149 * @return array<string, string> Array of classname => path 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 150 157 */ 151 158 public function getClassMap() … … 155 162 156 163 /** 157 * @param array<string, string> $classMap Class to filename map 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 158 166 * 159 167 * @return void … … 172 180 * appending or prepending to the ones previously set for this prefix. 173 181 * 174 * @param string $prefix The prefix175 * @param list<string>|string $paths The PSR-0 root directories176 * @param bool $prepend Whether to prepend the directories182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 177 185 * 178 186 * @return void … … 180 188 public function add($prefix, $paths, $prepend = false) 181 189 { 182 $paths = (array) $paths;183 190 if (!$prefix) { 184 191 if ($prepend) { 185 192 $this->fallbackDirsPsr0 = array_merge( 186 $paths,193 (array) $paths, 187 194 $this->fallbackDirsPsr0 188 195 ); … … 190 197 $this->fallbackDirsPsr0 = array_merge( 191 198 $this->fallbackDirsPsr0, 192 $paths199 (array) $paths 193 200 ); 194 201 } … … 199 206 $first = $prefix[0]; 200 207 if (!isset($this->prefixesPsr0[$first][$prefix])) { 201 $this->prefixesPsr0[$first][$prefix] = $paths;208 $this->prefixesPsr0[$first][$prefix] = (array) $paths; 202 209 203 210 return; … … 205 212 if ($prepend) { 206 213 $this->prefixesPsr0[$first][$prefix] = array_merge( 207 $paths,214 (array) $paths, 208 215 $this->prefixesPsr0[$first][$prefix] 209 216 ); … … 211 218 $this->prefixesPsr0[$first][$prefix] = array_merge( 212 219 $this->prefixesPsr0[$first][$prefix], 213 $paths220 (array) $paths 214 221 ); 215 222 } … … 220 227 * appending or prepending to the ones previously set for this namespace. 221 228 * 222 * @param string $prefix The prefix/namespace, with trailing '\\'223 * @param list<string>|string $paths The PSR-4 base directories224 * @param bool $prepend Whether to prepend the directories229 * @param string $prefix The prefix/namespace, with trailing '\\' 230 * @param string[]|string $paths The PSR-4 base directories 231 * @param bool $prepend Whether to prepend the directories 225 232 * 226 233 * @throws \InvalidArgumentException … … 230 237 public function addPsr4($prefix, $paths, $prepend = false) 231 238 { 232 $paths = (array) $paths;233 239 if (!$prefix) { 234 240 // Register directories for the root namespace. 235 241 if ($prepend) { 236 242 $this->fallbackDirsPsr4 = array_merge( 237 $paths,243 (array) $paths, 238 244 $this->fallbackDirsPsr4 239 245 ); … … 241 247 $this->fallbackDirsPsr4 = array_merge( 242 248 $this->fallbackDirsPsr4, 243 $paths249 (array) $paths 244 250 ); 245 251 } … … 251 257 } 252 258 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 253 $this->prefixDirsPsr4[$prefix] = $paths;259 $this->prefixDirsPsr4[$prefix] = (array) $paths; 254 260 } elseif ($prepend) { 255 261 // Prepend directories for an already registered namespace. 256 262 $this->prefixDirsPsr4[$prefix] = array_merge( 257 $paths,263 (array) $paths, 258 264 $this->prefixDirsPsr4[$prefix] 259 265 ); … … 262 268 $this->prefixDirsPsr4[$prefix] = array_merge( 263 269 $this->prefixDirsPsr4[$prefix], 264 $paths270 (array) $paths 265 271 ); 266 272 } … … 271 277 * replacing any others previously set for this prefix. 272 278 * 273 * @param string $prefix The prefix274 * @param list<string>|string $paths The PSR-0 base directories279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 275 281 * 276 282 * @return void … … 289 295 * replacing any others previously set for this namespace. 290 296 * 291 * @param string $prefix The prefix/namespace, with trailing '\\'292 * @param list<string>|string $paths The PSR-4 base directories297 * @param string $prefix The prefix/namespace, with trailing '\\' 298 * @param string[]|string $paths The PSR-4 base directories 293 299 * 294 300 * @throws \InvalidArgumentException … … 476 482 477 483 /** 478 * Returns the currently registered loaders keyed by their corresponding vendor directories.479 * 480 * @return array<string, self>484 * Returns the currently registered loaders indexed by their corresponding vendor directories. 485 * 486 * @return self[] 481 487 */ 482 488 public static function getRegisteredLoaders() -
sync-market-pro/trunk/lib/vendor/composer/installed.php
r3219710 r3219727 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' e9fd4e03568f7f83a4f78cb2ab144e68490e91bb',6 'reference' => 'c0f0f641812d87809258f633293f2852e4abfb1b', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' e9fd4e03568f7f83a4f78cb2ab144e68490e91bb',16 'reference' => 'c0f0f641812d87809258f633293f2852e4abfb1b', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
sync-market-pro/trunk/readme.txt
r3219703 r3219727 2 2 Contributors: wprealizer 3 3 Tags: woocommerce-sync, amazon-sync, walmart-sync, tiktok-sync, inventory-sync 4 Requires at least: 6. 54 Requires at least: 6.6 5 5 Tested up to: 6.7.1 6 6 Stable tag: 1.0.0 -
sync-market-pro/trunk/sync-market-pro.php
r3219703 r3219727 1 1 <?php 2 2 /** 3 *Plugin Name: Sync Market Pro4 *Slug: sync-market-pro5 *Plugin URI: https://syncmarketpro.com/sync-market-pro6 * Description: Seamlessly sync WooCommerce products and inventory with top marketplaces like Amazon, TikTok, Walmart, and more.7 *Short Description: Sync WooCommerce products and inventory with Amazon, TikTok, and Walmart marketplaces.8 *Contributors: wprealizer9 * Author: WPrealizer10 *Author URI: https://profiles.wordpress.org/wprealizer/11 *Tags: woocommerce-sync, amazon-sync, walmart-sync, tiktok-sync, inventory-sync12 *Requires Plugins: woocommerce13 * Requires at least: 6.5 14 *Tested up to: 6.7.115 *Version: 1.0.016 *Stable tag: 1.0.017 *Requires PHP: 7.218 *License: GPLv2 or later19 *License URI: https://www.gnu.org/licenses/gpl-2.0.html20 */3 Plugin Name: Sync Market Pro 4 Slug: sync-market-pro 5 Plugin URI: https://syncmarketpro.com/sync-market-pro 6 Description: Seamlessly sync WooCommerce products and inventory with top marketplaces like Amazon, TikTok, Walmart, and more, using Sync Market Pro. 7 Short Description: Sync WooCommerce products and inventory with Amazon, TikTok, and Walmart marketplaces. 8 Contributors: wprealizer 9 Author: WPRealizer 10 Author URI: https://profiles.wordpress.org/wprealizer/ 11 Tags: woocommerce-sync, amazon-sync, walmart-sync, tiktok-sync, inventory-sync 12 Requires Plugins: woocommerce 13 Requires at least: 6.6 14 Tested up to: 6.7.1 15 Version: 1.0.0 16 Stable tag: 1.0.0 17 Requires PHP: 7.2 18 License: GPLv2 or later 19 License URI: https://www.gnu.org/licenses/gpl-2.0.html 20 **/ 21 21 22 22 if (! defined('ABSPATH')) {
Note: See TracChangeset
for help on using the changeset viewer.