New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@casual-simulation/aux-common

Package Overview
Dependencies
Maintainers
2
Versions
473
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@casual-simulation/aux-common - npm Package Versions

1
48

0.9.12

Diff

Changelog

Source

V0.9.12

Date: 07/09/2019

Changes:

  • Improvements
    • Added a rotation option to player.tweenTo, users can now define an x and y rotation to define which way the camera views the bot.
    • New context popup opens withaux.context.locked set to false and the text has been change to Lock Context.
    • Changed aux.mod.tags to aux.mod.mergeTags.
    • Renamed aux.movable="mod" to aux.movable="cloneMod".
    • isDiff function no longer checks for aux.mod.mergeTags when determining weather a bot is a diff or not.
    • Added the aux.listening tag to disable, a bot will accept shouts or whispers if this tage is set to true but ignore them it aux.listening is set to false.
    • Removed the context_ prefix of the default generated name of new contexts.
  • Bug Fixes
    • The cube that appears on empty bot will now be properly sized.
    • The center inventory button will now appear when intended.
    • Fixed typo on the Requesting site ID text.
    • First entered letter on a new bot's label not appearing had been resolved.
    • The function onCombine should not trigger when dragging on a stack of bots but a warning message explaining this has been added it this is attempted.
    • Dragging the inventory top to change its size will no longer cause the Google Chrome mobile app to refresh the page.
    • Added in a tween override when user attempts input during a tween that will stop the tween immediately.
kallyngowdyyeti
published 0.9.11 •

Changelog

Source

V0.9.11

Date: 07/01/2019

Changes:

  • Improvements
    • Added two new functions that can be used to open URLs.
      • player.goToURL(url): Redirects the user to the given URL in the same tab/window.
      • player.openURL(url): Opens the given URL in a new tab/window.
  • Bug Fixes
    • Fix actions that edit files which get destroyed to not error and cause the rest of the action to fail.
kallyngowdyyeti
published 0.9.7 •

Changelog

Source

V0.9.7

Date: 06/28/2019

Changes:

  • Bug Fixes
    • Inventory camera updates properly again in AUXPlayer.
    • Added some basic regex URL validation to aux.iframe tag.
kallyngowdyyeti
published 0.9.6 •

Changelog

Source

V0.9.6

Date: 06/28/2019

Changes:

  • Breaking Changes
    • Removed @ and # expressions.
      • This means that @id and #id will no longer work.
      • Instead, use getBots("#id") and getBotTagValues("#id").
  • Improvements
    • The inventory now begins with a top down view.
    • The center viewport button will now set the rotation to be top down.
    • Inventory now begins with an increased zoom value.
    • Manually control when we submit the frame to the VRDisplay
      • This allows us to be able to do multiple rendering passes on the WebGL canvas and have them all appear in VR correctly.
      • Before this fix, any elements that were rendered onto the WebGL canvas after the first pass were absent from VR. This was because the THREE.WebGLRenderer prematurely submitted the frame to the VRDisplay. This was a problem because it appears that the WebVR API ignores subsequent calls to the VRDisplay.submitFrame function until the current frame has passed.
    • Added the hasTag function to allow users to check if the file has a specific tag on it.
    • Moved formula calculations to a background thread.
      • This helps get a more consistent framerate by running formulas in the background while the scene is rendering.
      • As a result, the window global variable will not be available formulas.
        • This means formulas like window.alert() or window.location or window.navigator.vibrate() will not work anymore.
        • This also means that channels are more secure since you should no longer be able to write a formula that directly modifies bots in another channel. (no crossing the streams)
      • The new system works by tracking dependencies between formulas.
        • It looks for calls to getTag(), getBot(), getBots() and getBotTagValues() to track dependencies.
        • It is fairly limited and does not yet support using variables for tag names. So getTag(this, myVar) won't work. But getTag(this, "#tag") will work.
        • There are probably bugs.
      • Additional improvements include showing the error message produced from a formula.
        • If the formula throws an error then it will show up instead of the formula text.
        • The UI has not been updated so you cannot scroll to read the full error message.
    • Improved line performance.
    • Improved label positioning to be more consistent.
    • Improved users to share inventories, menus, and simulations when they are logged in with the same username.
    • Old inactive users will now be deleted automatically to keep the data model clear of unused users.
      • This only affects bots that have the aux._user tag set.
    • Improved our usage of Vue.js to prevent it from crawling the entire game tree to setup property listeners.
      • This reduces rendering overhead significantly.
    • Changed the size of the inventory's dragging bar.
  • Bug Fixes
    • Fixed rendering warning that was caused by aux.line.to if the line was too short.
    • The context will now no longer allow for bot placement if it is not being visualized.
    • The bot's label should now always appear on page reload.
    • The bot sheet should now no longer have an incorrect layout upon adding a new bot.
    • The config ID in sheets will now read as config and not confi.
    • Switching contexts in AUXPlayer will now add the old context to the browser history so you can use the back and forward buttons to go back and forth.
