Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@casual-simulation/aux-vm

Package Overview
Dependencies
Maintainers
0
Versions
477
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

1
4647

0.9.3

Diff

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.
kallyngowdyyeti
published 0.8.8 •

Changelog

Source

V0.8.8

Date: 06/05/2019

Changes:

  • Improvements
    • Improved how diffs are created from files so that they don't contain any tags which are for contexts.
      • This means that moving a file will only give you a diff of tags that are not related to a context.
      • Examples are aux.color, aux.label, etc.
      • As a result, applying the diff to a file won't cause it to be moved.
    • The hidden tag section has been changed from aux._ to hidden.
    • The action and hidden tag sections will now appear when only one tag meets the criteria for the section.
    • The add tag auto complete will now check for a match of the start if the string and not a substring.
    • The add tag autocomplete will hide the aux._ tags until aux._ is input.
    • When clicking the background in multi-file selection mode, it will deselect the files and keep a diff of the last selected.
    • Improved file diffs to keep the existing diff selected after merging it into a file.
    • Added tag aux.inventory.color to global file that allows the user to set the inventory background color in player.
  • Bug Fixes
    • Fixed an issue that would cause file diffs to apply their context positions to other files.
    • Clicking the minus button of the final file in sheets will now switch to diff without the minus or unselect all buttons that don't do anything.
kallyngowdyyeti
published 0.8.7 •

Changelog

Source

V0.8.7

Date: 06/05/2019

Changes:

  • Improvements
    • Added the ability to show hidden tags by toglging hidden tag section instead of the hidden tags button which has been removed.
    • Edited hexagon button to be filled and have a larger plus icon to improve uniformity.
  • Bug Fixes
    • Tag # section will no longer remain if there are no tags fitting the criteria.
1
4647
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