open-index/open-npm huggingface dataset:
npm package: @schematics/update
Description: Schematics specific to updating packages
Author: Angular Authors
Latest version: 0.1102.18
Deprecated: This was an internal-only Angular package up through Angular v11 which is no longer used or maintained. Upgrade Angular to v12+ to remove this dependency.

# `@schematics/update`

This package is **deprecated** and will not be updated beyond Angular v11 (`0.1102.x`). It should no
longer be used.
npm package: @schematize/refs
Description: A list of references to built-ins, native objects, etc.
Author: Benjamin Bytheway
Latest version: 0.2.3

# refs
A list of references to built-ins, native objects, etc.   This helps with minification and makes code smaller.

## Installation

```
npm install @schematize/refs
```

## Usage

To use, simply import the variable that you would like to reference.

```
import Object from '@schematize/refs/js/Object.mjs';
```

If you are using a bundler like rollup.js, you can use this reference across multiple modules and the resulting bundle will only contain 1 variable reference rather than a separate variable refernece for each module.
npm package: @schematizer/auth
Description: authorization plugin for schematizer
Author: Raymundo
Latest version: 0.0.0

# Auth
Athorization plugin for [Schematizer](https://www.npmjs.com/package/@schematizer/schematizer), now you can add access restrictions to queries, mutations, types and fields

To use field authorization, Auth must be passed as schematizer argument

```ts
import { schematize } from '@schematizer/schematizer'
import { AuthPlugin } from '@schematizer/auth';

const schema = await schematize(AuthPlugin(), ....);
```

## Auth for Type
You can find `auth` method at Type class

```ts
const providerType = new Type(Provider)
  .fields(...)
  .auth('SeeProviders'); // must have "SeeProviders" permission at context.permissions
```

## Auth for Fn
`auth` is also in `Fn`

```ts
interface UserInfo {
  age: number;
}

declare module '@schematizer/schematizer/dist/types' {
  interface GraphqlContext {
    user: UserInfo;
  }
}

const moviesQueries = new Queries({
  // Custom authorizer and custom message
  getMovie: Fn(...).auth(({ context }) => context.user.age >= 18 || ['only for 18+']),
});
```

## Auth for fields
The fields can be defineds as objects, this object optionaly contains `auth` prop

```ts
import { some } from '@schematizer/auth';

class UserType {
  name: string;
  address: string;
}

const userType = new Type(UserType, {
  name: {
    type: 'string',
  },
  address: {
    type: 'string',
    // Address require SeeUserAdress or Admin permissions
    auth: some(
      'SeeUserAdress',
      'Admin',
    ),
  },
});
```

## Helpers
Auth provides the following authorizers

### some
Authorize if any of the specified authorizables is met
```ts
some(...);
```

### every
Authorize if all specified authorizables are met
```ts
every(...);
```

## Authorizable
auth and authorizers requires "authorizables" to "authorize", the follow list indicates the type and behaviour

- `null | undefined | void | true`: authorization accepted
- `string`: check for permission at `context.permissions`
- `false`: fail the authorization
- `[string]`: fail the authorization set error report message
- `() => Authorizable`: trigger the function with the context and evaluate the returned value
- `{ selected: () => Authorizable }`: its the same as `() => Authorizable`
npm package: @schematype/core-linux-arm-gnueabihf
Description: This is the **armv7-unknown-linux-gnueabihf** binary for `@schematype/core`
Latest version: 0.1.0

# `@schematype/linux-arm-gnueabihf`

This is the **armv7-unknown-linux-gnueabihf** binary for `@schematype/core`
npm package: @schematype/core-win32-x64-msvc
Description: This is the **x86_64-pc-windows-msvc** binary for `@schematype/core`
Latest version: 0.1.0

# `@schematype/win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@schematype/core`