kallyngowdyyeti
published 0.9.5 •

Changelog

Source

V0.9.5

Date: 6/19/2019

Changes:

  • Improvements
    • onGridClick() is now supported in VR.
    • Changed mergeBall tag to mod.
    • Changed tags staring tag to mod.
    • Changed Clear Tags to Clear Mod.
    • Stop users from adding a blank or only whitespace tag.
    • Changed tags.remove() back to removeTags().
  • Bug Fixes
    • All camera tweens will now snap to their final (and literal) target destination at the end of the tween.
    • Bots will get destroyed when dragged over the trashcan in AUX Builder even if it is still on a context surface.
    • aux.context.rotation tags are now being used in AUX Builder to apply rotation to contexts.
    • Tags starting with _user and all other appropriate hidden tags will now correctly sort into the hidden tags section in sheets.
    • Clearing an empty mod with an added tag on it now clears the added tag.
    • aux.label.size.mode set to auto now sizes properly with the orthographic camera.
    • The inventory in player will now no longer reset it's scale upon resizing the inventory.
kallyngowdyyeti
published 0.9.3 •

Changelog

Source

V0.9.39

Date: 09/19/2019

Changes:

  • Improvements
    • Added support for accepting payments via Stripe.
      • To get started with Stripe, first register for an account on their website.
      • Second, copy your publishable key from the stripe dashboard and add it to the channel's config file in the stripe.publishableKey tag.
      • Third, make a new channel. This will be the "processing" channel which will contain all the information actually needed to charge users for payments. And contain the code to actually complete a charge.
        • In this channel, add your Stripe secret key to the config file in the stripe.secretKey tag.
      • At this point, you are all setup to accept payments. Use the following functions:
        • player.checkout(options): Starts the checkout process for the user. Accepts an object with the following properties:
          • productId: The ID of the product that is being purchased. This is a value that you make up to distinguish different products from each other so you know what to charge.
          • title: The title message that should appear in the checkout box.
          • description: The description message that should appear in the checkout box.
          • processingChannel: The channel that payment processing should happen on. This is the channel you made from step 3.
          • requestBillingAddress: Whether to request billing address information with the purchase.
          • paymentRequest: Optional values for the "payment request" that gives users the option to use Apple Pay or their saved credit card information to checkout. It's an object that takes the following properties:
            • country: The two-letter country code of your Stripe account.
            • currency: The three letter currency code. For example, "usd" is for United States Dollars.
            • total: The label and amount for the total. An object that has the following properties:
              • label: The label that should be shown for the total.
              • amount: The amount that should be charged in the currency's smallest unit. (cents, etc.)
        • server.finishCheckout(options): Finishes the checkout process by actually charging the user for the product. Takes an object with the following properties:
          • token: The token that was produced from the onCheckout() call in the processing channel.
          • amount: The amount that should be charged in the currency's smallest unit.
          • currency: The three character currency code.
          • description: The description that should be included in the receipt.
          • extra: Extra data that should be sent to the onPaymentSuccessful() or onPaymentFailed() actions.
      • Additionally, the following actions have been added:
        • onCheckout(): This action is called on both the normal channel and the processing channel when the user submits a payment option to pay for the product/service. that is an object with the following properties:
          • token: The Stripe token that was created to represent the payment details. In the processing channel, this token can be passed to server.finishCheckout() to complete the payment process.
          • productId: The ID of the product that is being purchased. This is useful to determine which product is being bought and which price to charge.
          • user: (Processing channel only) Info about the user that is currently purchasing the item. It is an object containing the following properties:
            • username: The username of the user. (Shared for every tab & device that the user is logged into)
            • device: The device ID of the user. (Shared for every tab on a single device that the user is logged into)
            • session: The session ID of the user. (Unique to a single tab)
        • onPaymentSuccessful(): This action is called on the processing channel when payment has been accepted after server.finishCheckout() has completed. that is an object with the following properties:
          • bot: The bot that was created for the order.
          • charge: The info about the charge that the Stripe API returned. (Direct result from /api/charges/create)
          • extra: The extra info that was included in the server.finishCheckout() call.
        • onPaymentFailed(): This action is called on the processing channel when payment has failed after server.finishCheckout() was called. that is an object with the following properties:
          • bot: The bot that was created for the error.
          • error: The error object.
          • extra: The extra info that was included in the server.finishCheckout() call.
    • Added the ability to send commands directly to users from the server via the remote(command, target) function.
      • For example, calling remote(player.toast("hi!"), { username: 'test' }) will send a toast message with "hi!" to all sessions that the user "test" has open.
      • This is useful for giving the user feedback after finishing the checkout process.
      • Currently, only player commands like player.toast() or player.goToURL() work. Shouts and whispers are not supported yet.
kallyngowdyyeti
published 0.9.2 •

Changelog

Source

V0.9.29

Date: 08/23/2019

Changes:

  • Improvements
    • Changed hasFileInInventory() function to hasBotInInventory().
    • Changed onMerge() action tag to onMod().
    • Changed aux._editingFile hidden tag to aux._editingBot.
    • Gave the player inventory an offset from the bottom of the window so that it is floating.
    • Deselecting one of 2 bots in multiselection mode will return the the sheet to single selection mode.
    • Removed the direct aux view for now.
    • Added new feature in sheet where clicking on a bot's tag will select all bots with that tag.
    • Added a code editor.
      • Loads only on desktop/laptop.
      • For the best experience, use with the full size sheet.
      • Features:
        • Syntax highlighting for action tags and formulas.
          • Normal tags don't get syntax highlighting.
        • Syntax checking.
        • Autocomplete for tags.
          • Triggered by typing # or by pressing Ctrl+Space.
        • Autocomplete for formula/action API functions.
          • Triggered by typing or by pressing Ctrl+Space.
        • Find references to API functions across actions/formulas.
          • Trigger by putting the cursor on the tag and press Shift+F12.
        • Find references to tags across actions/formulas.
          • Trigger by putting the cursor on the tag and press Shift+F12.
        • Auto formatting
          • Trigger by typing Alt+Shift+F.
        • Find & Replace
          • Open the find tool by pressing Ctrl+F.
          • Go to replace mode by toggling the arrow on the left side of the find tool.
      • Other notes
        • It is not currently possible to remove formulas using the code editor. Instead, you have to use the small tag input in the table to completely remove formulas.
    • Changed menu button text of: Channel doesn't exist. Do you want to create it? to Channel doesn't exist. Click here to create it. for better user direction.
  • Bug Fixes
    • Resolved issue of the getBot() function not working in the search bar.
    • Allow the use of a channelID made up entirely of numbers.
    • Resolved issue of setTag() not working with multiple files when fed a false or null value to set.
    • Deleting a bot when in multiselection mode will no longer close the sheet.
    • The onPointerExit() function will now execute before an onPointerEnter() function when hovering over multiple bots.
    • Fixed issue in the RemoveTags() function where providing a string with a . in its tag section failed to remove the correct tags.
    • The tag aux.context can now be set to a value type of boolean or number.
    • Increased the timeout time on the Create Channel toast message to give it more processing time so it works more consistently.
    • Fixed inconsistency between actual action tag onAnyDropInContext and what was appearing in the tag dropdown onDropAnyInContext to read correctly, and other similar cases of this.
    • Changed the tag aux.context.inventory.height to work in the context bot's tag list.
kallyngowdyyeti
published 0.9.1 •

Changelog

Source

V0.9.19

Date: 07/29/2019

Changes:

  • Improvements
    • Added the ability for shouts and whispers to return values.
      • shout() returns a list of results from every bot that ran a script for the shout ordered by bot ID.
      • whisper() returns a list of results from every bot that ran a script for the whisper ordered by the input bot array.
      • To return a value from a shout/whisper handler, use return statements. For example, to return 10 from a shout you would simply write return 10.
    • Changed the tag suggestion list to only show when there are tags that match the input.
    • Changed the create surface popup's header text to read: Create Context from Selection.
    • Added show surface checkbox to the create context popup.
    • Removed the text on the sheet's bottom left add tag button.
    • Added the phrase powered by CasualOS to bthe hamburger menu and loading popup.
    • Removed Unselect All from the sheets.
  • Bug Fixes
    • Fixed an issue that would let users load the admin channel because no file specified session limits for it.
    • Fixed an issue that would cause formulas which contained indexer expressions to fail.
    • Fixed the server to not overwrite broke Causal Trees.
    • Stopped incorrect empty tag warning when attempting to add in a new tag.
    • Fixed there not being a visible right bar on the player inventory.
    • Fixed dependency tracking for formulas which get bots by ID. (like getBots("id"))
kallyngowdyyeti
published 0.8.10 •

Changelog

Source

V0.8.10

Date: 06/07/2019

Changes:

  • Improvements
    • Change diff key word to merge or mergeBall.
      • EX: The tag function aux.diff has been changed to aux.mergeBall and aux.diffTags has been changed to aux.mergeBall.tags and the diff id tag value has been changed to merge.
kallyngowdyyeti
published 0.8.9 •

Changelog

Source

V0.8.9

Date: 06/06/2019

Changes:

  • Improvements
    • Changed diff.save and diff.load to diff.export and diff.import respectfully.
    • Changed function saveDiff to automatically include the loadDiff function within it to clean up the resulting output.
    • diff.save will now return a cleaner JSON than it was before.
  • Bug Fixes
    • Duplicate tags will now not show up in a closed tag section's tag count.
    • Stopped additon of extra whitespace on left side of screen when multi selecting too many files.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc